|
| Author |
Message |
|
MikeyJ
|
Post subject: Post Processing Posted: January 7th, 2010, 11:16 pm |
|
 |
| Xvid Movie |
Joined: May 2nd, 2009, 11:38 am Posts: 33
|
|
Hi Pete,
Thanks for the addition of this feature. I'm currently experiencing an error when testing it out:
MCM: Post-processing running: "D:\StarkCovers.8.2.2009\Stark - Movies.bat"
M:\Movies\Steve Vai Where There Wild Things Are>"D:\StarkCovers.8.2.2009\StarkCovers.exe" "M:\Movies" -allcorners diamond\diamond Unhandled Exception: System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) at System.Console.Clear() at StarkCovers.Program.StarkConsole(String[] args) at StarkCovers.Program.Main(String[] args) MCM: Post-processing finished!
This bat file runs fine when I execute it manually or via a scheduled task.
Thx, Mike
|
|
|
|
 |
|
Pete
|
Post subject: Re: Post Processing Posted: January 8th, 2010, 9:23 am |
|
 |
| MCM Creator |
 |
Joined: May 1st, 2009, 11:12 am Posts: 2247 Location: Boise, ID, USA
|
|
You will need to update your batch file since it's being launched with the current directory being the movie folder. This has issues: Code: D:\Pete\Personal\Movies\Alien 3 (1992)>"C:\StarkCovers\StarkCovers.exe" . -allcorners diamond\diamond But this does not: Code: C:\StarkCovers>StarkCovers.exe "D:\Pete\Personal\Movies\Alien 3 (1992)" -allcorners diamond\diamond In Media Center Master, you can use the %F token for post-processing parameters to automatically identify the folder to process. So if you had StarkCovers extracted under C:\StarkCovers, you could create a batch file that looked like this: Code: @ECHO OFF C: CD\StarkCovers StarkCovers.exe %1 -allcorners diamond\diamond If you saved this batch file to something like C:\MCM_StarkCovers.bat, then you would set it up in Media Center Master like this: Program/batch file (do not use quotes): Code: C:\MCM_StarkCovers.bat Parameters/arguments (use quotes): Code: %F The %F will be turned into the movie's folder automatically when given to your batch file (with surrounding quotes). Then the batch file will take the first parameter (%1) and send it on over to StarkCovers. You need a batch file in this example because StarkCovers is very picky where it is launched from (current directory). Enjoy!
_________________ Peter Souza IV current version 1.24.24410.956 / September 1st, 2010
|
|
|
|
 |
|
MikeyJ
|
Post subject: Re: Post Processing Posted: January 9th, 2010, 1:30 am |
|
 |
| Xvid Movie |
Joined: May 2nd, 2009, 11:38 am Posts: 33
|
|
Thanks for the tips Pete! I must still be missing something tho. I rem'd the echo off in the bat to see what was happening and I get:
MCM: Post-processing running: "D:\StarkCovers.8.2.2009\mcm_stark_movies.bat" "M:\Movies\Steve Vai Where There Wild Things Are ()"
M:\Movies\Steve Vai Where There Wild Things Are ()>rem @ECHO OFF
M:\Movies\Steve Vai Where There Wild Things Are ()>D:
D:\>CD\StarkCovers.8.2.2009
D:\StarkCovers.8.2.2009>StarkCovers.exe "M:\Movies\Steve Vai Where There Wild Things Are ()" -allcorners diamond\diamond Unhandled Exception: System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) at System.Console.Clear() at StarkCovers.Program.StarkConsole(String[] args) at StarkCovers.Program.Main(String[] args) MCM: Post-processing finished!
???
|
|
|
|
 |
|
Pete
|
Post subject: Re: Post Processing Posted: January 9th, 2010, 10:51 am |
|
 |
| MCM Creator |
 |
Joined: May 1st, 2009, 11:12 am Posts: 2247 Location: Boise, ID, USA
|
Is there a bad folder.jpg in there perhaps? The post-processing is working just fine, so your issue is really with StarkCovers. Maybe Media Center Master needs to be run as an Administrator so you can run StarkCovers as Administator too. But I would really ask them. Also, make sure you have the latest version of StarkCovers. Other than checking for permissions, there's not much I do to help you troubleshoot other applications. 
_________________ Peter Souza IV current version 1.24.24410.956 / September 1st, 2010
|
|
|
|
 |
|
Pete
|
Post subject: Re: Post Processing Posted: January 12th, 2010, 9:31 am |
|
 |
| MCM Creator |
 |
Joined: May 1st, 2009, 11:12 am Posts: 2247 Location: Boise, ID, USA
|
Found out what the problem here is -- it's with StarkCovers and there is a workaround until they fix it. StarkCovers is using the console window in such a way where standard output cannot be redirected. Period. This means that to use StarkCovers as a post-processing option, you will (a) need to use it in a batch file and (b) need to use the START command to launch a new command window. Here are my settings, which are working (but will pop up a command box because StarkCovers requires a command window) -- change as necessary to suit your needs: Setup in MCM:  Batch file contents: Code: C: CD\StarkCovers start "" /WAIT /I /SEPARATE StarkCovers.exe %1 -allcorners diamond\diamond
_________________ Peter Souza IV current version 1.24.24410.956 / September 1st, 2010
|
|
|
|
 |
|
Pete
|
Post subject: Re: Post Processing Posted: January 14th, 2010, 4:19 pm |
|
 |
| MCM Creator |
 |
Joined: May 1st, 2009, 11:12 am Posts: 2247 Location: Boise, ID, USA
|
I snuck in some more StarkCovers support in a recent auto-update (1.19.1410.421 and above). My settings now look like this:  And batch file contents: Code: @ECHO OFF C: CD\StarkCovers SET stark_cover_type=Case IF NOT "%2" == "generic" SET stark_cover_type=%2
ECHO ON START "" /WAIT /I /SEPARATE StarkCovers.exe %1 -allcorners case\%stark_cover_type% The %C (codec type) will be one of avi, BD, DivX, dv, DVD, h264, HDDVD, mkv, mov, mp4, Mpeg, Qt, Wmv, or Xvid if it can be detected. If not, it will be 'generic' (note that the 'generic' type varies from one StarkCovers rendering type to another -- in the 'Case' subfolder, the generic type is called 'Case'). Enjoy!
_________________ Peter Souza IV current version 1.24.24410.956 / September 1st, 2010
|
|
|
|
 |
|
coppercarbide
|
Post subject: Re: Post Processing Posted: January 21st, 2010, 11:01 pm |
|
 |
| MCM Donator |
Joined: December 17th, 2009, 6:21 pm Posts: 21
|
|
Hey Pete. New to starkcovers, but i figured i'd give it a rip. I tried what you outlined above (the 2nd, more advanced post), and it spat an error at me:
MCM: There was an error during post-processing. The details are listed below: ----------------------------------------------------------- [EXCEPTION] System.InvalidOperationException [MESSAGE] StandardOut has not been redirected or the process hasn't started yet. [FILE] /Media Center Master/Forms/Main.cs (line 1998) [METHOD] get_StandardOutput() ----------------------------------------------------------- [METHOD] Name: get_StandardOutput() Module: System.dll Attributes: PrivateScope, Public, HideBySig, SpecialName ----------------------------------------------------------- [STACK TRACE] at System.Diagnostics.Process.get_StandardOutput() at MediaCenterMaster.frmMain.DoPostProcessing(String sFolderToFetch) in C:\Projects\z Personal (Peter)\Media Center Master\Media Center Master\Media Center Master\Forms\Main.cs (line 1998) -----------------------------------------------------------
Any ideas what I'm doing wrong?
|
|
|
|
 |
|
coppercarbide
|
Post subject: Re: Post Processing Posted: January 21st, 2010, 11:03 pm |
|
 |
| MCM Donator |
Joined: December 17th, 2009, 6:21 pm Posts: 21
|
|
Just for the sake of completeness, I tried the first method as well (without auto recognized format type), and it gave me the same error.
|
|
|
|
 |
|
Pete
|
Post subject: Re: Post Processing Posted: January 21st, 2010, 11:26 pm |
|
 |
| MCM Creator |
 |
Joined: May 1st, 2009, 11:12 am Posts: 2247 Location: Boise, ID, USA
|
|
Try running as an administrator. It might be trying to run a program without sufficient access and then failing to redirect output because the program never ran.
If that's not it, some screen shots of your batch file (from notepad), Stark Covers installation (from explorer), and post-processing settings (from MCM) would help.
_________________ Peter Souza IV current version 1.24.24410.956 / September 1st, 2010
|
|
|
|
 |
|
|