[Ffmpeg-devel] avcodec_encode_video

Martin martin
Mon May 22 16:54:15 CEST 2006


Hi, 

i want to change the encoding bit rate during an ffmpeg-encoding process.
I' ve seen that this parameters are in the AVCodecContext, nameley "bit_rate" 
and "rc_max_rate".

I have changed (decreased) this values in the big for loop of the "av_encode" 
function (in "ffmpeg.c") in each iteration.
The av_encode function calls the "avcodec_encode_video" function as consquence.

In case of mpeg2 the video becomes waste, and in case of h264 there is no 
effect.

What i am doing wrong??

thank you, 
Martin






More information about the ffmpeg-devel mailing list