Enable two-pass encoding programatically

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Enable two-pass encoding programatically

Mikael Hakman

How do I enable two-pass encoding/rate control when using
libavformat/libavcodec programmatically? I'm setting pass1 flag by:

   videoStream->codec->flags |= CODEC_FLAG_PASS1;

but  the stats at:


are 0 in length all the time during the run. Do I have to set some other
fields somewhere?


ffmpeg-user mailing list
[hidden email]