anthwlock / untrunc

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

Got unexpected packet size after a partial decode #10

Closed jrichardsz closed 5 years ago

jrichardsz commented 5 years ago

I tried to use this tool to restore my broken mp4 video but , I have this error:

Info: reading /path/to/working-video.m4v
Info: parsing healthy moov atom ... 
Info: avcC got decoded
Info: parsing mdat from truncated file ... 
[aac @ 0x10da980] Multiple frames in a packet.
[aac @ 0x10da980] Got unexpected packet size after a partial decode
Error: Invalid length: -22. Wrong match in track: 0
Error: unable to find correct codec -> premature end
Info: Found 1 packets ( mp4a: 1 avc1: 0 avc1-keyframes: 0 )
Info: Duration of mp4a: 21ms  (21 ms)
Info: Duration of avc1:  (0 ms)
Info: saving /path/to/broken-video.mp4_fixed.mp4

I have cloned the last version (master) and follow the readme instructions.

Please, what can I do?

Regards.

anthwlock commented 5 years ago

Try other versions of libavcodec. For example 3.2.11. I think you have the same problem as described here. Please tell me which version worked for you after you are done.

jrichardsz commented 5 years ago

I will try , thanks!