Opened 5 years ago

Closed 3 years ago

#416 closed enhancement (fixed)

ffmpeg can't decode uncompressed self-generated TIFFs containing YUV420

Reported by: takis Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: tif
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

When generating a sequence of TIFF frames containing YUV420 data, feeding it to ffmpeg results in a errormessage: "Color mode 6 is not supported".

ffmpeg -i movie.mpg -compression_level 0 -pix_fmt yuv420p bla%05d.tiff

ffmpeg -i bla%05d.tiff test.mpg
ffmpeg version N-31937-g7c94740, Copyright (c) 2000-2011 the FFmpeg developers

built on Aug 17 2011 11:02:34 with gcc 4.5.2
configuration: --enable-avfilter --enable-frei0r --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-pic --enable-pthreads --enable-shared --enable-version3 --enable-x11grab --disable-optimizations
libavutil 51. 12. 0 / 51. 12. 0
libavcodec 53. 10. 0 / 53. 10. 0
libavformat 53. 7. 0 / 53. 7. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 31. 1 / 2. 31. 1
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0

[tiff @ 0x21e27e0] Color mode 6 is not supported

Last message repeated 3 times

Input #0, image2, from 'bla%05d.tiff':

Duration: 00:00:07.84, start: 0.000000, bitrate: N/A

Stream #0.0: Video: tiff, 25 fps, 25 tbr, 25 tbn, 25 tbc

File 'test.mpg' already exists. Overwrite ? [y/N] y
[buffer @ 0x21e2360] Invalid pixel format string '-1'
Error opening filters!

Change History (5)

comment:1 Changed 5 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open

out.tif looks fine with ImageMagick?.

$ ./ffmpeg -i tests/lena.pnm -pix_fmt yuv420p out.tif
ffmpeg version N-32068-g88f71f3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 23 2011 11:28:38 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 13. 0 / 51. 13. 0
  libavcodec   53. 11. 0 / 53. 11. 0
  libavformat  53.  9. 0 / 53.  9. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 34. 2 /  2. 34. 2
  libswscale    2.  0. 0 /  2.  0. 0
Input #0, image2, from 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x129e360] w:256 h:256 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x12a0040] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x1298400] w:256 h:256 fmt:rgb24 -> w:256 h:256 fmt:yuv420p flags:0x4
Output #0, image2, to 'out.tif':
  Metadata:
    encoder         : Lavf53.9.0
    Stream #0.0: Video: tiff, yuv420p, 256x256, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0: ppm -> tiff
Press [q] to stop, [?] for help
frame=    1 fps=  0 q=0.0 Lsize=      -0kB time=00:00:00.04 bitrate=  -4.4kbits/s
video:97kB audio:0kB global headers:0kB muxing overhead -100.022189%
$ ./ffmpeg -i out.tif
ffmpeg version N-32068-g88f71f3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 23 2011 11:28:38 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 13. 0 / 51. 13. 0
  libavcodec   53. 11. 0 / 53. 11. 0
  libavformat  53.  9. 0 / 53.  9. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 34. 2 /  2. 34. 2
  libswscale    2.  0. 0 /  2.  0. 0
[tiff @ 0x12a07e0] Color mode 6 is not supported
[image2 @ 0x129e420] Could not find codec parameters (Video: tiff)
out.tif: could not find codec parameters

comment:2 Changed 5 years ago by cehoyos

  • Keywords tif added

comment:3 Changed 5 years ago by ami_stuff

the same problem with:
yuv410p
yuv411p
yuv422p
yuv444p

comment:4 Changed 4 years ago by richardpl

  • Priority changed from minor to wish

comment:5 Changed 3 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.