Giter VIP home page Giter VIP logo

Comments (3)

DEfusion avatar DEfusion commented on May 26, 2024

I get the same issue, 3.5GB source video results in a working 2.5MB 2 second video. This is the output I get:

Composition time offset atom found. Out of order samples possible.
Sample dependency flag atom found. I and P frames might need to recover that info.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/share/working.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2014-12-28 15:38:04
  Duration: 00:29:15.98, start: 0.000000, bitrate: 7141 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 2554x1220, 7137 kb/s, PAR 1:1 DAR 1277:610, 27.87 fps, 600 tbn, 50 tbc
    Metadata:
      creation_time   : 2014-12-28 15:38:04
Nal type: 6
Length for first packet = 24 / 800000
Nal type: 5
Length for first packet = 581797 / 800000
Nal type: 1
Length for first packet = 2101 / 800000
Nal type: 1
Length for first packet = 4627 / 800000
Nal type: 1
Length for first packet = 519 / 800000
Nal type: 1
Length for first packet = 103 / 800000
Nal type: 1
Length for first packet = 25000 / 800000
Nal type: 1
Length for first packet = 206 / 800000
Nal type: 1
Length for first packet = 150597 / 800000
Nal type: 1
Length for first packet = 1335 / 800000
Nal type: 1
Length for first packet = 309202 / 800000
Nal type: 1
Length for first packet = 462 / 800000
Nal type: 1
Length for first packet = 559476 / 800000
Nal type: 1
Length for first packet = 694 / 800000
Nal type: 1
Length for first packet = 184976 / 800000
Nal type: 1
Length for first packet = 8488 / 800000
Nal type: 1
Length for first packet = 135828 / 800000
Nal type: 1
Length for first packet = 10761 / 800000
Nal type: 1
Length for first packet = 48902 / 800000
Nal type: 1
Length for first packet = 7931 / 800000
Nal type: 1
Length for first packet = 33203 / 800000
Nal type: 1
Length for first packet = 7115 / 800000
Nal type: 1
Length for first packet = 30586 / 800000
Nal type: 1
Length for first packet = 7130 / 800000
Nal type: 1
Length for first packet = 30053 / 800000
Nal type: 1
Length for first packet = 7155 / 800000
Nal type: 1
Length for first packet = 29472 / 800000
Nal type: 1
Length for first packet = 7272 / 800000
Nal type: 1
Length for first packet = 40980 / 800000
Nal type: 1
Length for first packet = 6636 / 800000
Nal type: 1
Length for first packet = 29721 / 800000
Nal type: 1
Length for first packet = 6378 / 800000
Nal type: 1
Length for first packet = 28424 / 800000
Nal type: 1
Length for first packet = 6325 / 800000
Nal type: 1
Length for first packet = 28227 / 800000
Nal type: 1
Length for first packet = 6480 / 800000
Nal type: 1
Length for first packet = 32568 / 800000
Nal type: 1
Length for first packet = 6474 / 800000
Nal type: 1
Length for first packet = 35549 / 800000
Nal type: 1
Length for first packet = 6371 / 800000
Nal type: 1
Length for first packet = 28400 / 800000
Nal type: 1
Length for first packet = 6303 / 800000
Nal type: 1
Length for first packet = 1444822 / 800000
Found 42 packets

I tried to provide other working videos from the same capture device to see if that helped but with all but one I get:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

from untrunc.

ponchio avatar ponchio commented on May 26, 2024

Ciao, and sorry for the delay in answering.

This happens when for some reason a packet is not recognized. The reasons can be many (corrupted video, bug in my code, unespected NAL (I still do not understand much of it).

Write me at [email protected] and send me a small working video and a few (10-20) megabytes of the truncated one, I might find the cause of the problem (or I might not, your mileage might vary).

from untrunc.

Vincent14 avatar Vincent14 commented on May 26, 2024

I deleted the file, sorry :/

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.