jlesage / docker-czkawka

Docker container for Czkawka
MIT License
134 stars 10 forks source link

mp42 Codec videos cause crash during Similar Videos scan #19

Open C-BoT-AU opened 1 year ago

C-BoT-AU commented 1 year ago

Docker Log:

[app         ] thread '<unnamed>' panicked at 'ffprobe failure. Got unexpected rotation. src_path: /storage/video.mp4, rotation: Some(-9223372036854775808)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg_cmdline_utils-0.1.2/src/ffmpeg_stats.rs:165:44
[app         ] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[supervisor  ] service 'app' exited (got signal SIGABRT).
[supervisor  ] service 'app' exited, shutting down...

After a few days of having Czkawka crash on me while doing a scan for similar files, I finally dug into it and located that it was always a specific video mentioned causing the 'panic'. Re-encoded the video with ffmpeg HEVC and it stopped crashing.

I dug into the original MP4 with MediaInfo, and despite the video looking fine and identical to everything else: Video

ID: 1
Format: HEVC
Format/Info: High Efficiency Video Coding
Format profile: Main@L4@Main
Codec ID: hvc1
Codec ID/Info: High Efficiency Video Coding

The overall MP4 container details looked different:

Format: MPEG-4
Format profile: Base Media / Version 2
Codec ID: mp42 (mp42)

It is the only time I've ever seen mp42, and this is the only video having issues. Quick Google and looks like there may be some known issues or something with this format. Posting here to see if anyone else has thoughts on a proper fix.