anthwlock / untrunc

Restore a truncated mp4/mov. Improved version of ponchio/untrunc
GNU General Public License v2.0
1.87k stars 182 forks source link

Is there a gallery of video from working sources #102

Closed exander77 closed 2 years ago

exander77 commented 2 years ago

To try against?

anthwlock commented 2 years ago

I only know of the mplayer archive, see https://github.com/anthwlock/untrunc/issues/74#issuecomment-729581683. If you know the camera model, maybe using a search engine will lead you to some raw samples.

exander77 commented 2 years ago

@anthwlock I actually have screengrabbe by screenpresso software, I was able to make audio work by -s parameter with uncorrupted video from the same source at the end. Video, no go for now. It was broken by Windows suspension during recording.

WARNING: Because of internal decoder changes, using ffmpeg '4.3.2-0+deb11u1ubuntu1' with '-s' can be slow!
         You are advised to compile untrunc against ffmpeg 3.3!
         See the README.md on how to do that. 
Info: version '2ac1390' using ffmpeg '4.3.2-0+deb11u1ubuntu1'
Info: reading video.mp4
Info: parsing healthy moov atom ... 
Failed reading golomb: too large!

Info: reading mdat from truncated file ...
Info: Muted ffmpeg to reduce redundant warnings/errors. Use '-do' to see them.
Warning: Codec::was_bad_ = 1
... same error was repeated endlessly ...
Warning: Codec::was_bad_ = 1
Info: Found 391834 packets ( mp4a: 287831 avc1: 104003 avc1-keyframes: 6933 )
Info: Duration of mp4a: 1h 51min 23s 422ms  (6683422 ms)
Info: Duration of avc1: 1h 55min 33s 533ms  (6933533 ms)
Warning: Unknown sequences: 1
Warning: Bytes NOT matched: 149KiB (0.00684%)
Info: saving 2021-10-08_17h16_04.mp4_fixed-s1.mp4

1 warnings were hidden!
exander77 commented 2 years ago
[h264 @ 0x55ace224f8c0] No start code is found.
[h264 @ 0x55ace224f8c0] Error splitting the input into NAL units.
[h264 @ 0x55ace224f8c0] cabac_init_idc 10 overflow
[h264 @ 0x55ace224f8c0] decode_slice_header error
[h264 @ 0x55ace224f8c0] no frame!
[h264 @ 0x55ace224f8c0] cabac_init_idc 14 overflow
[h264 @ 0x55ace224f8c0] decode_slice_header error
[h264 @ 0x55ace224f8c0] no frame!
[h264 @ 0x55ace224f8c0] cabac_init_idc 3 overflow
[h264 @ 0x55ace224f8c0] decode_slice_header error
[h264 @ 0x55ace224f8c0] no frame!
[h264 @ 0x55ace224f8c0] cabac_init_idc 6 overflow
[h264 @ 0x55ace224f8c0] decode_slice_header error
[h264 @ 0x55ace224f8c0] no frame!
[h264 @ 0x55ace224f8c0] cabac_init_idc 5 overflow
[h264 @ 0x55ace224f8c0] decode_slice_header error
[h264 @ 0x55ace224f8c0] no frame!
[h264 @ 0x55ace224f8c0] co located POCs unavailable
[h264 @ 0x55ace224f8c0] error while decoding MB 7 0, bytestream -15
[h264 @ 0x55ace224f8c0] concealing 8160 DC, 8160 AC, 8160 MV errors in B frame

Maybe related to this? https://github.com/anthwlock/untrunc/issues/95

anthwlock commented 2 years ago

Maybe related to this?

95

Seems likely! But I haven't looked into that issue yet, so if you find something, lmk.

Also a exiftool good.mp4 might show some further correlation between your files and those from #95. But please post further infos in that issue, not here!