[FFmpeg-devel] Deinterlacing

Michael Niedermayer michaelni
Mon Dec 7 17:30:16 CET 2009


On Mon, Dec 07, 2009 at 05:31:03PM +0300, Mikhail Pritula wrote:
> > > Hi, Fellows.
> > > 
> > >  
> > > 
> > > I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame 
> > > and without option -deinterlace never does deinterlacing, and with 
> > > option -deinterlace always does deinterlacing.
> > > 
> > >  
> > > 
> > > May be I mistaken, but it seems to me, that FFmpeg should be able to 
> > > deinterlace only interlaced frames.
> > > 
> > > Something like -deinterlace-if-needed option.
> > > 
> > >  
> > > 
> > > If this makes sense, I will post patch with new option soon.
> > > 
> > >  
> > > 
> > > What do you think?
> >
> > deinterlacing belogs in seperate (libavfilter) video filters, there you
> can add this option. But not in ffmpeg.c the filter stuff in there is
> deprecated
> >
> I got it, but I not see how pass info about every frame is it interlaced in
> fact. As I understood, I can pass arguments to filter, and I can operate
> only picture, but not frame. So, how can I pass from FFmpeg information,
> stored in AVFrame (especially, interlaced_frame flag) to my filter? What is
> correct way to do it?

you can probably add inerlaced & top_field_first flags to AVFilterPicRef

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Thouse who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091207/48cb2cd2/attachment.pgp>



More information about the ffmpeg-devel mailing list