[FFmpeg-trac] #3874(avcodec:open): tiff encoder creates broken odd width yuv files

FFmpeg trac at avcodec.org
Wed Oct 15 23:30:23 CEST 2014


#3874: tiff encoder creates broken odd width yuv files
-------------------------------------+-----------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  tif tiffenc  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by ami_stuff):

 Ok, so I downloaded some old ffmpeg autobuild from august and tiff2rgba
 decodes generated tiff file just fine
 (I get no error messages and output looks correctly)

 TIFF file generated with your patch decodes ok as well with tiff2rgba.

 The only problem happens with other software like ImageMagick and the rest
 which, as I understand, you belive is at fauly in some way. If this is
 true then this ticket can be closed.

 {{{
 Second, are the softwares you use able to encode YUV with chroma
 subsampling? And is their output decodable by libtiff? By themselves? Are
 they able to decode libtiff output?
 }}}

 I don't know any software which can generate YUV TIFFs.

 {{{
 C:\>ffmpeg -i yuv410p.avi out.tif
 ffmpeg version N-65738-g3c197442 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Aug 18 2014 22:02:08 with gcc 4.8.3 (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-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
 --enable-lib
 modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-
 libopencore-amrw
 b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinge
 r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
 libtwolame --en
 able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis
  --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
 --enable-
 libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
   libavutil      54.  5.100 / 54.  5.100
   libavcodec     56.  0.101 / 56.  0.101
   libavformat    56.  1.100 / 56.  1.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.100 /  5.  0.100
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 Input #0, avi, from 'yuv410p.avi':
   Metadata:
     encoder         : Lavf54.3.100
   Duration: 00:00:00.04, start: 0.000000, bitrate: 9856 kb/s
     Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv410p, 323x240, 25
 fps, 25 t
 br, 25 tbn, 25 tbc
 Output #0, image2, to 'out.tif':
   Metadata:
     encoder         : Lavf56.1.100
     Stream #0:0: Video: tiff, yuv410p, 323x240, q=2-31, 200 kb/s, 25 fps,
 25 tbn
 , 25 tbc
     Metadata:
       encoder         : Lavc56.0.101 tiff
 Stream mapping:
   Stream #0:0 -> #0:0 (ffv1 (native) -> tiff (native))
 Press [q] to stop, [?] for help
 frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
 video:86kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing ov
 erhead: unknown
 }}}

 {{{
 C:\>tiff2rgba out.tif out2.tif
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3874#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list