Giter VIP home page Giter VIP logo

Comments (5)

ponchio avatar ponchio commented on June 5, 2024

Ciao, that assert infact looks wrong. I have remove it. Sorry.

Thanks for finding it.

from untrunc.

rob-fi avatar rob-fi commented on June 5, 2024

Looks like I'm experiencing similar:

Reading: ../../reference.MOV
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../../reference.MOV':
Metadata:
creation_time : 2014-02-06 21:26:06
Duration: 00:00:53.00, start: 0.000000, bitrate: 40778 kb/s
Stream #0.0(eng): Video: h264 (Main), yuvj420p, 1920x1080, 40775 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
Metadata:
creation_time : 2014-02-06 21:26:06
...

Begin: 26ebc 619b002fNal type: 1
: found as avc1
Begin: 27ca0 619b402fNal type: 1
: found as avc1
Begin: 27500 619b802fNal type: 1
untrunc: track.cpp:126: int Codec::getLength(unsigned char*, int): Assertion `pos - start < maxlength - 4' failed.
Aborted

The broken file is 724MB MOV from a Canon DLSR. The reference file is 258MB. I tried with a 3.1GB reference file but got a std::bad_alloc.

from untrunc.

rob-fi avatar rob-fi commented on June 5, 2024

Tried different reference files and also truncating the broken file with truncate, down to 200M, now get segfault with no further information (if you can let me know anything I can do to help debug this let me know, including supply video files)

Begin: 2d214 619a4037Nal type: 1
: found as avc1
Begin: 26184 619a8033Nal type: 1
: found as avc1
Begin: 24330 619ac033Nal type: 1

Segmentation fault

Tried the old code also which does the same thing.

from untrunc.

Vrihub avatar Vrihub commented on June 5, 2024

I tried recompiling untrunc after commenting out line track.cpp:124.
The program now runs without errors, but unfortunately the output video file doesn't work.
Is this bad luck with my file, or maybe commenting out that line actually breaks untrunc silently?

from untrunc.

arstropica avatar arstropica commented on June 5, 2024

Same issue as rjgscotland. Resizing the mp4 to < 200M resulted in a broken video stream. Ended up using yamb to successfully rescue my mp4 file.

from untrunc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.