CustomCommand guidance

Dec 7, 2012 at 10:01 PM
Edited Dec 7, 2012 at 10:02 PM

I'm trying to find a solution to an issue I have with the Fast MP4 conversion (I'm assuming all of them).  

The Title or cnam of the MP4 gets added as %showname%, ie: "Person of Interest" instead of %episodename% ie: "The High Road"

 

So in iTunes and my iPhone the shows show as "Person of Interest".  Then when you click on it to see the list of shows on your phone they are all listed as "Person of Interest"  Season 1 Episode 4.    Where on the 2nd screen it should show  "The High Road" Season 1 Episode 4.

So when you click on the Show you get a list of the episodes instead of a list that contains only the Show name.  I hope that makes sense.

I tried doing this on the PROFILE.CONF file
CustomCommandPath=G:\Program Files\MCEBuddy2x\atomicparsley\AtomicParsley.exe
Custom
CommandParameters=%convertedfile% --overWrite --title %episodename% 

But the log looks like this:
INFORMATION> 2012-12-07T16:37:45 MCEBuddy.Engine.ConversionJob --> Running Custom Commands
WARNING> 2012-12-07T16:37:45 MCEBuddy.Transcode.CustomCommand --> Invalid custom command parameters CommandPath = g:\program files\mcebuddy2x\atomicparsley\atomicparsley.exe
CommandParameters = %convertedfile% --overWrite --title %episodename% CommandHangPeriod = -1
2012-12-07T16:37:45 MCEBuddy.Engine.ConversionJob --> Finished custom command, file size [KB] 542,203.00 

What am I doing wrong here?   I've tried putting the CustomCommandPath in quotes, but get the same log results.   I would have expected to see the %episodename% changed to the correct working as well ("The High Road"

But it looks like it doesn't like any of the things I added.  I searched for some examples on the forum, but found nothing.

Thank you for your help

Coordinator
Dec 7, 2012 at 11:54 PM

Please read the documentation carefully, you're missing 2 critical parameters:

 

e.g.:

CustomCommandPath=AtomicParsley\AtomicParsley.exe
CustomCommandParameters=%convertedfile% --overWrite --stik "TV Show" --TVShowName "TV Recordings"
CustomCommandHangPeriod=0
CustomCommandCritical=false

Dec 8, 2012 at 12:58 AM

I'll add those 2 lines and give it a try.   I thought they were optional....so I was starting with the basic first to make sure it was working :)  Then adding more as it was successful.        I Love MCEBuddy.  Please keep the releases coming!

Dec 8, 2012 at 1:37 AM

THANK YOU.  That made it all work perfectly....  Loving this more and more each time.  Can't imagine what features you are going to add next.  I don't know what I would want.  But I know I'll love it!

Jan 23, 2013 at 4:35 PM

What file do I need to modify with this custom command??

Jan 23, 2013 at 8:14 PM

you need to add those 4 CustomCommand lines to any profile you're using in profiles.conf file 

Jan 23, 2013 at 10:15 PM

Guess I'm doing something wrong.  here is what i added to the profiles.conf file for high quality .mp4 conversion.

CustomCommandPath = C:\Atomic\AtomicParsley-win32-0.9.0\AtomicParsley.exe
CustomCommandParameters = %convertedfile%  --overWrite --stik "TV Show" --TVShowName "TV Recordings"
CustomCommandHangPeriod=0
CustomCommandCritical=false

Here are the results fromt the log.  Everything comes out ok except the Name of the TV episode shows up in the Episode ID instead of Name. 

2013-01-23T16:45:00 MCEBuddy.Transcode.CustomCommand --> About to run custom command with parameters CommandPath = c:\atomic\atomicparsley-win32-0.9.0\atomicparsley.exe CommandParameters = "C:\Church\Temp\working0\Flashpoint_KTPX_2013_01_23_12_55_00.mp4"  --overWrite --stik "TV Show" --TVShowName "TV Recordings" CommandHangPeriod = 0
2013-01-23T16:45:00 MCEBuddy.AppWrapper.Base --> Launching process c:\atomic\atomicparsley-win32-0.9.0\atomicparsley.exe
2013-01-23T16:45:00 MCEBuddy.AppWrapper.Base --> Process arguments "C:\Church\Temp\working0\Flashpoint_KTPX_2013_01_23_12_55_00.mp4"  --overWrite --stik "TV Show" --TVShowName "TV Recordings"
--> Access is denied
WARNING> 2013-01-23T16:45:00 MCEBuddy.Transcode.CustomCommand --> Custom command hung, process was terminated
2013-01-23T16:45:00 MCEBuddy.Engine.ConversionJob --> Finished custom command, file size [KB] 761,237.00
INFORMATION> 2013-01-23T16:45:00 MCEBuddy.Engine.ConversionJob --> Renaming file using show information
INFORMATION> 2013-01-23T16:45:00 MCEBuddy.Engine.ConversionJob --> Renaming file from show information
--> Rename file to C:\Church\Temp\working0\Flashpoint-S02E09-The Perfect Family-2013-01-23.mp4
INFORMATION> 2013-01-23T16:45:00 MCEBuddy.Engine.ConversionJob --> Moving converted file to destination
INFORMATION> 2013-01-23T16:45:00 MCEBuddy.Engine.ConversionJob --> Moving converted file C:\Church\Temp\working0\Flashpoint-S02E09-The Perfect Family-2013-01-23.mp4 to F:\My Music\iTunes\iTunes Media\Automatically Add to iTunes\Flashpoint\Flashpoint-S02E09-The Perfect Family-2013-01-23.mp4
INFORMATION> 2013-01-23T16:45:01 MCEBuddy.Engine.ConversionJob --> Success - All done!
INFORMATION> 2013-01-23T16:45:01 MCEBuddy.Engine.ConversionJob -->

