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

untrunc: track.cpp:178: void Track::parse(Atom*, Atom*): Assertion `times.size() == sizes.size()' failed. #5

Open
StepS- opened this issue Sep 29, 2013 · 1 comment
Assignees

Comments

@StepS-
Copy link

StepS- commented Sep 29, 2013

Ubuntu 12.04.03 x64 in VMware 10

When trying to fix the file this error appears:

untrunc: track.cpp:178: void Track::parse(Atom*, Atom*): Assertion `times.size() == sizes.size()' failed.

Tried with both the automatic and manual libav installation, same error... There were a few warnings during compilation, of course, as stated by others.
What should I do? Or... What does this error mean, because I'm not really sure here, I'm pretty much a beginner in C++. Thanks in advance, and I'll make sure to donate for your work when the trouble with this video is resolved!

P.S. If you're interested, here's the whole output. I used a big (602MB) working sample here, but I also have a very small working sample, giving me the same error. The broken file is missing the moov atom due to the recording program hanging the PC entirely when trying to stop the process (will make sure not to use OBS next time, until it goes out of beta!).

Reading: broadcast.mp4
Composition time offset atom found. Out of order samples possible.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'broadcast.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2013-09-27 21:50:05
    encoder         : Open Broadcaster Software v0.57b
  Duration: 01:08:36.26, start: 0.000000, bitrate: 1170 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16, 160 kb/s
    Metadata:
      creation_time   : 2013-09-27 21:50:05
    Stream #0.1(und): Video: h264 (High), yuv420p, 1280x720, 1000 kb/s, 30 fps, 30 tbr, 1k tbn, 2k tbc
    Metadata:
      creation_time   : 2013-09-27 21:50:05
untrunc: track.cpp:178: void Track::parse(Atom*, Atom*): Assertion `times.size() == sizes.size()' failed.
Aborted (core dumped)

Edit: okay, I've tried to comment the assertions out and all I got was a 70 kb file with seemingly one frame and 1 second of audio. I also tried to intentionally produce a broken video from my phone and trying it on there but there were no assertion errors, and the result was a full file. I guess it's that this particular case of videos is not yet supported... Should I send them to you so you can look into it manually? Thanks again.

@gavvvr
Copy link

gavvvr commented Jul 27, 2014

Getting same error having same situation: incomplete file made with crashed OBS (Open Broadcaster Software)

untrunc: track.cpp:184: void Track::parse(Atom*, Atom*): Assertion `times.size() == sizes.size()' failed.

UPD commented both asserts and repaired the file. Thanks, very useful tool.

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

3 participants