[Ffmpeg-devel] [PATCH] set pix_fmt for video grabbing devices

Luca Abeni lucabe72
Thu Jan 26 16:42:36 CET 2006


Hello,

when doing some experiments for testing my new v4l2 code, I noticed that
ffmpeg forgets to set AVFormatParameters::pix_fmt when capturing from a
v4l card.
In other words, if you type
ffmpeg -pix_fmt yuv422 -s 352x288 test.avi
the "-pix_fmt yuv422" option will have no effect.

The attached patch fixes the problem.


			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:
 Problemi di Liquidit?? Con Logos Finanziaria 30.000 ? in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2907&d=26-1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmt_fix.diff
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060126/739cbf7a/attachment.bin>



More information about the ffmpeg-devel mailing list