Log in

View Full Version : Command line tool for joining AVI's ?


Adz
22nd March 2006, 13:53
Hi all, I encoded some of my DVD's to AVI's and split them into 2x 700MB, using xvid and vbr mp3's.

I've needed to join a couple of them and using virtualdub I get the common error regarding different sampling rates between the two files, which I know is correct and accept due to using VBR mp3's.

To get round this I have used ffmpeg to produce 2x AVI's with 160kbps mp3 audio. I then have a (nasty) script to fire up virtualdub and join them.

I have loads of CLI apps (I love making bat files and automating this stuff), but not one for simply joining two AVI files.

I am using Windows BTW so whatever app it is needs to have a windows build :-)

I did read somewhere (cant remember) about "piping" two videos into ffmpeg ? is this possible with the windows builds and if so, how ? :)

Can anyone point me in the right direction? I have searched exhaustively!

THANKS in advance :)

Adam

Daodan
22nd March 2006, 14:14
Muxing them together in mkv is a solution. Another that you can try is Avimux GUI (it should work, never tried it though).

Adz
22nd March 2006, 16:31
Hi daodan, I do need to keep the files as AVI's :)

is avimux gui not a gui app (as the name suggests?) I have run it and while I cannot work the GUI side of it out to join AVI's, it doesnt (seem to) support command line anyhow?

Adz
22nd March 2006, 18:16
anyone know if there are any windows builds of transcode for linux? it includes a tool called avimerge which appears to do the job!

http://www.transcoding.org/cgi-bin/transcode

Adz
24th March 2006, 01:29
anyone ? :)

Pookie
24th March 2006, 10:54
Would copy /b File1.avi+File2.avi File3.avi do it?

Adz
24th March 2006, 11:23
well, it would certainly join the files together, but not correctly :)

but it's given me an idea, I could do that, then use ffmpeg to vopy video/audio stream to a fresh new AVI. It'll probably error half way through but it usually just tells you there was an error and carries on anyhow.

cheers

XmSurfer
24th March 2006, 12:46
mencoder, perhaps?

Adz
24th March 2006, 13:27
i did look at mencoder, couldnt find anything relating to joining/merging though :S

XmSurfer
24th March 2006, 14:19
mencoder -oac copy -ovc copy -mc 0 -noskip file1.avi file2.avi -o joinedfile.avi

Of course you can join more than 2 files.