fix mp4 file ([mov,mp4,m4a,3gp,3g2,mj2] moov atom not found)

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
User avatar
luna80
Veteran
Veteran
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

fix mp4 file ([mov,mp4,m4a,3gp,3g2,mj2] moov atom not found)

Post by luna80 »

Hi,
I have a problem with some gopro mp4 files, I tried to play those with several player but they doesn't works, if I try to fix with ffmpeg with the command

Code: Select all

ffmpeg -i GX010018.MP4 -vcodec copy -acodec copy -movflags faststart out.mp4
i get this error

Code: Select all

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x557822cb4180] moov atom not found
GX010018.MP4: Invalid data found when processing input
It's strange because gopro split the records in files of 4GB if bigger and only those files give me problems, the others (with less of 4GB size) are ok

I download files from gopro with gphoto2, same issue on two different computers

can somebody help me to fix those mp4 files? thanks a lot in advance
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
User avatar
fedeliallalinea
Administrator
Administrator
Posts: 31976
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:

Post by fedeliallalinea »

Maybe you should merge splitted mp4 files?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
User avatar
luna80
Veteran
Veteran
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

Post by luna80 »

I thought and now I'm emerge openshot, when finish I'll try.

I tought I can play single files too for this reason I open this thread

thanks
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
User avatar
luna80
Veteran
Veteran
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

Post by luna80 »

I cannot merge the files in any way, all the ways tried tell me the file type is not supported or corrupt
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
User avatar
luna80
Veteran
Veteran
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

Post by luna80 »

I think gphoto2 wrong download splitted files from gopro (usb), I tried to get files from a microSD (through adapter) and they are not corrupted
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
User avatar
Zucca
Moderator
Moderator
Posts: 4677
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:

Post by Zucca »

Hm. I wonder if the files are splitted without any termination..?

You could try

Code: Select all

cat video_01.mp4 video_02.mp4 video_03.mp4 > full_video.mp4
... and then try to play it.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
wanne32
Tux's lil' helper
Tux's lil' helper
Posts: 85
Joined: Sat Nov 11, 2023 6:10 am

Post by wanne32 »

4GiB sounds like an overflow wouldn't wonder if everything after 4GiB ist just empty or a copy of the 4 GiB before. Since mp4 relies on absolut positioning it is horrible to recover from partial files.
If you are luck it is only a transmission problem. Maybe you can try an other transfer method. (Switching between Wifi/USB/Card exchange...)
Post Reply