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
Hello,

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:

   videoStream->codec->stats_out

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

Thanks/Mikael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user