Username:
B
I
U
S
"
url
img
#
code
sup
sub
font
size
color
smiley
embarassed
thumbsup
happy
Huh?
Angry
Roll Eyes
Undecided
Lips Sealed
Kiss
Cry
Grin
Wink
Tongue
Shocked
Cheesy
Smiley
Sad
<- 1234567 ->
--
--
List results:
Search options:
Use \ before commas in usernames
Have you tried this with the 2 mp4 files I posted? I can't get your method to work.
Edit history:
Mystery: 2011-04-30 03:28:24 pm
Mystery: 2011-04-30 03:27:28 pm
I don't really get the syntax.
I've basically tried:

mp4box -cat "1.mp4" -cat "2.mp4" "3.mp4"

Which appends the video tracks, but creates two audio tracks in the output file.

mp4box -cat "1.mp4" -cat "2.mp4" "3.mp4"
Appending file 1.mp4
No suitable destination track found - creating new one (type soun)
No suitable destination track found - creating new one (type vide)
Appending file 2.mp4
No suitable destination track found - creating new one (type soun)
Saving to 3.mp4: 0.500 secs Interleaving

Although thinking about it, it might be cause they have different number of channels...
Some basic syntax:

mp4box -add VideoAndAudio1.mp4 -cat VideoAndAudio2.mp4 -new VideoAndAudio1and2.mp4

mp4box -add video1.mp4 -add audio1.mp4 -new VideoAndAudio1.mp4
Okay, tried your files ballofsnow. I managed to append them.
When running the program, I also get these results:

First file:

There is a difference of 11750 ms between audio and video!

Second file:

ERROR: Audio duration is longer than video duration!
There is a difference of -68 ms between audio and video!

Now let's try adding these together.
Edit history:
Exo: 2011-04-30 03:58:40 pm
Exo: 2011-04-30 03:57:06 pm
Sandbagging
@snow : What the heck is up with that 2nd file man..1 ms too much on the audio and 76 ms missing from the video ?? I've got no clue how to handle that in mp4box ^^
I'll fix the first file and append them both but i have no clue what'll happen..

-edit-
It just crashed : |

P.S.: Do I see Clannad in one of your avatars Mystery ? :s
Edit history:
Mystery: 2011-04-30 04:01:34 pm
Mystery: 2011-04-30 04:00:37 pm
Mystery: 2011-04-30 04:00:17 pm
Dunno. Can't remember all of where they're from.
I haven't watched Clannad so much.
Anyway, I tried the command line:

-add "A:\Video\Projects\Mp4 append test\1.mp4"#1 -add "A:\Video\Projects\Mp4 append test\1.mp4"#2:delay=11683 -cat "A:\Video\Projects\Mp4 append test\2.mp4" -new "A:\Video\Projects\Mp4 append test\3.mp4"

Unfortunately, it didn't work.
Here is what I get from the output file:

There is a difference of 11683 ms between audio and video!

So there is something wrong with the command line.
But the thing is that it also PLAYS wrong.
The application does its job fine, though (thankfully).
Sandbagging
Shouldn't the delay be 11750 instead of 11683 ?
Edit history:
Mystery: 2011-04-30 04:09:16 pm
Hrm... I'll have to look into that.
EDIT:
Ah, right, silly me.
The command line is:

-add "A:\Video\Projects\Mp4 append test\1.mp4"#1 -add "A:\Video\Projects\Mp4 append test\1.mp4"#2:delay=11750 -cat "A:\Video\Projects\Mp4 append test\2.mp4" -new "A:\Video\Projects\Mp4 append test\3.mp4"

The delay in 3.mp4 is:

There is a difference of 11683 ms between audio and video!

I accidentally told it to get the difference in 3.mp4 and copied the command line >_<
Still, same story.
Edit history:
Exo: 2011-04-30 04:15:27 pm
Exo: 2011-04-30 04:13:51 pm
Exo: 2011-04-30 04:12:27 pm
Sandbagging
@Ballsofsnow : Here is the output file after the procedure. Obviously your 2nd file is a trainwreck and beyond repair Tongue
(I didn't temper with the 2nd file at all)

http://dl.dropbox.com/u/22115463/output.mp4

In case anybody's interested in the cmd :

http://pastebin.com/QsLtGTTL

P.S.: It should work fine on NORMAL video files with only audio dead-ends.
Doesn't seem to work at all...?

Desynced on MPC:HC 1.3.1249.0, Quicktime 7.6.6, VLC 1.1.9.
Edit history:
Exo: 2011-04-30 04:23:02 pm
Exo: 2011-04-30 04:21:21 pm
Sandbagging
Well duh of course it doesn't. I didnt do anything to the 2nd file. It's videotrack is too short. There is no fix for that except re-encoding.
(Atleast if I understand the concatenating process correctly)

P.S.: Gonna test delaying video tracks..hold on.
Still, it seems you are delaying the audio in the first file and not the second.
But regardless if the audio is longer than the video, it should work, shouldn't it?
Both videos should be considered "normal". I didn't do anything special to the mp4 files.
Edit history:
Exo: 2011-04-30 04:43:57 pm
Sandbagging
Omg had a typo which didnt fix the audio delay...hold on >_>
-edit-
Seems like -cat screws majorly with the audio delay :/
I'll try to figure something out before I'm going to sleep.
Yeah... I don't think mp4box can do it. I've tried this in the past but wanted to see if you guys could find a way to do it. And the delay command in mp4box may work in some media players and not in others, the support isn't there. I think the only sure way to get this working is to modify the stream itself. Container level stuff doesn't seem to cut it.
Edit history:
Exo: 2011-04-30 04:59:25 pm
Exo: 2011-04-30 04:58:01 pm
Sandbagging
Semi-final solution :

Use MKVMerge :s

http://dl.dropbox.com/u/22115463/SMB_27v_15a.mkv

Hm interesting...using mkvextract on the container results in f'ed up audio...weird.
heh, mkv would definitely make things easier. Smiley
Modifying the stream is... such a pain. We'd need audio decoders first of all. I know of a sound library that can modify wav files, and Nero can encode the stuff...
The muxing isn't a problem. It's just such a pain to do all that.

I've never had problems with an audio delay in mkv, however.
Should we just try using that instead?
Unless SDA decides to moves to mkv there's not much point. It may give ideas for mp4, maybe.

I'm actually curious as to how avidemux does it. Why can't it just put silence instead of looping the audio?
But seeing as they are unofficial...
I didn't really follow the beginning of the thread. I guess if we're not trying to find some official solution, then go right ahead. Smiley
Another option is to mux in mkv, extract and mux to mp4. I don't know if it works. I can't get mp4box to extract the tracks properly (curse that stupid lack of documentation).
Edit history:
ballofsnow: 2011-04-30 05:10:44 pm
I often have to refer to their online docs: http://gpac.wp.institut-telecom.fr/mp4box/mp4box-documentation/
Edit history:
Exo: 2011-04-30 05:12:38 pm
Sandbagging
@Mystery : I used MKVExtract to get the audio and video files out of the mkv container. That completly screws up the synch on them though. It alters the audio track :/

P.S.: No we're not looking for an official solution. SDA doesn't wanna host appended segmented runs..or so it seems atleast.
*sigh* What I wouldn't give for a program such as mkvmerge that can perfectly append two files without desync.
This is exactly why I hate doing video related works.
Meh. I say good night.

Hopefully someone might turn up a good solution.
Although so far mkvmerge seems to do a fine job. So we might just say: use mkvmerge to merge them all. Hardly a lot of work using the GUI.