Opened 13 years ago

Closed 13 years ago

#1350 closed defect (fixed)

support yvyu in avi

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: yvyu
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

attached file decodes correctly with

libavcodec/raw.c:

    { PIX_FMT_UYVY422, MKTAG('c', 'y', 'u', 'v') }, /* CYUV is also Creative YUV */
+    { PIX_FMT_YUYV422, MKTAG('Y', 'V', 'Y', 'U') },
    { PIX_FMT_UYYVYY411, MKTAG('Y', '4', '1', '1') },

libavformat/riff.c:

    { CODEC_ID_RAWVIDEO,     MKTAG('a', 'u', 'v', '2') },
+    { CODEC_ID_RAWVIDEO,     MKTAG('Y', 'V', 'Y', 'U') },
    { CODEC_ID_FRWU,         MKTAG('F', 'R', 'W', 'U') },

but requires swap of uv (-vf swapuv)

C:\>ffmpeg -i yvyu.avi
ffmpeg version N-40958-gea5dab5 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 23 2012 02:37:05 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 76.100 /  2. 76.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[avi @ 0x1ddc5e0] Could not find codec parameters (Video: none (YVYU / 0x5559565
9), 192x128)
yvyu.avi: could not find codec parameters

Attachments (1)

yvyu.avi (152.1 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (4)

by ami_stuff, 13 years ago

Attachment: yvyu.avi added

comment:1 by Carl Eugen Hoyos, 13 years ago

Can (vanilla) Windows Media Player decode the sample?

comment:2 by ami_stuff, 13 years ago

Yes, decodes fine with WMP.

Version 0, edited 13 years ago by ami_stuff (next)

comment:3 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Keywords: yvyu added
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master

Should be fixed.

Note: See TracTickets for help on using tickets.