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

Succeed creating a small file of few KB, not complete video #13

Open
Vincent14 opened this issue Aug 9, 2014 · 3 comments
Open

Succeed creating a small file of few KB, not complete video #13

Vincent14 opened this issue Aug 9, 2014 · 3 comments

Comments

@Vincent14
Copy link

Hello,

With ffmpeg i tried: avconv -i VID_0757.3gp
I got: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xca2840] moov atom not found
VID_0757.3gp: Invalid data found when processing input

I tried to solve my video with untrunc but unfortunatly, the file produceed is too small and doesn't contain my full video.

If I give you samples (2 small files, less than 20Mo), could you give a try please? Where can I contact you?

@DEfusion
Copy link

DEfusion commented Jan 6, 2015

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)

@ponchio
Copy link
Owner

ponchio commented Jan 12, 2015

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).

@Vincent14
Copy link
Author

I deleted the file, sorry :/

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