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

Error: bad track: 'mp4v' #37

Closed edent closed 4 years ago

edent commented 4 years ago

I'm trying to fix a broken 3GP file. I have a couple of working files from the same camera. When I run untrunc I get this error.

Info: version '' using ffmpeg '4.1.3-0ubuntu1'
Info: reading /data/working.3GP
Info: parsing healthy moov atom ... 

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

Any idea what I can do to fix it?

anthwlock commented 4 years ago

See this function? One needs to implement it. If you get it to work, please make a PR. I can only help you if you give me the pair of files (working+broken)!

Edit: It looks like some effort was alredy done for this: https://github.com/Hacklin/untrunc/commit/cb2d05d075778d151c2efd1e6632528c1910f9d2. Does it work?

anthwlock commented 4 years ago

@edent I added said function, however it will (currently) only work when building against ffmpeg 3.3. If interested, read here why.

Hope it works now!