Schedule and record with ALOT of cards www

Xlobby plugin development

Postby m_ski on Tue Jun 14, 2005 12:03 pm

Lasse,

couple of questions about your plugin...

1) I understand it uses schtasks (windows scheduler) to schedule the recordings - Will these tasks be able to wake up the PC from standby mode? When I have tried to use schtasks I have been unable to create events using the command line that have the 'wake up' flag set.

2) Would it be possible to use DabDig as the record program? See my other post at http://www.xlobby.com/forum/viewtopic.php?t=3310 I think it would just be a matter of changing the exact command that is executed from the windows scheduler - I couldn't quite work out if this could be done just by changing the xschedule ini file.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby lar282 on Tue Jun 14, 2005 1:02 pm

I don't really want to change the existing functions, cause they all work now!!! BUT I can duplicate and change to your liking if u want. So the result will be 2 plugins. One for DAB.. and one for Haup.. cards

Let me know the command lines u need and will see if I can add it.


regarding the wake up: I have no clue at all.My computer is on 24/7. I'll search around and see what I can find.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby lar282 on Wed Jun 15, 2005 11:37 am

I fixed the issue with wake up the computer. That works now. I did not release the dll yet.Wanna test a few days first.

did you find out what commandlines and parameters u wanted so I can change it?



//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby m_ski on Wed Jun 15, 2005 11:59 am

DABdig requires the following command line which could be run from the windows scheduler at the relevant time...

wscript dabdig.vbe record "channel name" "channel number" "Prog Name" yy mm dd hh mm duration
e.g.
wscript dabdig.vbe record "ABC" "234" "Midnight News" 03 02 28 23 58 2


How have you managed to get around the wake-up issue? I have been googling for ages and can't work it out? Do you use schtasks?

By the way, DABDig can create a TVPI file which can automatically be opened by the associated App after it has been created - this could maybe make it a more universal tool for just converting xlobby EPG data into TVPI files.

Disclaimer: I don't know much about this (TV/PVR) yet as I am still deciding which TV card will best suit my needs and might be talking complete rubbish!!
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby lar282 on Wed Jun 15, 2005 12:02 pm

I moved away from schtasks today.It does not support wake up calls...Now I do it from c#


I'll fix the command output like above.I'll let u know when its done. I'll support dabdig and gbRecord in the same plugin but nothing more. That way its easier for me.

EDIT:DONE:

if the recordappparameter is anything BUT "" or default the plugin will assume dabdig and create a schedule like below
Creating a schedule: ONCE dabdig.vbe record "TV4 "p32" Dolda kameran " 05 06 15 16 05 30

I still need some time to test before releasing


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby m_ski on Wed Jun 15, 2005 9:13 pm

That is fantastic Lasse - what a quick response, it should be exactly what I was looking for.

I have been trying to experiment with the plugin just to get it to create the scheduled task (without GBrecord installed) and it is crashing xlobby. The scheduled task gets created then xlobby crashes straight out without warning.

Log file attached...

15/06/2005 21:51:52 Reading the conversion EPG table
15/06/2005 21:51:52 Reading INI file
15/06/2005 21:51:52 Found ini file.reading all the values
15/06/2005 21:52:15 ScheduleSelected ONCE was envoked
15/06/2005 21:52:15 checking if EPG existxlobby2.EPG
15/06/2005 21:52:15 Channnel=xlobby2.TvChannelCurrentProgram=xlobby2.TvProgram
15/06/2005 21:52:15 Jumping to reading INI file
15/06/2005 21:52:15 Reading INI file
15/06/2005 21:52:15 Found ini file.reading all the values
15/06/2005 21:52:15 Done reading INI fileC:\Recorded_TVC:\GBRecord\GBRecord.exeepg
15/06/2005 21:52:15 Trying to find a channel conversion
15/06/2005 21:52:15 Did NOT Find a channel conversion
15/06/2005 21:52:15 Creating a schedule: ONCE schtasks.exe /create /sc ONCE /sd 15/06/2005 /st 21:00:00 /tn "15 06 200521 00" /ru system /rp /tr "C:\GBRecord\GBRecord.exe -startr:C:\Recorded_TV\FiveLegionnaire15_06_2005_###.mpg -pFive -minutes:125"


Any ideas what might be causing the crash? Will it crash at this point if GBrecord is not installed?
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby lar282 on Thu Jun 16, 2005 6:06 am

The new release is ready for download at the usuall location.
See first post for info.


The INI file LOCATION has changed from xlobby dir to the plugin DIR. ALSO the parameters has changed so read the ini file for help.it's included in the zip file.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby Paul Webster on Fri Jun 17, 2005 9:22 am

Just as an FYI ...
DABDig has its own queuing mechanism - but in general .. passing it a recording event is best done a few minutes before the recording is due.
That gives it time to process the request and then either put it into the scheduler of the recorder (as is done for Nebula DigiTV and many others) or holding on to it until the start time is due (as is done for WinTV/ProgDVB and a few others).
If many requests (10s) are passed in before they are due then it is possible that the recording software will not have enough space to hold the request (some only have 10 "slots" to store recording requests).
DABDig can be requested to put requests that are more than n minutes in the future onto the Windows Scheduler ... but I don't recommend this.

If any of this is a problem just let me know and I'll either explain better or I'll come up with another solution.
Paul Webster
 
Posts: 9
Joined: Tue Jun 14, 2005 5:00 am
Location: UK

Postby lar282 on Fri Jun 17, 2005 10:08 am

