[Ffmpeg-devel] using apiexample.c

Michel Bardiaux mbardiaux
Tue Nov 14 12:00:32 CET 2006


Riccardo Zanella wrote:
> 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 do you know that? What does ffmpeg -i say about your output file?

BTW this belongs on ffmpeg-user, not here.

> 
> How can I tell to the codec the bitrate I need?
> 
> Thanks
> Riccardo


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list