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

Rob Hallam ffmpeg at roberthallam.com
Sun Jun 6 15:12:28 EEST 2021


Good day all,

A friend loaned me a Dohiker trail camera. It was set up
to trigger a 20 second recording when movement is
detected.

It produced AVI files after I set it up overnight. However,
while some of the videos play both video and audio,
others have no video, only audio when played with
VLC or ffplay. Additionally, ffmpeg reports 'conversion
failed' (full output appended) when trying to transcode.

Are these files likely to be recoverable? If so, can I use ffmpeg
for that? I tried uploading to Google Drive / YouTube as
they have been able to 'rescue' broken files in the past;
however, neither worked.

Interestingly, a few files from both the start and end of
the session play okay. This presumably correlates with when it
got light again, or similar.

I am happy to provide working and nonworking video samples,
and any output that I may have omitted.

Thanks in advance,
Rob

PS I am using version 'n4.4' provided by my distro in the
first instance - last updated 2021-05-06 - but I am happy
to attempt compiling from git

----

** Outputs **

1) Working file output (ffprobe/ffmpeg)

$ ffprobe /tmp/sd/DCIM/100MEDIA/IMAG0001.AVI
ffprobe version n4.4 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x55c044d55440] non-interleaved AVI
[mjpeg @ 0x55c044d57100] dqt: 0 quant value
    Last message repeated 7 times
Input #0, avi, from '/tmp/sd/DCIM/100MEDIA/IMAG0001.AVI':
  Duration: 00:00:20.43, start: 0.000000, bitrate: 10038 kb/s
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D),
yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 9844 kb/s, 30.10 fps,
30.10 tbr, 30.10 tbn, 30.10 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 176 kb/s
robert at zeus:~/downloads$ ffmpeg -i /tmp/sd/DCIM/100MEDIA/IMAG0001.AVI
-c:v h264 -crf 22 -c:a aac /tmp/trailcam2.mkv ffmpeg version n4.4
Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x555851b93d40] non-interleaved AVI
[mjpeg @ 0x555851b95980] dqt: 0 quant value
    Last message repeated 7 times
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from '/tmp/sd/DCIM/100MEDIA/IMAG0001.AVI':
  Duration: 00:00:20.43, start: 0.000000, bitrate: 10038 kb/s
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D),
yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 9844 kb/s, 30.10 fps,
30.10 tbr, 30.10 tbn, 30.10 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz,
mono, s16, 176 kb/s
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 @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 0x555851baa6c0] Too many bits 6408.707483 > 6144 per frame
requested, clamping to max
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x555851ba8800] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[libx264 @ 0x555851bc5e40] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x555851bc5e40] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 0x555851bc5e40] 264 - core 161 r3039 544c61f - H.264/MPEG-4
AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, matroska, to '/tmp/trailcam2.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p(pc,
bt470bg/unknown/unknown, progressive), 1280x720, q=2-31, 30.10 fps, 1k
tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 11025 Hz,
mono, fltp, 66 kb/s
    Metadata:
      encoder         : Lavc58.134.100 aac
[mjpeg @ 0x555851ba8800] EOI missing, emulating00:00:00.00 bitrate=N/A
speed=   0x
    Last message repeated 10 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:02.60 bitrate=
2.5kbits/s speed=5.08x
    Last message repeated 10 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:04.18 bitrate=
356.7kbits/s speed=4.07x
    Last message repeated 12 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:05.94 bitrate=
705.6kbits/s speed=3.88x
    Last message repeated 10 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:07.52 bitrate=
836.3kbits/s speed=3.61x
    Last message repeated 16 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:09.28 bitrate=
677.4kbits/s speed=3.52x
    Last message repeated 9 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:10.77 bitrate=
973.2kbits/s speed=3.42x
    Last message repeated 6 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:12.16
bitrate=1034.2kbits/s speed=3.32x
    Last message repeated 7 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:13.65
bitrate=1075.2kbits/s speed=3.28x
    Last message repeated 12 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:15.32
bitrate=1231.6kbits/s speed=3.29x
    Last message repeated 11 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:16.71
bitrate=1129.0kbits/s speed=3.24x
    Last message repeated 12 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:18.39
bitrate=1368.5kbits/s speed=3.24x
    Last message repeated 9 times