Paul Webster wrote:Just as an FYI ...
DABDig has its own queuing mechanism - but in general .. passing it a recording event is best done a few minutes before the recording is due.
That gives it time to process the request and then either put it into the scheduler of the recorder (as is done for Nebula DigiTV and many others) or holding on to it until the start time is due (as is done for WinTV/ProgDVB and a few others).
If many requests (10s) are passed in before they are due then it is possible that the recording software will not have enough space to hold the request (some only have 10 "slots" to store recording requests).
DABDig can be requested to put requests that are more than n minutes in the future onto the Windows Scheduler ... but I don't recommend this.

If any of this is a problem just let me know and I'll either explain better or I'll come up with another solution.


Thanks for the info Paul. I will see if anybody uses this plugin before changing. I use GbRecord to record directly so I need testers first to see if they need startime-5 minutes.


regards
Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby jmb295 on Sat Jun 18, 2005 1:16 am

Lasse,

This looks like a great plugin. I am trying to get it to work with the myHD card, and since it is a HD card it requires a few different parameters. For dabdig to create a HD tvpi file it needs the channel value to be in the form:

rfchan/majorchan/minorchan/stream

an example of this for me would be:
48/4/1/1 for nbc here in the dc area

I tried to change the channel mapping in the ini file to do this, and I may have it set incorrectly.

WRCDT1=48/4/1/1 (where WRCDT1 is the channel name in the xml file)

This doesn't seem to work since the command issued to dabdig contains the following for the channel:

pWRCDT1

Is it possible to do a mapping like above?
jmb295
 
Posts: 69
Joined: Tue May 04, 2004 11:56 pm
Location: Sterling, Va

Postby lar282 on Sat Jun 18, 2005 6:44 am

if u set capchannel to epg and have a conversion it should work now. I did forget to remove the P for dabdig users but now its done. try the new zip file and if it doesn't work post your ini file and the xscedule.log here.




//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby jmb295 on Sat Jun 18, 2005 2:07 pm

Lasse,

The p is now removed from the dabdig command, but the channel conversion is not happening. I have posted my setup below, any help is greatly appriciated.

[SCHEDULE_CONFIG]
SCHEDULEPATH=D:\HDTV\ScheduledTV
RECORDPATH=D:\HDTV\RecordedTV
RECORDAPP=C:\xlobby\dabdig\dabdig.vbe
RECORDAPPPARAMETER=dabdig
RECORDIMAGE=dabdig
CAPCHANNEL=epg
USERID=system
USERPASSWORD=


[CONVERTCHANNELS]
xlobbyEPG=ConvertedEPG
WUSADT1=34/9/1/1
WRCDT1=48/4/1/1
WJLADT1=39/7/1/1
WTTGDT1=36/5/1/1
EPG=dabdig

The log shows that it can't find a channel conversion:
6/18/2005 9:57:15 AM Done reading INI fileD:\HDTV\RecordedTVC:\xlobby\dabdig\dabdig.vbeepg
6/18/2005 9:57:15 AM Wrong Date format. Redefining date
6/18/2005 9:57:15 AM Trying to find a channel conversion
6/18/2005 9:57:15 AM Did NOT Find a channel conversion
6/18/2005 9:57:15 AM Creating a schedule: ONCEC:\xlobby\dabdig\dabdig.vbe record "WRCDT1" WRCDT1 "Trading Spaces Boys vs. Girls" 05 06 18 11 00 30
6/18/2005 9:57:16 AM Schedule FILE created.

Here's the channel defs of my xmltv data file:
<channel id="4">
<display-name>WRCDT1</display-name>
</channel>
<channel id="7">
<display-name>WJLADT1</display-name>
</channel>
<channel id="9">
<display-name>WUSADT1</display-name>
</channel>
<channel id="5">
<display-name>WTTGDT1</display-name>
</channel>

Thanks Again!
jmb295
 
Posts: 69
Joined: Tue May 04, 2004 11:56 pm
Location: Sterling, Va

Postby lar282 on Sat Jun 18, 2005 2:32 pm

Darn, found the error.Will fix tonite.check back again tomorrow and there should be a new release.

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby lar282 on Sat Jun 18, 2005 3:33 pm

it simply. New zip in place. also there is the dll standalone in the downlaod dir if u dont wanna take the whole zip..

my log from testing....

2005-06-18 17:29:22 Creating a schedule: ONCEdabdig record "TV4" 34/9/1/1 "Nyheterna och vädret" 05 06 18 21 55 15


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby Paul Webster on Sun Jun 19, 2005 9:12 am

jmb295 wrote:Lasse,

This looks like a great plugin. I am trying to get it to work with the myHD card, and since it is a HD card it requires a few different parameters. For dabdig to create a HD tvpi file it needs the channel value to be in the form:

rfchan/majorchan/minorchan/stream

<snip>
if that sort of syntax causes a problem for the calling app - then you can use a different facility in DABDig via an optional text file called dabdig.map
This maps the given channel NAME to the required channel NUMBER
e.g.
[default]
TV4=34/9/1/1

Anyway - I see that Lasse has updated his plug-in ;)

Lasse for forward compatibility - probably a good idea to put the numbers (date/time/duration) in quotes - at least the duration anyway.
Reason - I allow simple maths to be used in the duration field so that the requestor can ask for the recording duration to be changed for this particular recording .. e.g. 30+2
(DABDig has a system-wide setting that can be used to extend recordings - but this allow a further override on an individual show). The "+" without quotes around the whole field gets interpreted in a special way on many Windows platforms so needs quoting.
Even if you do not provide a way (today) to allow the user to request a duration extension, I can guess that you might ...

jmb - is it working for you?
If not - and if you want special help on the DABDig part then you could come over to my forum and I'll help out on that.
Paul Webster
 
Posts: 9
Joined: Tue Jun 14, 2005 5:00 am
Location: UK

PreviousNext