NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 161 162 163 164 165 … 193 Next »
more parameters for postprocessing.bat

 
  • 0 Vote(s) - 0 Average
more parameters for postprocessing.bat
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#1
2005-02-21, 04:32 PM
hi,

now there is only one parameter for the postprocessing.bat (filename with path of the finished recording).

more parameters will be nice ;-)

like

%1       filename (like now)
%2       programmtitle
%3       description
%4       starttime (real, inclusive pre-padding)
%5       endtime (real, inclusive post-padding)
%6       channelname
%7       recordtype (once, season, season timeslot)
%8       quality
and so one, more ist better ;-)

don´t know the max count of the possible parameters, but this will be nice :-))))))



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2005-02-21, 07:22 PM
Depends on what you are trying to do, but you can easily get most of those options with a bit of coding. Use a true scripting language to help out, something that allows you to do database access. Scripting languages like REXX, Windows Host Scripting, an d PERL will easily allow you to query against the GBPVR database to get the information you are looking for, and all with just using the filename that GBPVR passes to the PostProcessing.bat file.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#3
2005-02-21, 08:00 PM
yes, that´s the other possibility .....

because i´m a lazy boy i hope this will be buildin in future release.
my last rexx-script is about 10 years ago (and runs under mvs), may be i´m learning a little bit windows host scripting....

;-))
jimh
Offline

Member

Posts: 77
Threads: 9
Joined: Jan 2005
#4
2005-02-22, 03:57 PM
[b Wrote:Quote[/b] (KingArgyle @ Feb. 21 2005,14:22)]Depends on what you are trying to do, but you can easily get most of those options with a bit of coding.  Use a true scripting language to help out, something that allows you to do database access.  Scripting languages like REXX, Windows Host Scripting, an d PERL will easily allow you to query against the GBPVR database to get the information you are looking for, and all with just using the filename that GBPVR passes to the PostProcessing.bat file.

KingArgyle:  could you kindly post a snippet of Perl source code showing how one can access this additional info via Perl?

Thanks!



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#5
2005-02-23, 12:02 AM
Here is a starting point on accessing ODBC through Perl. Should get you pointed in the right direction.

http://www.roth.net/perl/odbc/faq/
jimh
Offline

Member

Posts: 77
Threads: 9
Joined: Jan 2005
#6
2005-02-24, 12:20 AM
[b Wrote:Quote[/b] (KingArgyle @ Feb. 22 2005,19:02)]Here is a starting point on accessing ODBC through Perl.  Should get you pointed in the right direction.

http://www.roth.net/perl/odbc/faq/
Thanks for the link - I now have a PERL script running that can pull any info from any of the GBPVR .mdb files based solely on file name (although I had a h*ll of a time getting the SQL query that works with the date/time fields...).

Plus, thanks to a friend's perl compiler, I have converted the PERL script into a self-contained, stand-alone Win32 executable (.exe file) - no PERL or .dll files required.

I designed this utility so that my remote HTPC running GBPVR now sends me an email after each recording telling me everything about the completed recording: the show/episode description, actual record start/end times, video file size, even the number of commercial breaks.  I find it very handy to know with no doubt that my recordings were successful.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#7
2005-02-24, 06:43 AM
[b Wrote:Quote[/b] (jimh @ Feb. 23 2005,19:20)]I have converted the PERL script into a self-contained, stand-alone Win32 executable (.exe file) - no PERL or .dll files required.
will you give your tool to the community?

[Image: cool.gif] [Image: cool.gif] [Image: cool.gif]
jimh
Offline

Member

Posts: 77
Threads: 9
Joined: Jan 2005
#8
2005-02-26, 01:41 PM
[b Wrote:Quote[/b] (mz-system @ Feb. 24 2005,01:43)]
[b Wrote:Quote[/b] (jimh @ Feb. 23 2005,19:20)]I have converted the PERL script into a self-contained, stand-alone Win32 executable (.exe file) - no PERL or .dll files required.
will you give your tool to the community?

[Image: cool.gif]  [Image: cool.gif]  [Image: cool.gif]
I'm putting the finishing touches on my standalone utility "RecInfo" - you simply add it to your PostProcessing.bat file (eg. RecInfo.exe %1) and it will do any/all of the following:

1 .Execute any command you specify (.bat or .exe) using any of the 16 variables it provides access to, including:
Show Name (from TV Guide)
Show Description (from TV Guide)
Show Title (from TV Guide)
Recording start/end times (based on file create/last modified times)
and about 1 dozen other variables;

2. Send out a customized email that includes any/all of those variables - in the RecInfo config file (RecInfo.cfg), you type in the body of the email using $$ShowName$$ (for example) as a place-holder for the information to be inserted into the email.  Emails are sent via the SMTP server that you have access to.

3. Using the included MediaInfo.exe tool (from mediainfo.sourceforge.net), RecInfo can also report video-related statistics about the recording file (eg., playing time, perhaps bitrate, codec, etc).

Look for its release in the next fews days in the "Community Announcements" forum.

Anyone with suggestions as to how to enhance this, please post 'em here - I'll try to add them to the initial release.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#9
2005-02-26, 11:57 PM
[b Wrote:Quote[/b] (jimh @ Feb. 26 2005,08:41)]Look for its release in the next fews days in the "Community Announcements" forum.
very cooool......
jimh
Offline

Member

Posts: 77
Threads: 9
Joined: Jan 2005
#10
2005-02-28, 10:02 PM
[b Wrote:Quote[/b] (mz-system @ Feb. 26 2005,18:57)]
[b Wrote:Quote[/b] (jimh @ Feb. 26 2005,08:41)]Look for its release in the next fews days in the "Community Announcements" forum.
very cooool......
RecInfo (email reporting and shell command features) is now available in beta release.

Please see the thread in the "Community Announcments" forum for info and the download link.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  OID of Capture_Source as Parameter to Parallel-/PostProcessing.bat BrettB 3 1,939 2011-10-06, 04:06 AM
Last Post: sub
  PostProcessing.bat supercedes Comskip zehd 9 3,347 2006-03-07, 04:19 PM
Last Post: sub
  Add channel number to parms passed PostProcessing.bat wtg 1 1,254 2005-09-07, 06:27 PM
Last Post: dirtygreek

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode