2005-09-29, 21:45
this threads purpose is to discuss the development and integration of a python script to interface with the tsreader application.
tsreader, for those who don't know, is an excellent commercial (read:not free) application for the reception and control of dvb content (video and audio). the dvb standard is used by various distribution methods including satelite providers such as free to air, echostar dishnet, bell expressvu, and others worldwide check here. we can utilize this by obtaining a dvb compliant pc card, and connecting it to the appropriate source (satelite dish)
in addition to satelite, tsreader is also capable of tuning to other dvb sources such as terestrial (dvb-t), and cable (dvb-c).
tsreader provides the ability to tune to specific 'programs' and either view, record or stream the content (audio and video) within the program.
why is this cool? bigbellybilly has created a python script (mytv)to manipulate tv content by reading program guide information, displaying it within xbmc, and allowing the script to interact with different plugins.
the goal of this thread is to write a script that interfaces with mytv in a two ways;
1. provides program information from tsreader for display within the mytv guide.
2. (based on this previous goal) allows mytv actions to trigger the viewing, recording, and streaming of tsreader programs.
the ability to do both of the above is made possible through tsreader's control server, which is a telnet-like interface that listens on port 1399 on the tsreader pc. this server has a defined command set that allows for manipulation of the application. the details of this command set can be found here.
there is also some sample perl code available that provides an example of how the control server can be communicated with.
the two objectives stated previously can be broken down into a number of activities;
1. obtain program information
a) tsreader provides a function that dumps the current program information into an xmltv format. this formal is already usable by mytv. the question comes down to where the file is stored, how much (start and end) information is requested, how does it get refreshed and how often, but these are questions for the mytv script.
b) additional program information about listed programs can be obtained two ways, one from the dumped program information, and the other from tv.com. again, this question is for mytv.
2. trigger the viewing, recording of content
a) the action to watch a program from mytv can result in a few options (in my opinion and based on current tsreader functionality);
first a vlc stream can be configured and xbmc pointed to (but this is limited when trying to provide timeshifting,
second, a .ts or .mpeg file can be recorded on an smb share and then xbmc directed to playback the recorded file (what happens to the recording during and after viewing?)
b) the action to record a program from mytv commands tsreader to record the selected program to a file share. how does this file get indexed? is there a way to track what has been recorded, and information on the program, episode, season, actors, etc, similar to the way movies are indexed?
i don't have the skillz in python (yet) to be successful. hopefully i can solicit a python expert with a dvb card and tsreader to assist.
thanks
jt
tsreader, for those who don't know, is an excellent commercial (read:not free) application for the reception and control of dvb content (video and audio). the dvb standard is used by various distribution methods including satelite providers such as free to air, echostar dishnet, bell expressvu, and others worldwide check here. we can utilize this by obtaining a dvb compliant pc card, and connecting it to the appropriate source (satelite dish)
in addition to satelite, tsreader is also capable of tuning to other dvb sources such as terestrial (dvb-t), and cable (dvb-c).
tsreader provides the ability to tune to specific 'programs' and either view, record or stream the content (audio and video) within the program.
why is this cool? bigbellybilly has created a python script (mytv)to manipulate tv content by reading program guide information, displaying it within xbmc, and allowing the script to interact with different plugins.
the goal of this thread is to write a script that interfaces with mytv in a two ways;
1. provides program information from tsreader for display within the mytv guide.
2. (based on this previous goal) allows mytv actions to trigger the viewing, recording, and streaming of tsreader programs.
the ability to do both of the above is made possible through tsreader's control server, which is a telnet-like interface that listens on port 1399 on the tsreader pc. this server has a defined command set that allows for manipulation of the application. the details of this command set can be found here.
there is also some sample perl code available that provides an example of how the control server can be communicated with.
the two objectives stated previously can be broken down into a number of activities;
1. obtain program information
a) tsreader provides a function that dumps the current program information into an xmltv format. this formal is already usable by mytv. the question comes down to where the file is stored, how much (start and end) information is requested, how does it get refreshed and how often, but these are questions for the mytv script.
b) additional program information about listed programs can be obtained two ways, one from the dumped program information, and the other from tv.com. again, this question is for mytv.
2. trigger the viewing, recording of content
a) the action to watch a program from mytv can result in a few options (in my opinion and based on current tsreader functionality);
first a vlc stream can be configured and xbmc pointed to (but this is limited when trying to provide timeshifting,
second, a .ts or .mpeg file can be recorded on an smb share and then xbmc directed to playback the recorded file (what happens to the recording during and after viewing?)
b) the action to record a program from mytv commands tsreader to record the selected program to a file share. how does this file get indexed? is there a way to track what has been recorded, and information on the program, episode, season, actors, etc, similar to the way movies are indexed?
i don't have the skillz in python (yet) to be successful. hopefully i can solicit a python expert with a dvb card and tsreader to assist.
thanks
jt