У пн, 2009-07-27 у 16:45 +0200, Stephan Assmus пише:
> 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"? :-)
> 
  No, it's not my type of answers as I'm not one of the FFmpeg
developers. I only have some minor experience with using libav* in some
projects.
  All that I was trying to say is that it doesn't make any sense to me
to detect interlacing on the demuxer level as frame can't be
deinterlaced on this level. That's why decoder should have information
about interlacing and framerate unchanged, IMHO, but maybe I'm missing
something that is obvious for you.

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

Reply via email to