Run XenonMKV to convert to .mp4 for 360, then launch Sick Beard Post Proc

Come up with a useful post-processing script? Share it here!
Post Reply
OneStepAhead
Newbie
Newbie
Posts: 11
Joined: January 31st, 2010, 1:09 pm

Run XenonMKV to convert to .mp4 for 360, then launch Sick Beard Post Proc

Post by OneStepAhead »

ok, im sure this script is laughable to some of you advanced script writers, but this is what i wrote. and it works.

Here is what it does

puts itself in the proper directory
checks to see if an .mkv exists, if not it goes straight to Sick Beard for the (presumably) .avi file to be renamed and sorted
runs xenonmkv to convert the .mkv to xbox 360 compatible .mp4
if the conversion was successful, delete the original .mkv file
launch sabtosickbeard to rename and sort the files
wait 15 seconds before attempting to delete the original download dir (via ping command, im sure a better way exists)
if i dont wait 15 seconds, sometimes i would get a "directoy in use" error.

Code: Select all

cd /d %1
IF NOT EXIST *.mkv GOTO NOMKV
IF EXIST *.mkv XenonMKV.exe -inputfolder %1 -outputfolder %1
cd /d %1
IF EXIST *.mp4 del *.mkv
:NOMKV
E:\SickBeard\autoProcessTV\sabToSickBeard.exe %1
ping 1.1.1.1 -n 1 -w 15000
cd ..
rmdir %1
exit

ok, feel free to adjust it to your liking. Xenonmkv.exe needs to be in your PATH. Also, This script
assumes your sick beard install dir is E:\Sickbeard so change it to whatever it actually is.

if you improve upon it, please post below in the comments.
Last edited by OneStepAhead on May 5th, 2010, 11:16 am, edited 1 time in total.
randyharris
Full Member
Full Member
Posts: 146
Joined: January 21st, 2010, 5:36 pm

Re: Run XenonMKV to convert to .mp4 for 360, then launch Sick Beard Post Proc

Post by randyharris »

Don't downplay it if it works!

One small thing, why not have SAB set to not download Samples in the first place, and also use SAB to auto-delete the other files too.

SABnzbd | CONFIG | SWITCHES| set IGNORE SAMPLES to DO NOT DOWNLOAD.

SABnzbd | CONFIG | GENERAL | TUNING | CLEAN UP LIST | enter: *.srr * .srt *.nfo *.nzb
OneStepAhead
Newbie
Newbie
Posts: 11
Joined: January 31st, 2010, 1:09 pm

Re: Run XenonMKV to convert to .mp4 for 360, then launch Sick Beard Post Proc

Post by OneStepAhead »

randyharris wrote: Don't downplay it if it works!

One small thing, why not have SAB set to not download Samples in the first place, and also use SAB to auto-delete the other files too.

SABnzbd | CONFIG | SWITCHES| set IGNORE SAMPLES to DO NOT DOWNLOAD.

SABnzbd | CONFIG | GENERAL | TUNING | CLEAN UP LIST | enter: *.srr * .srt *.nfo *.nzb
i do have it set to ignore samples, and i have the files added to the cleanup list. i guess i wrote the script before i realized
sab had those features.
Post Reply