[FFmpeg-devel] [PATCH] QuickTime 'yuvs' decode support

Andrew Wason rectalogic
Fri Oct 30 21:58:02 CET 2009


Patch to support decoding QuickTime video with 'yuvs' fourcc discussed here:
http://developer.apple.com/quicktime/icefloe/dispatch020.html

Sample video in incoming/yuvs/yuvs.mov

Andrew
-------------- next part --------------
Index: libavcodec/raw.c
===================================================================
--- libavcodec/raw.c	(revision 20420)
+++ libavcodec/raw.c	(working copy)
@@ -61,6 +61,7 @@
     { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
     { PIX_FMT_UYVY422, MKTAG('A', 'V', 'U', 'I') }, /* FIXME merge both fields */
     { PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', '2') },
+    { PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', 's') },
     { PIX_FMT_PAL8,    MKTAG('W', 'R', 'A', 'W') },
 
     { PIX_FMT_NONE, 0 },
Index: libavformat/isom.c
===================================================================
--- libavformat/isom.c	(revision 20420)
+++ libavformat/isom.c	(working copy)
@@ -64,6 +64,7 @@
     { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* Uncompressed YUV422 */
     { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID Uncompressed) */
     { CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* UNCOMPRESSED 8BIT 4:2:2 */
+    { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2vuy but byte swapped */
 
     { CODEC_ID_V210,   MKTAG('v', '2', '1', '0') }, /* UNCOMPRESSED 10BIT 4:2:2 */
 



More information about the ffmpeg-devel mailing list