I am trying to transmit TS packets using Ethernet. I am using C++ and ffmpeg libraries. At the moment I can send a hevc encoded ts stream via Ethernet successfully. But the output data rate varies. I want to maintain a constant(approximately) data rate..
I am using "av_interleaved_write_frame()" to transmit the TS packets.
I know this can be achieved using NULL packet transmission. Can anyone tell me how to do this using ffmpeg?
Thank you.