Reputation: 779
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.
Upvotes: 0
Views: 2123
Reputation: 3496
What you are trying to achieve is called Constant BitRate: you should set minrate, maxrate and bitrate to the same value to get it.
cf similar questions for more detailed examples:
And interesting external links:
Upvotes: 1