Opened 11 months ago

Closed 4 weeks ago

#9514 closed defect (fixed)

TIFF decoding fails with error: rps 0 invalid

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


Summary of the bug:
When trying to open a TIFF image sequence from Netflix Open Content (, decoding fails with this error:

rps 0 invalid

It happens with single images, as well as with the whole image sequence.

When using other image viewers, e.g. IrfanView or Windows Photo Viewer, the files can be displayed without problems.

How to reproduce for one file:

./ffmpeg.exe -i test.bmp
ffmpeg version Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57.  8.100 / 57.  8.100
  libavcodec     59. 12.100 / 59. 12.100
  libavformat    59.  8.100 / 59.  8.100
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8. 16.102 /  8. 16.102
  libswscale      6.  1.100 /  6.  1.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[tiff @ 00000230d7bd1300] rps 0 invalid
Input #0, tiff_pipe, from '':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: tiff, gbrp16le, 4096x2160, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (tiff (native) -> bmp (native))
Press [q] to stop, [?] for help
[tiff @ 00000230d7bd7b40] rps 0 invalid
Error while decoding stream #0:0: Invalid data found when processing input
Output #0, image2, to 'test.bmp':
    encoder         : Lavf59.8.100
  Stream #0:0: Video: bmp, bgr24, 4096x2160, q=2-31, 200 kb/s, 25 fps, 25 tbn
      encoder         : Lavc59.12.100 bmp
frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!

Change History (3)

comment:1 by Balling, 10 months ago

Status: newopen

Can confirm that.

comment:2 by Balling, 7 months ago

Keywords: tif added; tiff removed

Fixed a keyword.

comment:3 by Carl Eugen Hoyos, 4 weeks ago

Reproduced by developer: set
Resolution: fixed
Status: openclosed

Should be fixed in ff6044b921ffb59964a126faef5106a391a819eb, thank you for the report!

Note: See TracTickets for help on using tickets.