INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: Yaobing on February 23, 2018, 06:24:01 pm

Title: NEW: TV Recording Post-process Command
Post by: Yaobing on February 23, 2018, 06:24:01 pm
When you schedule a TV recording, you may add a command to be executed when recording finishes.  An example of such commands is ComSkip (assuming you record in TS format as ComSkip does not work with JTV format).  You may have other command that you may want to run after a recording is done.

There are two boxes you need to fill in.  The command itself, and the command line arguments.  The default command line argument is simply [Filename].  You should modify it according to the requirement of the command you are trying to run.
Title: Re: NEW: TV Recording Post-process Command
Post by: astromo on February 23, 2018, 08:55:01 pm
Bloody marvellous!

I reckon I'll get a default process of running ccextractor. I've found that with small kids in the house (either making swags of noise or trying to get them off to sleep) and other distractions that subtitles is a rather handy feature for TV playback.

Thanks
Title: Re: NEW: TV Recording Post-process Command
Post by: JimH on February 27, 2018, 11:01:34 am
I've changed the name of the feature.
Title: Re: NEW: TV Recording Post-process Command
Post by: hoyt on February 28, 2018, 10:52:15 am
Oooooh, so we'd be able to process a JTV file into a MP4 file post recording and then reduce it to a smaller file resolution to send to my handheld?  Fantastic!
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on February 28, 2018, 12:51:27 pm
Oooooh, so we'd be able to process a JTV file into a MP4 file post recording and then reduce it to a smaller file resolution to send to my handheld?  Fantastic!

The implementation was done with external application in mind (such as ComSkip).  I have not tested it, but you might be able to use MC24.exe /MCC .
Title: Re: NEW: TV Recording Post-process Command
Post by: Mans on March 03, 2018, 08:19:53 am
Very nice add-on to MC Yaobing  ;D

Then i can automate ComSkip from inside MC, instead of having DirMon running in parallel to MC.

Appreciated all !

Cheers !
Title: Re: NEW: TV Recording Post-process Command
Post by: tzr916 on March 03, 2018, 03:32:03 pm
...instead of having DirMon running in parallel to MC...

DirMon also deletes all the comskip leftovers after you remove/delete a tv show (if you configure it correctly). So if you don't run DirMon, won't you end up with a drive full of extra unnecessary files?
Title: Re: NEW: TV Recording Post-process Command
Post by: Hendrik on March 03, 2018, 03:35:31 pm
DirMon also deletes all the compskip leftovers after you remove/delete a tv show (if you configure it correctly). So if you don't run DirMon, won't you end up with a drive full of extra unnecessary files?

You can run whatever cleanup you want from this as well, the point is that MC triggers the processing, and you don't have to rely on monitoring the file system or anything like that.
Title: Re: NEW: TV Recording Post-process Command
Post by: tzr916 on March 03, 2018, 03:50:32 pm
The description says it triggers a program after a recording finishes.
How does it trigger a program after a recording is deleted?
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on March 03, 2018, 09:57:19 pm
In my tests I saw four files generated by ComSkip: *.edl, *.txt, *.log, *.logo.txt.

We make sure that these files are moved / deleted when you move / delete TV recordings.
Title: Re: NEW: TV Recording Post-process Command
Post by: tzr916 on March 04, 2018, 07:34:03 am
In my tests I saw four files generated by ComSkip: *.edl, *.txt, *.log, *.logo.txt.

We make sure that these files are moved / deleted when you move / delete TV recordings.

Yes, those files. On mine, logo.txt is deleted by comskip during/after comskip processing completes. I also have an xml file.

Is moving all of those extra files NEW? Because, whenever I've moved a recording it only moved the .edl file. All the others did not get moved.
Title: Re: NEW: TV Recording Post-process Command
Post by: astromo on March 04, 2018, 07:51:46 am
I can confirm that ccextractor is successfully creating .srt files.

Haven't checked that a delete takes both the vid and srt file. I'd it doesn't, I'll pipe up. Silence and it's just fine. 
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on March 04, 2018, 09:06:17 am
Is moving all of those extra files NEW? Because, whenever I've moved a recording it only moved the .edl file. All the others did not get moved.

Yes, new in version 24.
Title: Re: NEW: TV Recording Post-process Command
Post by: Mans on April 14, 2018, 06:42:45 am
Hi Yaobing and MC-team.

