Easy to Use Script to Combine 2 Avi's

Come up with a useful post-processing script? Share it here!
Post Reply
drdeath691
Newbie
Newbie
Posts: 1
Joined: May 29th, 2009, 11:12 am

Easy to Use Script to Combine 2 Avi's

Post by drdeath691 »

I'm new to Sabnzbd and I have little to no scripting experience. I am looking for an easy way yo combine 2 CD movies into 1 under windows OS.


Thanks in advance.
bnevets27
Release Testers
Release Testers
Posts: 57
Joined: February 17th, 2009, 5:03 pm

Re: Easy to Use Script to Combine 2 Avi's

Post by bnevets27 »

I have also been looking for a script that would do this. I haven't been able to find one unfortunately. If someone would like to create one this might help: http://virtualdubmod.sourceforge.net/Scripts.html Just need to do a direct stream copy. Save file as, same as source but with the 1/2 or a/b removed. Then delete the two source files.

Does a script maybe already exist for this?
ckc
Release Testers
Release Testers
Posts: 2
Joined: October 14th, 2009, 6:42 am

Re: Easy to Use Script to Combine 2 Avi's

Post by ckc »

here is a script that I found on this forum (thanks and credit goes to the original poster). I did modify it a bit to normalize the sound on the avi and set up paths:

Code: Select all

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
if exist *part1.avi ren *part1.avi file1.avi
if exist *part2.avi ren *part2.avi file2.avi
move file1.avi C:\TEMP
move file2.avi C:\TEMP
cd /d C:\MPlayer\
mencoder -forceidx -ovc copy -af volnorm=1 -oac mp3lame -lameopts cbr:br=256 -o C:\TEMP\joined-movie.avi C:\TEMP\file1.avi C:\TEMP\file2.avi
cd /d C:\TEMP
ren joined-movie.avi %3.avi
move %3.avi %1
del C:\TEMP\file1.avi
del C:\TEMP\file2.avi
exit
wellton
Newbie
Newbie
Posts: 1
Joined: January 15th, 2010, 11:23 pm

Re: Easy to Use Script to Combine 2 Avi's

Post by wellton »

Excellent post - very interesting research I will look more into this! keep it up. I found very good and informative blog and have bookmarked your site for future reference. I really appreciate your way of presenting such an excellent suggestion. I want more and i will come back here, regards
Post Reply