Join a 2CD avi movie

Come up with a useful post-processing script? Share it here!
Post Reply
adr3nal1n
Newbie
Newbie
Posts: 6
Joined: December 18th, 2008, 6:54 am

Join a 2CD avi movie

Post by adr3nal1n »

Here's another script I use to automatically join 2 cd avi movies into a single avi

You will need Mencoder (a component of Mplayer) installed for this to work. Go here to download Mplayer http://www.mplayerhq.hu/design7/dload.html


cd /d %1

:joincd
if exist *cd1*.avi ren *cd1*.avi file1.avi
if exist *cd2*.avi ren *cd2*.avi file2.avi
if exist *a.avi ren *a.avi file1.avi
if exist *b.avi ren *b.avi file2.avi
if exist *1-*.avi ren *1-*.avi file1.avi
if exist *2-*.avi ren *2-*.avi file2.avi
move file1.avi d:\
move file2.avi d:\
cd /d c:\Program Files\MPlayer-1.0rc2\
mencoder -forceidx -ovc copy -oac copy -o D:\joined-movie.avi d:\file1.avi d:\file2.avi
cd /d d:\
ren joined-movie.avi %3.avi
move %3.avi d:\!completed
del d:\file1.avi
del d:\file2.avi
cd /d d:\!completed
rd /s /q %1
exit


Just tweak the folders etc to suit your needs.

Hope you find this useful.
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Re: Join a 2CD avi movie

Post by qwerty967 »

Is there a way to join 2 vobsubs?
adr3nal1n
Newbie
Newbie
Posts: 6
Joined: December 18th, 2008, 6:54 am

Re: Join a 2CD avi movie

Post by adr3nal1n »

To be honest I've never tried joining subs from 2CD rips as I stream all my movies from the pc to the xbox 360 and the 360 mdeia player/codes don't support subs anyway. (Not like good old XBMC does)

I'm sure there must be a command line tool out there that could be used in a script to achieve joining of subs. I just don't know of one within specifically searching.
adr3nal1n
Newbie
Newbie
Posts: 6
Joined: December 18th, 2008, 6:54 am

Re: Join a 2CD avi movie

Post by adr3nal1n »

Apologies for the keyboard dyslexia encountered in my last reply...

This looks like the tool to use for joining subtitles http://www.videohelp.com/tools/Subtitle_Workshop

It says it supports the command line too so I suggest messing about with the command line options first to get the correct syntax figured out and to see how well it handles environment variables then enter that into your post processing script.

If I get some spare time I'll have a go myself and post some results if I get it working well from the command line.
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Re: Join a 2CD avi movie

Post by qwerty967 »

It says in the description that sub/idx is not supported.  :( The software wouldn't do me good anyway because I use a Mac.  :D

Sidenote: Perian finally fixed #190. Yay!
tbird2340
Newbie
Newbie
Posts: 20
Joined: December 19th, 2008, 3:10 pm

Re: Join a 2CD avi movie

Post by tbird2340 »

This is exactly what I been lookin for!

Does this consistently work or are there times when the audio/video can get out of sync when combining? That's the one thing I'm worried about..
oncl0ud9
Newbie
Newbie
Posts: 12
Joined: December 30th, 2008, 3:54 pm

Re: Join a 2CD avi movie

Post by oncl0ud9 »

how do I add this script to sabnzbd? I am a newb sorry.
oncl0ud9
Newbie
Newbie
Posts: 12
Joined: December 30th, 2008, 3:54 pm

Re: Join a 2CD avi movie

Post by oncl0ud9 »

ok got it working, but it seems every movie that I try to join becomes out of sync.
Post Reply