anthwlock / untrunc

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

Info: unknown track 'hev1' found -> fallback to dynamic stats Error: bad track: 'hev1' #50

Closed muyangren907 closed 4 years ago

muyangren907 commented 4 years ago

The following error occurred when I fixed the video on Ubuntu 18.04

Info: version '71d1a65' using ffmpeg '3.3.9' Info: reading 2020_05_28_23_23_46.mp Info: parsing healthy moov atom ... Composition time offset atom found. Out of order samples possible.

Info: unknown track 'hev1' found -> fallback to dynamic stats Error: bad track: 'hev1'

anthwlock commented 4 years ago

Hi, hev1 is a new track, and I will need the files (healthy+broken) to add support for it. If lucky, same code as for hvc1 can be used.

How to upload https://wetransfer.com/ offers hosting <2GB files for 7days, without registration. If your files are larger, `untrunc -sh file.mp4` lets you extract the first 200MB.
chenbb16 commented 4 years ago

@anthwlock I have the same problem. Can you help me? I compress the files (healthy+broken) into test.zip. I'm using Firefox Send, which will expire after two downloads or seven days. https://send.firefox.com/download/d66a4ac958c5090a/#V7FwdpVr0LidpOgRWGPHwA

chenbb16 commented 4 years ago

@anthwlock I have the same problem. Can you help me? I compress the files (healthy+broken) into test.zip I'm using Firefox Send, which will expire after two downloads or seven days https://send.firefox.com/download/d66a4ac958c5090a/#V7FwdpVr0LidpOgRWGPHwA I have another broken video in https://send.firefox.com/download/34ea06655304f365/#SHsCUvpIOtg4SHaj7xfstw

anthwlock commented 4 years ago

try 02c60464b7dc7a3c604d8d979327d29bf3f1602e

chenbb16 commented 4 years ago

First of all, thanks a lot for your help!Most of the video has been fixed, but I still have some problems, although I use the -sv, video and audio still don't seem to match.

muyangren907 commented 4 years ago

try 02c6046

Thank you very much. My video has been successfully fixed, but some parts of the video do not match the sound

anthwlock commented 4 years ago

The problem is that in some files the packet/frame duration is not constant. AFAIK ffmpeg doesn't report the correct duration..

You can see the durations by using untrunc -d good.mp4 | grep hev1, observe the last column.

When untrunc detects this, it will issue the following warning: Warning: guessed frame durations of 'hev1' will probably be wrong!

muyangren907 commented 4 years ago

Thank you for your help!