Hi all,

I've googled a bit for this problem, but found nothing. When decoding 
AVFrames with libavcodec, it is easy to tell if a frame contains interlaced 
content (and I must use this opportunity to mention how impressed I am at 
the quality of deinterlacing with avpicture_deinterlace()!).

But how do I tell that a stream is interlaced from just the libavformat 
API? The stream I am testing with is AVCHD mpegts, and the frame rate is 50 
Hz:

Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 50 
tbr, 90k tbn, 50 tbc

I would like my ffmpeg based demuxer/decoder plugin to report 25 Hz 
framerate and transparently deinterlace the video for the time being. For 
that I need to detect the interlaced video at the demuxer level (i.e. 
without having decoded a single frame, yet). Is that possible some how?

Thanks a lot & Best regards,
-Stephan
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to