Coordinator
Jan 23, 2013 at 11:50 PM

--> Access is denied

 

Why don't you try to use the AtomicParsley that comes with MCEBuddy:

CustomCommandPath = AtomicParsley\AtomicParsley.exe
CustomCommandParameters = %convertedfile%  --overWrite --stik "TV Show" --TVShowName "TV Recordings"
CustomCommandHangPeriod=0
CustomCommandCritical=false

 

If that doesn't work, try to remove the --overWrite, it doesn't work sometimes.

Marked as answer by rboy1 on 1/21/2014 at 8:10 PM
Coordinator
Jan 24, 2013 at 3:36 PM

FYI you're using an older version of atomic parsley than what MCEBuddy uses

Jan 24, 2013 at 4:45 PM

I pointed the Command path to the AtomicParsley in the MCE folder.  Still no go.  So i tweaked it a little.  Here is what i used.

CustomCommandPath = C:\Program Files (x86)\MCEBuddy2x\AtomicParsley\AtomicParsley.exe
CustomCommandParameters = %convertedfile%  --overWrite --stik "TV Show"  --title %episodename%  --TVShowName %showname%  --TVEpisode S%season%E%episode%
CustomCommandHangPeriod=0
CustomCommandCritical=false

the custom command list that is in the documentation is great.   Where can i get the tags for itunes  i.e. --TVShowName or --stik?  I would like to get it to fill out the some of the sort by fields.

Marked as answer by rboy1 on 1/21/2014 at 8:10 PM
Coordinator
Jan 24, 2013 at 5:30 PM

run atomicparsley --longhelp from the command prompt

Jan 24, 2013 at 6:13 PM

thank you sir.  Great product.  Donation headed your way. MCE coupled with AppleTv makes this a necessity. :))

 

Apr 14, 2013 at 11:46 AM
rnitzel,

Could you tell me what your final AtomicParsely Parameters were? is it the ones you listed on your last post on Jan 25 at 2:45 AM?

