[FFmpeg-devel] [PATCH] Add bitrate and framerate option for openH264

Steven Liu lingjiujianke at gmail.com
Thu Jul 14 13:52:14 EEST 2016


2016-07-14 18:22 GMT+08:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:

> Steven Liu <lingjiujianke <at> gmail.com> writes:
>
> > +    { "bitrate", "Set bitrate", OFFSET(bitrate),
> > AV_OPT_TYPE_INT, { 0 }, 0, 700000, VE },
> > +    { "framerate", "Set framerate", OFFSET(framerate),
> > AV_OPT_TYPE_INT, { 0 }, 0, 30, VE },
>
> Both options already exist in FFmpeg, it may be a good idea
> to map them to openh264 (do I understand correctly that the
> current encoder doesn't allow to set a target bitrate?) but
> there should be no need to add these strings to options[].
>
> Carl Eugen
>

Hi Carl Euge,

      This patch can modified the  bitrate and frame at the encoder runtime,
      for example:

            i set the init codec param bitrate 2000k , framerate 30fps, and
push the encoded stream to rtmp server with flv mux, and then the network
is very terribleļ¼Œso dynamic set the encoder, set the new bitrate and
framerate. The openh264 codec support this options.


More information about the ffmpeg-devel mailing list