Just download and installed 24.0.15.
Very impressed by this version, even it's called 'early', very useable to me :-)
Big congrads to all of you !!!

Everything seems to react much more ... reactive.
Looks also more 2018'ish.
The reorganization of the GUI is spot-on !

TV seems to be better integrated, I've go also the impression DLNA discovery is faster then before.
After startup of MC the Sat>iP server is quicker found and accessible.

One question, is this new cool feature; The post-process command for TV-recordings also integrated and where to make the settings ?
I've looked under Television, Services and even tags to apply when a TV-rec is ended.
But not sure where to link Comskip to the finished TV recordings.

Thanks for your hint and/or help !

Steven.
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on April 14, 2018, 04:28:33 pm
Recording post-processing is configured in recording setup.  In standard view, select a TV program and click "Record".  On the last page of the wizard you can specify a command and the command line parameters.

Title: Re: NEW: TV Recording Post-process Command
Post by: tzr916 on April 14, 2018, 05:47:12 pm
Oh fun! Let me think, how many HUNDRED recording rules do I have...  ::)
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on April 14, 2018, 08:59:51 pm
Oh fun! Let me think, how many HUNDRED recording rules do I have...  ::)

 :(

How about this:

You modify one existing rule, adding a command, and click "Save settings as defaults", and wait for me to add the following option:

Apply default post-process command to all existing rules that have no command set.
Title: Re: NEW: TV Recording Post-process Command
Post by: tzr916 on April 15, 2018, 09:15:17 am
You are awesome, as always  :)
Title: Re: NEW: TV Recording Post-process Command
Post by: Mans on April 16, 2018, 12:28:01 pm
Recording post-processing is configured in recording setup.  In standard view, select a TV program and click "Record".  On the last page of the wizard you can specify a command and the command line parameters.

Yes Yaobing, found it and works perfect: launching ComSkip by it :-)
Thanks !

I've updated the actual Recording Rules by this, the command is there aswell now.

But I've noticed - as I'm making some additional tags to create folders by filepath - these additional tags aren't pushed to every (existing) Recording Rule.
Only to new Rules.
Also listed under the Television option: 'tags to be ....'

Any idea ?

Thanks !

Title: Re: NEW: TV Recording Post-process Command
Post by: JimH on April 16, 2018, 01:08:35 pm
Please read above.  Yaobing proposed a change.
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on April 16, 2018, 04:13:44 pm
"Tags to apply" has been like that since it was introduced.  I might as well lump Tags and Commands together in the newly proposed change.
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on April 17, 2018, 10:03:56 am
This will be in the next build:

NEW: Added a television option "If a recording rule does not include post-process tagging or command, apply respective defaults."

If you are going to use the same command for all recordings, you will not need to edit all your recording rules.  Just save a default, and turn this option on.

It is important that you note the difference between "a rule has no command set" and "a rule has an empty command".  Rules that were created in MC23 and earlier have no post-process command.  For such rules the default command will be used if the option is turned on.  A rule with an empty command is one that is created in MC24 (or created earlier but edited in MC24) with the command line string empty.  Such rules will not have any command executed.

Similarly, any rules that were created after the "Apply these tags" feature was introduced would have a tag string saved, even if such tagging properties were empty.  No defaults will be applied in such rules.  On the other hand rules that had been created before the "Apply these tags" feature was introduced, and have not been edited since, will not have any tagging property in them, and the defaults may be applied.
Title: Re: NEW: TV Recording Post-process Command
Post by: Mans on April 17, 2018, 11:50:12 am
Yes !
Perfect work and another thanks Yaobing  ;)
Title: Re: NEW: TV Recording Post-process Command
Post by: muzicman0 on April 17, 2018, 03:32:30 pm
Can I propose an extension to this feature?  Add an archive command that will be called once the file has been watched?  Right now I am using a 3rd part application (developed by Glynor) to do this, but it would be nice if it was built in.  This gives the ability to watch the show in HD, then compress to h.264 via a batch file and have it available to watch again at 10% of the original size!
Title: Re: NEW: TV Recording Post-process Command
Post by: Yaobing on April 18, 2018, 04:28:54 pm
This looks like a separate feature instead of an extension of Post-process Command, which is carried out right after a recording finishes, not when it has been watched.