Incidentally I am also using the following AtmoicParsely Parameter (--cnID _%Recordyear%%recordmonth%%recordday%%recordhour%%recordminute%) This tags the video with a unique ID (merely the time and date of the recording, which is unique to each of my show (I think I might use second as well?).

I then get MCEBuddy to do 2 conversions on each video, one for SD and one for HD using the AP Parameter --hdvideo. Like this when I add these 2 videos to iTunes, the 2 files are both added, but only listed inside of iTunes once. When it comes time to sync your devices, HD will go to the HD capable device and SD to the smaller screen (ie/ Ipod Touch and iPhone 3's)

Thought someone might find this useful

Regards,

Alby
Mar 7 at 5:32 PM
this is what I was using until I upgraded to the 64bit.

CustomCommandPath = C:\Program Files (x86)\MCEBuddy2x\AtomicParsley\AtomicParsley.exe
CustomCommandParameters = %convertedfile% --overWrite --stik "TV Show" --title %episodename% --TVShowName %showname% --TVEpisode S%season%E%episode%
CustomCommandHangPeriod=0
CustomCommandCritical=false


Now with 64 bit I changed to the Program Files directory but I don't get the tv episode name to show up in iTunes?

CustomCommandPath = C:\Program Files\MCEBuddy2x\AtomicParsley\AtomicParsley.exe
CustomCommandParameters = %convertedfile% --overWrite --stik "TV Show" --title %episodename% --TVShowName %showname% --TVEpisode S%season%E%episode%
CustomCommandHangPeriod=0
CustomCommandCritical=false

log says this.
2014-03-07T12:35:42 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Stream #0:2: Video: mjpeg, yuvj420p, 758x140 [SAR 120:120 DAR 379:70], 90k tbr, 90k tbn, 90k tbc
2014-03-07T12:35:42 MCEBuddy.AppWrapper.FFmpegMediaInfo --> At least one output file must be specified
INFORMATION> 2014-03-07T12:35:44 MCEBuddy.Engine.ConversionJob --> Renaming file using show information
--> Rename file to C:\Program Files\MCEBuddy2x\working0\How I Met Your Mother-S09E19-Vesuvius.mp4
INFORMATION> 2014-03-07T12:35:44 MCEBuddy.Engine.ConversionJob --> Running custom commands
2014-03-07T12:35:44 MCEBuddy.Transcode.CustomCommand --> Custom command parameters read ->
CustomCommandPath = c:\program files\mcebuddy2x\atomicparsley\atomicparsley.exe
CustomCommandParameters = %convertedfile% --overWrite --stik "TV Show" --title %episodename% --TVShowName %showname% --TVEpisode S%season%E%episode%
CustomCommandHangPeriod = 0
CustomCommandCritical = False
2014-03-07T12:35:44 MCEBuddy.Transcode.CustomCommand --> Read custom command parameters
CustomCommandPath = c:\program files\mcebuddy2x\atomicparsley\atomicparsley.exe
CustomCommandParameters = %convertedfile% --overWrite --stik "TV Show" --title %episodename% --TVShowName %showname% --TVEpisode S%season%E%episode%
CustomCommandHangPeriod = 0
CustomCommandCritical = False
2014-03-07T12:35:44 MCEBuddy.Transcode.CustomCommand --> About to run custom command with parameters
CustomCommandPath = c:\program files\mcebuddy2x\atomicparsley\atomicparsley.exe
CustomCommandParameters = C:\Program Files\MCEBuddy2x\working0\How I Met Your Mother-S09E19-Vesuvius.mp4 --overWrite --stik "TV Show" --title Vesuvius --TVShowName How I Met Your Mother --TVEpisode S9E19
CustomCommandHangPeriod = 0
2014-03-07T12:35:44 MCEBuddy.AppWrapper.Base --> Launching process c:\program files\mcebuddy2x\atomicparsley\atomicparsley.exe
2014-03-07T12:35:44 MCEBuddy.AppWrapper.Base --> Process arguments C:\Program Files\MCEBuddy2x\working0\How I Met Your Mother-S09E19-Vesuvius.mp4 --overWrite --stik "TV Show" --title Vesuvius --TVShowName How I Met Your Mother --TVEpisode S9E19
2014-03-07T12:35:44 MCEBuddy.AppWrapper.Base --> AP error trying to fopen C:\Program: No such file or directory
2014-03-07T12:35:44 MCEBuddy.AppWrapper.Base --> AtomicParsley error: can't open C:\Program for reading: No such file or directory
2014-03-07T12:35:47 MCEBuddy.Engine.ConversionJob --> Finished custom command, file size [KB] 292,769.00
INFORMATION> 2014-03-07T12:35:47 MCEBuddy.Engine.ConversionJob --> Moving converted file to destination
INFORMATION> 2014-03-07T12:35:47 MCEBuddy.Engine.ConversionJob --> Moving converted file C:\Program Files\MCEBuddy2x\working0\How I Met Your Mother-S09E19-Vesuvius.mp4 to C:\Users\Public\Videos\Archive\How I Met Your Mother\How I Met Your Mother-S09E19-Vesuvius.mp4
INFORMATION> 2014-03-07T12:35:47 MCEBuddy.Engine.ConversionJob --> Adding file to the iTunes library
--> About to add C:\Users\Public\Videos\Archive\How I Met Your Mother\How I Met Your Mother-S09E19-Vesuvius.mp4 to the iTunes library
Coordinator
Mar 7 at 5:41 PM
Try enclosing the custom command path parameters in double quotes.

Mar 7 at 6:47 PM
ok so just the parameter itself? "%episodename%" Like that?

Whats up with this line? 2014-03-07T12:35:44 MCEBuddy.AppWrapper.Base --> AP error trying to fopen C:\Program: No such file or directory. Why can't it find c:\program files..........
Coordinator
Mar 7 at 9:06 PM
That path line where you specify the executable. Enclose the whole path in double quotes not the actual parameters

Mar 7 at 10:13 PM
Ok I added this.....


CustomCommandPath = ""C:\Program Files\MCEBuddy2x\AtomicParsley\AtomicParsley.exe??

I'll let you know how it works.
Mar 8 at 12:50 PM
Finally got it. Here is what I used....

CustomCommandPath = C:\Program Files\MCEBuddy2x\AtomicParsley\AtomicParsley.exe
CustomCommandParameters = ""%convertedfile%" --overWrite --stik "TV Show" --title "%episodename%" --TVShowName "%showname%" --TVEpisode "%season%%episode%" --comment "Original air date:%airmonth% %airday% %airyear%" "S%season%E%episode%""
CustomCommandHangPeriod=0
CustomCommandCritical=false
Marked as answer by rboy1 on 3/8/2014 at 6:13 AM