Unable to read a file because ffmpeg was not compiled with zlib support
Created by: 183amir
I think we need to add a test case and make sure that ffmpeg supports reading this file so that this does not happen again. The file is one of the Replay Attack database files.
$ ffprobe -i
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'attack_highdef_client001_session01_highdef_photo_adverse.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-10-14 09:17:26
Duration: 00:00:09.60, start: 0.000000, bitrate: 2584 kb/s
Stream #0:0(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 320x240 [SAR 72:72 DAR 4:3], 2583 kb/s, 25 fps, 25 tbr, 600 tbn, 600 tbc (default)
Metadata:
creation_time : 2010-10-14 09:17:26
handler_name : Apple Alias Data Handler
encoder : Photo - JPEG
$ mediainfo attack_highdef_client001_session01_highdef_photo_adverse.mov
General
Complete name : attack_highdef_client001_session01_highdef_photo_adverse.mov
Format : MPEG-4
Format profile : QuickTime
Format settings : Compressed header
Codec ID : qt 2005.03 (qt )
File size : 2.96 MiB
Duration : 9s 600ms
Overall bit rate mode : Constant
Overall bit rate : 2 585 Kbps
Encoded date : UTC 2010-10-14 09:17:26
Tagged date : UTC 2010-10-14 09:17:26
Writing library : Apple QuickTime
Video
ID : 1
Format : JPEG
Codec ID : jpeg
Duration : 9s 600ms
Bit rate mode : Constant
Bit rate : 2 584 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 1.346
Stream size : 2.96 MiB (100%)
Language : English
Encoded date : UTC 2010-09-16 07:25:56
Tagged date : UTC 2010-10-14 09:17:26
The output of ffmpeg without zlib support:
ffprobe -i attack_highdef_client001_session01_highdef_photo_adverse.mov
ffprobe version 2.8.6 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --prefix=/opt/conda/envs/_build --disable-doc --disable-debug --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gpl --enable-libfreetype --enable-libx264 --enable-pic --enable-shared --enable-static --extra-cxxflags=-DZLIB_CONST --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2242ba0] this file requires zlib support compiled in
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2242ba0] error reading header