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

MP4 H264 extracted: Corrupt video codec on pond5 #231

Closed
firepol opened this issue Dec 10, 2019 · 5 comments
Closed

MP4 H264 extracted: Corrupt video codec on pond5 #231

firepol opened this issue Dec 10, 2019 · 5 comments
Labels

Comments

@firepol
Copy link

firepol commented Dec 10, 2019

Hi, I use lossless-cut to cut my DJI drone footage shot with the DJI Mavic Air, but I suppose this problem affects all files with the same codec.

If I skip some seconds from the file and extract a portion in the middle, e.g. in a 50s video I skip the first 10 seconds and select from 0:10 to 0:50 and I upload the extracted file to pond5 (a website where you can sell your footage) pond5 gives me this error:

PROCESSING FAILED
Corrupt video codec. Please see our upload guidelines.

I think that the initial part of an h264 ecoded MP4 contains information not included when extracting a portion not including the initial part...

The file works just fine with VLC, I can play it without problems.

I tried to check the file with ffprobe, but can't see any error.

Ideas?

@firepol
Copy link
Author

firepol commented Dec 11, 2019

I contacted pond5 support and I was pointed to the right direction:

https://www.pond5.com/community?forum=628&thread=114153183

So here my findings: if I use ffmpeg to fix the second part (as explained above) of a file extracted with lossless-cut, like this, and upload the fixed file to pond5, I don't get the processing failed error:

ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4

I binary compared with Beyond Compare the file extracted by lossless-cut and the one fixed by ffmpeg, and there is a difference in the end, see screenshot:

image

So I think lossless-cut should integrate a fix, so that files extracted without containing the initial part of the original source file have the proper information.

In my case the corrupt file ends with: Lavf56.15.102
The fixed version ends with: Lavf58.29.100

I really don't know what that means, but I hope the developer in charge can make a food use of my little investigation. Cheers

@firepol
Copy link
Author

firepol commented Dec 11, 2019

I did fix 2 more files and in both case, the ending of the corrupt files was: Lavf58.33.100
Fixed version: Lavf58.29.100

But fixing this doesn't always help pond5....

@mifi
Copy link
Owner

mifi commented Feb 11, 2020

Thanks for the heads up. So you're saying that even using ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4 doesn't solve the problem you had when uploading?

@mifi
Copy link
Owner

mifi commented Feb 11, 2020

I have upgraded ffmpeg version included in LC. maybe it helps... or if you could try to cut with newest ffmpeg from the command line and see if it works, it would be great

mifi added a commit that referenced this issue Feb 11, 2020
@mifi mifi added the bug label Feb 11, 2020
@mifi
Copy link
Owner

mifi commented Jan 15, 2022

closing due to lack of activity

@mifi mifi closed this as completed Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants