[Windows] Post Processing Scripts
Re: [Windows] Post Processing Scripts
Hi Markus, im trying to run your tv convert script and am having a few problems.
My Setup, i have the TVConvert.exe, TVConvert.exe.config and TVConvert.pdb all in the scripts folder. I have created a category and in the script section called TVConvert.exe. When the post processing finishes all i get it "Ran TVConvert.exe"
Am i meant to call TVConvert a different way?
Thanks
themugger
My Setup, i have the TVConvert.exe, TVConvert.exe.config and TVConvert.pdb all in the scripts folder. I have created a category and in the script section called TVConvert.exe. When the post processing finishes all i get it "Ran TVConvert.exe"
Am i meant to call TVConvert a different way?
Thanks
themugger
Re: [Windows] Post Processing Scripts
TVMove should be used as the Post Processing script, TVConvert should be used on a schedule, since it doesn't accept arguments from SABnzbd as a post-processing script would and also deletes the "Temp" video file after it converts it.
Ultimately TVMove.exe would move the video file to the "temp" folder and later (manually, or on a schedule) TVConvert would run and convert the file to iPhone format, if possible it will tag the converted file and delete the temp file.
-Markus
Ultimately TVMove.exe would move the video file to the "temp" folder and later (manually, or on a schedule) TVConvert would run and convert the file to iPhone format, if possible it will tag the converted file and delete the temp file.
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
Im having issues getting the movies script to combine multiple avi files. I downloaded mPlayer and have it installed, i just installed it to the default location. I noticed there isnt anywhere in the config file to point at mplayer so im wondering if thats my issue. It is also not creating any logs in the folder i specified. The only thing i can find is this from sabnzbd
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName, String arguments)
at Movies.Program.Main(String[] args)
It moves and renames the movie correctly just does not join the 2 files.
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName, String arguments)
at Movies.Program.Main(String[] args)
It moves and renames the movie correctly just does not join the 2 files.
Re: [Windows] Post Processing Scripts
Hi Hermy,
Sorry for the delay, but I looked into this (I couldn't remember off-hand), You will need to setup your PATH variable to include the folder that contains MENCODER.exe (For reference: http://www.computerhope.com/issues/ch000549.htm).
Let me know if you have further questions.
-Markus
Sorry for the delay, but I looked into this (I couldn't remember off-hand), You will need to setup your PATH variable to include the folder that contains MENCODER.exe (For reference: http://www.computerhope.com/issues/ch000549.htm).
Let me know if you have further questions.
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
Hey Mate,
This script is exactly what I have been after, only issue is i can't get it to work :|
Using the movie script, sab is saying "Request unsuccessful" and what is happening is the file is deleted from the directory, but the directory is left there and the file isn't moved to the movies folder! Any ideas?
my config
This script is exactly what I have been after, only issue is i can't get it to work :|
Using the movie script, sab is saying "Request unsuccessful" and what is happening is the file is deleted from the directory, but the directory is left there and the file isn't moved to the movies folder! Any ideas?
my config
Code: Select all
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="logDir" value="C:\Program Files\SABnzbd\Scripts\Logs"/>
<add key="movieDir" value="G:\Movies SD"/>
<add key="hdMovieDir" value="G:\Movies HD"/>
<add key="ipodMovieDir" value="G:\Movies SD"/>
<!--Delete Movie Folder?-->
<add key ="deleteFolder" value="true"/>
<!--Use Folder Name as Movie Name?-->
<add key="useFolderName" value="true"/>
<!-- Update XBMC Library?-->
<add key ="updateXbmc" value="false"/>
<!-- XBMC Path to Movies-->
<add key ="xbmcMoviePath" value="G:\Movies SD"/>
<!-- XBMC Path to HD Movies-->
<add key ="xbmcHdMoviePath" value="G:\Movies HD"/>
<!-- XBMC Hostname/IP Address-->
<add key ="xbmcInfo" value="localhost:8080"/>
<!-- XBMC HTTP Username-->
<add key ="xbmcUsername" value="xbmc"/>
<!-- XBMC HTTP Password-->
<add key ="xbmcPassword" value="xbmc"/>
</appSettings>
</configuration>
Re: [Windows] Post Processing Scripts
Odd, I'll see what I can do to help you out.
What's shown in the log file (for Movies.exe)?
Where is the folder where movies go by default before they should be moved to the SD/HD movie directories?
I have an idea what it could be, but I'm not 100% sure without some more info.
-Markus
What's shown in the log file (for Movies.exe)?
Where is the folder where movies go by default before they should be moved to the SD/HD movie directories?
I have an idea what it could be, but I'm not 100% sure without some more info.
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
There is no log file, the folder exists but it is empty.
The movies original come from I:\Downloads\Complete\Movies
Is it worth moving the downloads folder to the same drive?
The movies original come from I:\Downloads\Complete\Movies
Is it worth moving the downloads folder to the same drive?
Re: [Windows] Post Processing Scripts
Hmm, well that is an issue that the log file is MIA.... I was thinking that the move would fail across the volumes, but that doesn't appear to be the case (according to M$'s documentation)... I took a peak at the code... I'm not logging anything anymore... so thats the problem with the log file.
Still odd that it just doesn't move the file (or delete the folder), the "request unsuccessful" bit is SAB having issues reading the output from the script...or from its log of teh output, not sure why, but I was getting it before (using a dev branch now and I'm not having this issue).
Are these single CD movies? or multi-cd? (AVI) are you having this issues with other formats as well? Wondering if it is something with 2-cd movies and mencoder possibly.
I'll try to work on the logging when I head home today... instead of taking a nap
-Markus
Still odd that it just doesn't move the file (or delete the folder), the "request unsuccessful" bit is SAB having issues reading the output from the script...or from its log of teh output, not sure why, but I was getting it before (using a dev branch now and I'm not having this issue).
Are these single CD movies? or multi-cd? (AVI) are you having this issues with other formats as well? Wondering if it is something with 2-cd movies and mencoder possibly.
I'll try to work on the logging when I head home today... instead of taking a nap
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
These are single file .avi movies, both were small 30mb, as I didn't want to download a whole movie to test it out.
I've tested this with 2 downloads.
Is there any way to test this out on an existing folder/file, without downloading something new?
I've tested this with 2 downloads.
Is there any way to test this out on an existing folder/file, without downloading something new?
Re: [Windows] Post Processing Scripts
Ahhh, that's it... I treat small files (under 100MB I think) as samples. So it would be deleted and no more action taken... The folder was left because it didn't know what to process.
You can run it via command line, and pass in "Path to Movie" 2 "Movie Name" the 2 is just a filler for the 2nd variable as it is not used by this script.
I should have a new version uploaded today with logging as well and some changes (using XBMC's Event Server instead of the http Server), IMDB tags on the filename and some other changes.
-Markus
You can run it via command line, and pass in "Path to Movie" 2 "Movie Name" the 2 is just a filler for the 2nd variable as it is not used by this script.
I should have a new version uploaded today with logging as well and some changes (using XBMC's Event Server instead of the http Server), IMDB tags on the filename and some other changes.
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
Did a test on a larger file that i downloaded, was around 200MB
Movies Crashed, got the windows "Movies has stopped working"
with this attached
sabnzb returned this
Movies Crashed, got the windows "Movies has stopped working"
with this attached
Code: Select all
Description:
Stopped working
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: movies.exe
Problem Signature 02: 0.2.3.0
Problem Signature 03: 4b9efb89
Problem Signature 04: mscorlib
Problem Signature 05: 2.0.0.0
Problem Signature 06: 4a275af7
Problem Signature 07: 344b
Problem Signature 08: f0
Problem Signature 09: System.IO.DirectoryNotFound
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 3081
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Code: Select all
The Colbert Report 2010 08 18 Thomas French HDTV XviD FQM
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at Movies.Program.Main(String[] args)
Last edited by tzortst on August 19th, 2010, 4:51 am, edited 1 time in total.
Re: [Windows] Post Processing Scripts
Also tried to run in manually, not sure if i did it right but movie crashed again and returned this in cmd
Code: Select all
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part
of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at Movies.Program.Main(String[] args)
Re: [Windows] Post Processing Scripts
Do all the paths in your config file already exist? It looks like it can't find part of the destination path which appears to be "G:\Movies SD".
-Markus
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: [Windows] Post Processing Scripts
Ok double checked the folders and I think you might be right, I moved one of the folders so wasn't in the correct location (feel a bit stupid there), moved it back, ran the script manually and it worked perfectlymarkus101 wrote: Do all the paths in your config file already exist? It looks like it can't find part of the destination path which appears to be "G:\Movies SD".
-Markus
Will que up a download to be 100% sure
Will make a donation on http://code.google.com/p/sabscripts/ this script will make my life so much easer! Thanks so much for the help
Last edited by tzortst on August 19th, 2010, 5:35 pm, edited 1 time in total.
Re: [Windows] Post Processing Scripts
No problem, glad I could help. Hopefully its smooth sailing from now on.
-Markus
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com