[mjpeg @ 0x555851ba8800] EOI missing, emulating=00:00:19.69
bitrate=1384.5kbits/s speed=3.19x
frame=  589 fps= 87 q=-1.0 Lsize=    4251kB time=00:00:20.34
bitrate=1712.1kbits/s speed=   3x
video:4106kB audio:138kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.162048%
[libx264 @ 0x555851bc5e40] frame I:26    Avg QP:19.67  size: 15678
[libx264 @ 0x555851bc5e40] frame P:236   Avg QP:22.72  size:  8770
[libx264 @ 0x555851bc5e40] frame B:327   Avg QP:23.36  size:  5281
[libx264 @ 0x555851bc5e40] consecutive B-frames: 22.6%  7.1%  9.2% 61.1%
[libx264 @ 0x555851bc5e40] mb I  I16..4: 12.8% 86.0%  1.2%
[libx264 @ 0x555851bc5e40] mb P  I16..4: 13.1% 28.2%  0.5%  P16..4:
23.0%  2.5%  0.7%  0.0%  0.0%    skip:31.9%
[libx264 @ 0x555851bc5e40] mb B  I16..4:  2.2%  5.2%  0.1%  B16..8:
29.2%  3.8%  0.4%  direct: 1.8%  skip:57.2%  L0:49.0% L1:48.2% BI:
2.8%
[libx264 @ 0x555851bc5e40] 8x8 transform intra:71.0% inter:93.0%
[libx264 @ 0x555851bc5e40] coded y,uvDC,uvAC intra: 39.8% 0.0% 0.0%
inter: 11.6% 0.0% 0.0%
[libx264 @ 0x555851bc5e40] i16 v,h,dc,p: 19% 10%  4% 66%
[libx264 @ 0x555851bc5e40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 13% 25%
4%  5%  8%  3%  4%  3%
[libx264 @ 0x555851bc5e40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 12% 15%
4% 11% 14%  5%  3%  2%
[libx264 @ 0x555851bc5e40] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x555851bc5e40] Weighted P-Frames: Y:28.0% UV:0.0%
[libx264 @ 0x555851bc5e40] ref P L0: 58.9%  5.7% 22.5% 10.9%  2.0%
[libx264 @ 0x555851bc5e40] ref B L0: 83.6% 12.8%  3.6%
[libx264 @ 0x555851bc5e40] ref B L1: 94.1%  5.9%
[libx264 @ 0x555851bc5e40] kb/s:1667.74
[aac @ 0x555851baa6c0] Qavg: 45616.324

2) Non-working output

robert at zeus:~$ ffprobe /tmp/sd/DCIM/100MEDIA/IMAG0060.AVI
ffprobe version n4.4 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x55ef3140a440] non-interleaved AVI
[mjpeg @ 0x55ef3140c100] dqt: 0 quant value
    Last message repeated 83 times
[avi @ 0x55ef3140a440] decoding for stream 0 failed
[avi @ 0x55ef3140a440] Could not find codec parameters for stream 0
(Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown),
1280x720, 11023 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/IMAG0060.AVI':
  Duration: 00:00:02.97, start: 0.000000, bitrate: 11208 kb/s
  Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D),
none(bt470bg/unknown/unknown), 1280x720, 11023 kb/s, 30.28 fps, 30.28
tbr, 30.28 tbn, 30.28 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 176 kb/s
robert at zeus:~$ ffmpeg -i /tmp/sd/DCIM/100MEDIA/IMAG0060.AVI -c h264
-c:a aac -crf 21 /tmp/trailcam.mkv
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x5595e2eb6d40] non-interleaved AVI
[mjpeg @ 0x5595e2eb8980] dqt: 0 quant value
    Last message repeated 83 times
[avi @ 0x5595e2eb6d40] decoding for stream 0 failed
[avi @ 0x5595e2eb6d40] Could not find codec parameters for stream 0
(Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown),
1280x720, 11023 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/IMAG0060.AVI':
  Duration: 00:00:02.97, start: 0.000000, bitrate: 11208 kb/s
  Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D),
