Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

ffmpeg: "moov atom not found" on a seemingly valid file

Writer Sebastian Wright

GoPro cameras cut up video in 4GB MP4 files.

Attempting to merge them with ffmpeg 4.4.1 like so:

ls GH017642.MP4 GH027642.MP4 | while read line; do echo "file '$line'"; done | ffmpeg -protocol_whitelist file,pipe -f concat -i - -c copy out.mp4

fails with:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5573df8c9ec0] moov atom not found
[concat @ 0x5573df8b7ec0] Impossible to open 'pipe:GH017642.MP4'
pipe:: Invalid data found when processing input

"moov" does seem to be present in that file, though:

> ffmpeg -v trace -i GH017642.MP4 2>&1 | grep -e type:\'mdat\' -e type:\'moov\'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a71e111dc0] type:'mdat' parent:'root' sz: 3999992669 28 4001343671
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a71e111dc0] type:'moov' parent:'root' sz: 1350982 3999992697 4001343671

Additionally, both Quicktime and VLC play that file just fine.

What could cause the ffmpeg error, how to fix it?

6 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy