0

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.

user2389323
  • 769
  • 2
  • 10
  • 22

1 Answers1

1

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:

Community
  • 1
  • 1
n0p
  • 3,399
  • 2
  • 29
  • 50