none(bt470bg/unknown/unknown), 1280x720, 11023 kb/s, 30.28 fps, 30.28
tbr, 30.28 tbn, 30.28 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz,
mono, s16, 176 kb/s
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options
specified for stream 1, only the last option '-c:a aac' will be used.
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 @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 0x5595e2ef9240] Too many bits 6408.707483 > 6144 per frame
requested, clamping to max
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 0x5595e2ebda40] 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 @ 0x5595e2ef9240] Qavg: 662.734
[aac @ 0x5595e2ef9240] 2 frames left in the queue on closing
Conversion failed!

3) ffplay: working, then non-working

$ ffplay /tmp/sd/DCIM/100MEDIA/IMAG0001.AVI
ffplay version n4.4 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x7fee04000c80] non-interleaved AVI    0KB sq=    0B f=0/0
[mjpeg @ 0x7fee04002a40] dqt: 0 quant value
    Last message repeated 7 times
Input #0, avi, from '/tmp/sd/DCIM/100MEDIA/IMAG0001.AVI':
  Duration: 00:00:20.43, start: 0.000000, bitrate: 10038 kb/s
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D),
yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 9844 kb/s, 30.10 fps,
30.10 tbr, 30.10 tbn, 30.10 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 176 kb/s
[mjpeg @ 0x7fee04028d40] dqt: 0 quant value
    Last message repeated 7 times
[swscaler @ 0x7fede8165b00] deprecated pixel format used, make sure
you did set range correctly
[mjpeg @ 0x7fee04028d40] EOI missing, emulating
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
[mjpeg @ 0x7fee04028d40] EOI missing, emulatingKB sq=    0B f=0/0
   2.07 A-V: -0.008 fd=   0 aq=   52KB vq= 3651KB sq=    0B f=0/0
robert at zeus:~/downloads$ ffplay /tmp/sd/DCIM/100MEDIA/IMAG0021.AVI
ffplay version n4.4 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
--enable-lto --enable-fontconfig --enable-gmp --enable-gnutls
--enable-gpl --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
--enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
--enable-shared --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[avi @ 0x7f6bb8000c80] non-interleaved AVI    0KB sq=    0B f=0/0
[mjpeg @ 0x7f6bb8002a40] dqt: 0 quant value
    Last message repeated 99 times
[avi @ 0x7f6bb8000c80] decoding for stream 0 failed
[avi @ 0x7f6bb8000c80] Could not find codec parameters for stream 0
(Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown),
1280x720, 10965 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/IMAG0021.AVI':
  Duration: 00:00:20.43, start: 0.000000, bitrate: 11154 kb/s
  Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D),
none(bt470bg/unknown/unknown), 1280x720, 10965 kb/s, 30.05 fps, 30.05
tbr, 30.05 tbn, 30.05 tbc
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 176 kb/s
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value
    Last message repeated 111 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 11 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 16 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 11 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 14 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 14 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 14 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 15 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 11 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 16 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 15 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 15 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 11 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 14 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 13 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 15 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 15 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 12 times
[mjpeg @ 0x7f6bb802f540] dqt: 0 quant value   0KB sq=    0B f=0/0
    Last message repeated 4 times

4) Broken video ls / file / vlc output

$ ls -lh /tmp/sd/DCIM/100MEDIA/IMAG0065.AVI
-rwxr-xr-x 1 root root 3.9M Jun  6 03:24
/tmp/sd/DCIM/100MEDIA/IMAG0065.AVI


$ file /tmp/sd/DCIM/100MEDIA/IMAG0065.AVI
/tmp/sd/DCIM/100MEDIA/IMAG0065.AVI: RIFF (little-endian) data, AVI,
1280 x 720, ~30 fps, video: Motion JPEG, audio:
uncompressed PCM (mono, 11025 Hz)

$ vlc /tmp/sd/DCIM/100MEDIA/IMAG0065.AVI
VLC media player 3.0.13 Vetinari (revision 3.0.12.1-158-g6977abc430)
[0000562e2ae9ca20] [http] lua interface: Lua HTTP interface
[0000562e2ad935b0] main libvlc: Running vlc with the default
interface. Use 'cvlc' to use vlc without interface.
[00007f1be4001180] avi demux error: no key frame set for track 1
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value
[mjpeg @ 0x7f1be4d36580] dqt: 0 quant value


More information about the ffmpeg-user mailing list