Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/mp4.cpp:537: void Mp4::saveVideo(const string&): Assertion `track.chunks_.size()' failed. // track.codec_.name_=avc1, track.getNumSamples()=14348 #172

Open
karepiu opened this issue Jul 8, 2024 · 3 comments

Comments

@karepiu
Copy link

karepiu commented Jul 8, 2024

`Info: version 'v364-bd783dd' using ffmpeg '3.3.4' Lavc57.89.100
Info: reading DJI_0154.mp4
Info: parsing healthy moov atom ...
Composition time offset atom found. Out of order samples possible.

Info: reading mdat from truncated file ...
Info: Found 14348 packets ( avc1: 14348 avc1-keyframes: 479 )
Info: Duration of avc1: 7min 58s 744ms (478744 ms)
src/mp4.cpp:537: void Mp4::saveVideo(const string&): Assertion track.chunks_.size()' failed. // track.codec_.name_=avc1, track.getNumSamples()=14348

Damaged file is > 2GB and seems the tool sees 7 mins of footage but still the chunk error.

Regards

@karepiu karepiu closed this as completed Jul 8, 2024
@karepiu karepiu reopened this Jul 8, 2024
@anthwlock
Copy link
Owner

Please send me the files (healthy+broken) and I might take a look at some point.
You can upload them on dropmefiles.net. If you think they are too big, you can use untrunc -sh file.mp4.
In case you want to keep the link private, you can send me an email - see my Profile page.
Thank you!

@DKATyler
Copy link

DKATyler commented Oct 15, 2024

@anthwlock
While I'm not the original asker, I encountered the same issue: https://dropmefiles.net/en/Q8Se3
This is a healthy file that somehow throws tracks.chunck_.size()==0 on mp4.cpp line 537. tracks.size() is 1.
Invoked using docker container:
untrunc-master\untrunc-master>docker run -v untrunc-master\untrunc-master:/mnt untrunc /mnt/Test_Vid.mp4 /mnt/Test_Vid.mp4

Just tested the original repo:
https://github.com/ponchio/untrunc
That one was able to process the file.

@joanpepcompany
Copy link

@anthwlock

I have the same issue as mentioned by @DKATyler. I performed a git bisect and observed that the issue was introduced in commit acd93a.

I hope it helps. Thanks for maintaining this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants