Opened 8 years ago

Last modified 8 years ago

#5159 new defect

Fix YUV2 in AVI (wrong colors)

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

Description

http://www.drastic.tv/index.php?option=com_content&view=article&id=130:legacyycbcrcodec&catid=71:mediareactorlegacyversions&Itemid=95

http://www.datafilehost.com/d/2af52d05

C:\>ffmpeg -i yuv2.avi out.avi
ffmpeg version N-77816-g9ca64c3 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --
enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 13.100 / 55. 13.100
  libavcodec     57. 22.100 / 57. 22.100
  libavformat    57. 21.101 / 57. 21.101
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 23.100 /  6. 23.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, avi, from 'yuv2.avi':
  Duration: 00:00:01.42, start: 0.000000, bitrate: 29505 kb/s
    Stream #0:0: Video: rawvideo (yuv2 / 0x32767579), yuyv422, 320x240, 30346 kb
/s, 23.97 fps, 23.97 tbr, 23.97 tbn, 23.97 tbc
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf57.21.101
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200
 kb/s, 23.97 fps, 23.97 tbn, 23.97 tbc
    Metadata:
      encoder         : Lavc57.22.100 mpeg4
    Side data:
      unknown side data type 10 (24 bytes)
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
frame=   34 fps=0.0 q=31.0 Lsize=     244kB time=00:00:01.41 bitrate=1407.9kbits
/s speed=45.4x
video:237kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 2.681025%

Change History (1)

comment:1 by Carl Eugen Hoyos, 8 years ago

Component: undeterminedavcodec
Version: unspecifiedgit-master

Workaround is ffmpeg -vtag UYVY -i yuv2.avi out.avi - I am neither convinced the file isn't just invalid nor that there is another way to fix it.

Note: See TracTickets for help on using tickets.