On 2009-07-27 at 14:48:54 [+0200], V0id <[email protected]> wrote:
> У нд, 2009-07-26 у 17:10 +0200, Stephan Assmus пише: 
> > 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.

Yes, I agree after having had a closer look. It seems it simply drops the 
first field and interpolates the lines from the second field.

> > 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.

I take it this means "patches welcome"? :-)

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

Reply via email to