[Ffmpeg-devel] using apiexample.c

Riccardo Zanella znlrcr
Tue Nov 14 11:58:39 CET 2006


Hello,

I'm using apiexample.c to learn how to encode video.
I want to be able to set the bitrate, so i think I have to modify
this line:

c->bit_rate = 400000;

where c is AVCodecContext*.

But it seems it doesn't work: the bitrate of the output stream isn't
affected by the modification.

How can I tell to the codec the bitrate I need?

Thanks
Riccardo




More information about the ffmpeg-devel mailing list