Log in

View Full Version : Need help joining mp4 clips using MP4Box


mariner
23rd March 2011, 15:46
Greetings.

Appreciate help on using MP4Box to join 1920x1080/60p AVC/AAC mp4 clips recorded by Sanyo HD2000 camcorder.

The camcorder has simple join function but is limited by FAT32 4GB file size, so looking for alternative.

1. Yamb seems to use the following command line that results in a clip that has multiple video/audio streams. It is not joined as is commonly understood.


MP4Box.exe -force-cat
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
.
.
.
"joined.mp4"


2. My MP4Box GUI uses the following command line that results in a clip with single video/audio stream that seems to play well. Is this the correct CLI to use?


MP4Box.exe
-cat "file1.MP4"
-cat "file1.MP4"
-cat "file1.MP4"
.
.
.
-new "joined.mp4"


3.Does the joined mp4 clip created by MP4Box suffer from video/audio sync issue that seems to affect tsmuxer/eac3to and other mts joiner? The joined clip from the camcorder is larger than the one created by MP4Box, but when demuxed it actually has a smaller audio stream. The video streams are identical.

Many thanks and best regards.

blis
6th September 2011, 21:27
Greetings.

Appreciate help on using MP4Box to join 1920x1080/60p AVC/AAC mp4 clips recorded by Sanyo HD2000 camcorder.

The camcorder has simple join function but is limited by FAT32 4GB file size, so looking for alternative.

1. Yamb seems to use the following command line that results in a clip that has multiple video/audio streams. It is not joined as is commonly understood.


MP4Box.exe -force-cat
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
-add "file1.MP4#1:lang=en:fps=59.940"
-add "file1.MP4#2:lang=en"
.
.
.
"joined.mp4"


2. My MP4Box GUI uses the following command line that results in a clip with single video/audio stream that seems to play well. Is this the correct CLI to use?


MP4Box.exe
-cat "file1.MP4"
-cat "file1.MP4"
-cat "file1.MP4"
.
.
.
-new "joined.mp4"


3.Does the joined mp4 clip created by MP4Box suffer from video/audio sync issue that seems to affect tsmuxer/eac3to and other mts joiner? The joined clip from the camcorder is larger than the one created by MP4Box, but when demuxed it actually has a smaller audio stream. The video streams are identical.

Many thanks and best regards.

Yes, if you check the mp4's with mediainfo you will notice the audio and video lenghts are not the same. It's a small difference but over many clips you will start to shift.