[FFmpeg-user] Recovery of broken Dohiker 'trailcam' videos

Rob Hallam ffmpeg at roberthallam.com
Tue Jun 8 14:48:21 EEST 2021


On Tue, 8 Jun 2021 at 00:57, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
> Feel free to provide sample file(s) after confirming that the issue is reproducible with current FFmpeg git head, the only version supported on this mailing list.
>

Thank you for replying, Carl. I have compiled git head (ffmpeg
N-102655-g282b9f4cba) and the issue persists, log appended.

I have uploaded a working [1] and non-working example [2]. I can
provide additional files or share via another method if desired.

1: https://roberthallam.com/IMAG0085.AVI
2: https://roberthallam.com/IMAG0065.AVI

Thank you for your time. If there is anything else I should include,
please let me know.

Cheers,
Rob

----

robert at zeus:~/code/ffmpeg$ LD_LIBRARY_PATH=~/code/ffmpeg-build/lib/
~/code/ffmpeg-build/bin/ffmpeg -i /tmp/sd/DCIM/100MEDIA/IMAG0065.AVI
-c:v h264 -crf 22 -c:a aac /tmp/dohiker.mkv
ffmpeg version N-102655-g282b9f4cba Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 11.1.0 (GCC)
  configuration: --prefix=/home/robert/code/ffmpeg-build/
--disable-debug --enable-shared --disable-stripping --enable-libx264
--disable-static --enable-gpl
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  1.101 / 59.  1.101
  libavformat    59.  2.101 / 59.  2.101
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[avi @ 0x558ff146d740] non-interleaved AVI
[mjpeg @ 0x558ff146eb00] dqt: 0 quant value
    Last message repeated 82 times
[avi @ 0x558ff146d740] decoding for stream 0 failed
[avi @ 0x558ff146d740] Could not find codec parameters for stream 0
(Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown),
1280x720, 10777 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from '/tmp/sd/DCIM/100MEDIA/IMAG0065.AVI':
  Duration: 00:00:02.97, start: 0.000000, bitrate: 10943 kb/s
  Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D),
none(bt470bg/unknown/unknown), 1280x720, 10777 kb/s, 29.95 fps, 29.95
tbr, 29.95 tbn
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz,
mono, s16, 176 kb/s
File '/tmp/dohiker.mkv' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 0x558ff147ec00] Too many bits 6408.707483 > 6144 per frame
requested, clamping to max
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x558ff1474f00] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
[aac @ 0x558ff147ec00] Qavg: 57308.629
[aac @ 0x558ff147ec00] 2 frames left in the queue on closing
Conversion failed!
1

robert at zeus:~/code/ffmpeg$ LD_LIBRARY_PATH=~/code/ffmpeg-build/lib/
~/code/ffmpeg-build/bin/ffprobe /tmp/sd/DCIM/100MEDIA/IMAG0065.AVI
ffprobe version N-102655-g282b9f4cba Copyright (c) 2007-2021 the
FFmpeg developers
  built with gcc 11.1.0 (GCC)
  configuration: --prefix=/home/robert/code/ffmpeg-build/
--disable-debug --enable-shared --disable-stripping --enable-libx264
--disable-static --enable-gpl
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  1.101 / 59.  1.101
  libavformat    59.  2.101 / 59.  2.101
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[avi @ 0x55cc58963dc0] non-interleaved AVI
[mjpeg @ 0x55cc589651c0] dqt: 0 quant value
    Last message repeated 82 times
[avi @ 0x55cc58963dc0] decoding for stream 0 failed
[avi @ 0x55cc58963dc0] Could not find codec parameters for stream 0
(Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown),
1280x720, 10777 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Input #0, avi, from '/tmp/sd/DCIM/100MEDIA/IMAG0065.AVI':
  Duration: 00:00:02.97, start: 0.000000, bitrate: 10943 kb/s
  Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D),
none(bt470bg/unknown/unknown), 1280x720, 10777 kb/s, 29.95 fps, 29.95
tbr, 29.95 tbn
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 176 kb/s


More information about the ffmpeg-user mailing list