2016-07-14 18:22 GMT+08:00 Carl Eugen Hoyos <ceho...@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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel