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

2021-06-10 Thread Rob Hallam
On Wed, 9 Jun 2021 at 21:52, Carl Eugen Hoyos  wrote:
> This is a regression, works fine with FFmpeg 3.2, I opened ticket #9287.
>
> Thank you for the sample, Carl Eugen

My pleasure, thank you for looking into this and opening the ticket,
I'll watch it with interest.

Much appreciated,
Rob
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2021-06-09 Thread Carl Eugen Hoyos
Am Di., 8. Juni 2021 um 14:52 Uhr schrieb Rob Hallam :
>
> On Tue, 8 Jun 2021 at 00:57, Carl Eugen Hoyos  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

This is a regression, works fine with FFmpeg 3.2, I opened ticket #9287.

Thank you for the sample, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2021-06-08 Thread Rob Hallam
On Tue, 8 Jun 2021 at 00:57, Carl Eugen Hoyos  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@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
  libavformat59.  2.101 / 59.  2.101
  libavdevice59.  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
  libpostproc56.  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' (500) 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.00, 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

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

2021-06-07 Thread Carl Eugen Hoyos



> Am 06.06.2021 um 14:44 schrieb Rob Hallam :
> 
> However, while some of the videos play both video and audio, others have no 
> video

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.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2021-06-06 Thread Rob Hallam
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
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 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
  libpostproc55.  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.00, 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@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
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 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
  libpostproc55.  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.00, bitrate: 10038 kb/s
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D),
yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 9844 kb/s, 30.10 fps,