Log in

View Full Version : Joining .avi's (XViD)


xvalentinex
21st November 2005, 07:32
Hello,

I am using a simple mencoder script to convert a couple .avi files to DVD.

The problem is that they are split into 2 files. As simple as it seems I have no idea how to merge them (does avidemux have a direct stream copy like virtualdub?). Even scoured google, but those darn spiders just point me to freeware sites for windows programs.

Any help or general point in the right direction would be much appreciated.

Thanks,
-xvalentinex

mean
21st November 2005, 21:49
(does avidemux have a direct stream copy like virtualdub?)


yes it does

unskinnyboy
22nd November 2005, 07:52
Infact, AVI-Mux GUI *only* has direct stream copy. It is just a muxing/joining/splitting tool - no compression can be applied with it, even if you want to. :p

john.smith
22nd November 2005, 21:44
Try mpgtx it contains the scripts:
mpgcat, mpgdemux, mpginfo, mpgjoin, mpgsplit

you can download mpgtx at
http://mpgtx.sourceforge.net

unskinnyboy
22nd November 2005, 22:17
Try mpgtx it contains the scripts:
mpgcat, mpgdemux, mpginfo, mpgjoin, mpgsplit

you can download mpgtx at
http://mpgtx.sourceforge.net
You sure mpgtx supports XviD/avi files? Because this is what I see on the homepage:

What's inside

>> mpgtx can currently split and join MPEG 1 video files and most MPEG audio files.
>> mpgtx can fetch detailed informations from MPEG 1 and MPEG 2.
>> mpgtx can demultiplex MPEG 1 and MPEG 2 files (System layer, Program layer and Transport Layer).
>> mpgtx can add, remove and edit ID3 tags from mp3 files and rename mp3 files according to their ID3 tags.

<< DivX ; ) is not yet supported, neither is MPEG 4
<< splitting and joining of MPEG 2 video files is experimental. (read "will work only in your wildest dreams")
<< mpgtx can not multiplex audio and video into a system stream.

john.smith
23rd November 2005, 11:12
You sure mpgtx supports XviD/avi files? Because this is what I see on the homepage:

ups, no it doesnt. sorry. i used mpgtx to join other mpgs. e.g. mp3 and mpeg2...
so.
why you have to join the avis? you can just transcode the avis into mpg vob streams. dvdauthor can handle multiple input files.
did you try transcode? i think transcode can do this.

Hellworm
23rd November 2005, 15:24
Thats what I found on google:


originally this was found on:"http://newsarchiv.tugraz.at/browse/tu-graz.betriebssysteme.linux/msg04992.html"
Stephan Hurler wrote:


Ich suche nach einer Möglichkeit, mit mencoder mehrere Videodateien zu einer zu
"verschmelzen", auf die Art:

mencoder datei1.mpg datei2.mpg datei3.mpg -o großedatei.mpg <optionen>


Die MPlayer-FAQ beantwortet deine Frage:



Q: Wie kann ich zwei Videodateien aneinanderhängen?
A: Das wurde schon unglaublich oft auf der MPlayer-Users-Mailingliste diskutiert. Durchsuche das Archiv. Dort findest du vollständige Antworten. Das Aneinanderhängen ist ein sehr komplexes Thema, und dein (Mis-)Erfolg hängt sehr von der Art deiner aneinanderzuhängenden Dateien ab. MPEGs lassen sich noch relativ einfach aneinanderhängen. Für AVIs gibt es zwei Tools, die das eventuell hinkriegen können: avidemux und avimerge, das Teil von transcode ist. Wenn du zwei Dateien hast, deren Auflösung und Codec identisch sind, dann kannst du eventuell auch MEncoder dafür benutzen:
cat file1 file2 > file3
mencoder -ovc copy -oac copy -o out.avi -forceidx file3.avi


Grüße
moali

If the files are same format, perhaps this could help.

echo
26th November 2005, 02:30
You could always use mkvmerge (gui) to join the files and then send the matroska file to mencoder for transcoding to mpg.

john.smith
28th November 2005, 14:56
or you can first transcode to mpg and then send the mpg files to mpgtx

nickrout
28th November 2005, 21:01
Take a look at any2vob http://mightylegends.zapto.org/dvd/any2vob/

It is a shell script to take any video file and make a dvd compliant vob file. The web site isn't up to much (just a directory listing) but the script is well documented.

It will even make a 5.1 ac3 soundtrack from your stereo source.

xvalentinex
19th December 2005, 10:11
I found that avimerge works great, it's part of the transcode package.

Just do `avimerge -i clip1.avi clip2.avi -o fullclips.avi`