У нд, 2009-07-26 у 17:10 +0200, Stephan Assmus пише: 
> 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()!).
> 
  I'm not so impressed as you, but it's the best that can be achieved in LGLP
mode from FFmpeg, AFAIK.

> 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?
> 
  AFAIK, there is not way to deinterlace demuxed frame that wasn't
decoded yet. That's why it's useless to detect interlacing in demuxer
even if it is possible.

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

Reply via email to