MP4 H264 extracted with lossless-cut: Corrupt video codec
carpedrone
10 Dec 2019 09:24
Hi, I use https://github.com/mifi/lossless-cut (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 extract the initial part of a long video, e.g. from 0 to 0:40 seconds and upload to pond5, it works fine.
If I skip some seconds from the file and extract a portion in the middle or in the end, 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, 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.
I tried to fix the supposedly corrupted file with ffmpeg, using this command: ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4
Then re-uploaded, but same error.
I think pond5 process checking uploaded files is too strict.
I tried to file an issue also in the lossless-cut project: https://github.com/mifi/lossless-cut/issues/231
I use lossless-cut, because it's a very handy tool to do what I need to do, but pond5 is giving me headaches now...
I wanted to escalate this to the support as bug, but maybe somebody has some ideas?
If I extract the initial part of a long video, e.g. from 0 to 0:40 seconds and upload to pond5, it works fine.
If I skip some seconds from the file and extract a portion in the middle or in the end, 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, 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.
I tried to fix the supposedly corrupted file with ffmpeg, using this command: ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4
Then re-uploaded, but same error.
I think pond5 process checking uploaded files is too strict.
I tried to file an issue also in the lossless-cut project: https://github.com/mifi/lossless-cut/issues/231
I use lossless-cut, because it's a very handy tool to do what I need to do, but pond5 is giving me headaches now...
I wanted to escalate this to the support as bug, but maybe somebody has some ideas?
jason
10 Dec 2019 15:40
What makes you so special? Read the footage guidelines like everyone else. H264 is compressed (a lossless codec).
carpedrone
11 Dec 2019 02:50
I contacted support, which was definitively more helpful than the troll (jason) above. Ryan from support pointed me to the right direction explaining me that there is a duplicate detector and telling me to re-upload the same (fixed) file with a different name, e.g. foo1.mp4, re-upload as foo1a.mp4 or so.
In my case, I fixed the supposedly corrupt file via ffmpeg, like this:
ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4
My mistake was to re-upload the fixed file using the same name. Renaming it as explained did the job. It was not detected as corrupt anymmore.
@jason: learn to help others instead of being a troll.
In my case, I fixed the supposedly corrupt file via ffmpeg, like this:
ffmpeg -err_detect ignore_err -i DJI_0176.MP4 -c copy DJI_0176_fixed.mp4
My mistake was to re-upload the fixed file using the same name. Renaming it as explained did the job. It was not detected as corrupt anymmore.
@jason: learn to help others instead of being a troll.
carpedrone
19 Dec 2019 06:51
I found a better way to cut footage to upload to pond5...
lossless-cut has a nice UI, but as seen it produces partially unusable footage for pond5, as described above.
The alternative is to use kdenlive (open source video editor, originally for Linux but also available for Windows). With kdenlive it's possible to preview a clip, set an in and out point and extract a zone, also lossless (and thus at super fast speed, no need to re-encode the file).
https://kdenlive.org/en/download/
Hope this helps somebody.
lossless-cut has a nice UI, but as seen it produces partially unusable footage for pond5, as described above.
The alternative is to use kdenlive (open source video editor, originally for Linux but also available for Windows). With kdenlive it's possible to preview a clip, set an in and out point and extract a zone, also lossless (and thus at super fast speed, no need to re-encode the file).
https://kdenlive.org/en/download/
Hope this helps somebody.