The original script is here: http://forums.sabnzbd.org/index.php?topic=61.0
Here s my update version, it could be better edited (removing the if category == Movie), but it works and works well, so it stays for now at least.
Here is my version of the script: http://pastebin.com/f4d8b33ee
Its using mencoder, which comes with mplayer. I'm using a very small version of Slackware 12.1 that has been designed specifically for NAS Storage, it goes by the name of unRAID, available at http://www.lime-technology.com. It basically does RAID 5, but you can add disks, increase disk sizes 1 by 1, with the only restriction being that the parity drive has to be the largest drive in the system (other data drives can be the same size, just not bigger) - Okay enough on unRAID.
Specially for unRAID I needed the following packages (many are for X, which isn't installed in unRAID):
ffmpeg-20081102-i486-1gds.tgz
mplayer-1.0rc2try4-i486-1kjz.tgz
twolame-0.3.12-i486-1kjz.tgz
faac-1.26-i486-1gds.tgz
x264-20081031-i486-1gds.tgz
xvidcore-1.1.3-i486-3gds.tgz
lame-3.98.2-i486-1kjz.tgz
libpng-1.2.27-i486-1.tgz
libjpeg-6b-i486-5.tgz
libungif-4.1.4-i486-4.tgz
alsa-lib-1.0.15-i486-1.tgz
cdparanoia-III10pre0-i486-1.tgz
freetype-2.3.5-i486-1.tgz
fontconfig-2.4.2-i486-2.tgz
lzo-2.02-i486-1.tgz
libmad-0.15.1b-i486-3.tgz
speex-1.2rc1-i486-2kjz.tgz
libtheora-1.0beta2-i486-1.tgz
libogg-1.1.3-i486-2.tgz
libmpcdec-1.2.6-i486-2gds.tgz
faad2-2.6.1-i486-2gds.tgz
a52dec-0.7.4-i486-2gds.tgz
libvorbis-1.2.0-i486-1.tgz
libdv-1.0.0-i486-2gds.tgz
libX11-1.1.1-i486-4.tgz
libxcb-1.0-i486-2.tgz
libXau-1.0.3-i486-1.tgz
libXdmcp-1.0.2-i486-1.tgz
ibdc1394-2.0.2-i486-1gds.tgz
libXext-1.0.4-i486-1.tgz
libraw1394-2.0.0-i486-1gds.tgz
The first two are ffmpeg and mplayer (which has mencoder), followed by some codecs and then a bunch of other required files, and a few more codecs, full blown systems will likely have most of the required files, so it may be less installing for you.
To Install packages use the following, repeat for each package:
installpkg ffmpeg-20081102-i486-1gds.tgz
installpkg mplayer-1.0rc2try4-i486-1kjz.tgz
I also needed to symlink some files as some of the packages I downloaded had new versions and complained I was missing them, this is what I had to symlink:
Code: Select all
ln -s /usr/lib/libx264.so.65 /usr/lib/libx264.so.59
ln -s /usr/lib/libx264.so.65 /usr/lib/libx264.so.54
ln -s /usr/lib/libavformat.so.52 /usr/lib/libavformat.so.51
ln -s /usr/lib/libavcodec.so.52 /usr/lib/libavcodec.so.51
If you just want to do one off combining with mencoder, this is all you need is the following line:
Code: Select all
mencoder -forceidx -ovc copy -oac copy -o /mnt/user/completed/output.avi /mnt/user/completed/input1.avi /mnt/user/completed/input2.avi
My next plan was to get a script working for remuxing mkv files into mp4 files playable on the 360...so far It hasn't worked on unRAID, something with mplayer is fishy, it runs with no arguments without a complaint, but when I try running it to tell which source is video or audio it bombs and outputs all the lib files in /usr/lib - maybe one day I'll figure that out.
Once thing I notice is that the 360 reports the length of the movies wrong when I combine the AVI's, not a big deal for me, but I guess it could be a show stopper for some.
Enjoy you single file AVI's for those tough to find 1-CD releases.
-Markus
EDIT: Added how to install packages