[Ffmpeg-devel] [PATCH] set interlaced_frame and top_field_first in yuv4mpeg

Luca Abeni lucabe72
Thu Feb 2 16:22:06 CET 2006


Hi all,

now that libavcodec/raw.c permits to set the interlaced_frame and
top_field_first fields, formats using it can take advantage of such
feature.

As promised, here is a patch for libavformat/yuv4mpeg.c to correctly (I
hope :) set the two fields.

I quickly tested it, and works ok in my testcase (I captured a .y4m file
from a tv card with
./ffmpeg -y -vd /dev/video0 -ad /dev/dsp0 -pix_fmt yuv420p -s 352x288 test.y4m
and then read it with libavcodec, checking interlaced_frame and
top_field_first in the frames that I was reading from the file).

				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Prova GRATIS per 15 giorni! DVDNetRent e ricevi a casa 3 film. Puoi scegliere tra migliaia di titoli
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4632&d=2-2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: y4m-interl.diff
Type: text/x-patch
Size: 3080 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060202/1686f112/attachment.bin>



More information about the ffmpeg-devel mailing list