Hi,

I'm currently trying to implement two pass encoding in my application.
Based on ffmpeg.c source I set a CODEC_FLAG_PASS1 in encoder and after 
each avcodec_encode_video(..) call I try to read codecs "stats_out" value.
While using codecs like CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, 
CODEC_ID_MPEG4 everything looks OK. I get stats for each frame and save 
it to file.
The problem is when I try to read the same ("stats_out") value having 
CODEC_ID_H264 (libx264) selected. The stats_out pointer is not set in 
the AVCodecContext.

I've tested ffmpeg.exe using H264 encoder and it gives normal first pass 
stats.
I can't really find a problem, maybe I need to set some other flag in 
codec context.

Tested with rev. 13712, 15966, 15986 of FFmpeg without any luck.

Any suggestions would be great.

-- 
Best Regrads,
Tomasz Litwinski
[Impact Media]
[EMAIL PROTECTED]

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to