I'm looking for a way to execute a command whenever a channel change is selected. I think part of the 'sky' plugin is close to what I want - without the stream type changing part.
I have a PVR-150 running with the pvrinput plugin, attached via composite to a digital cable STB. I have led-xmit (from the Myth pages) working from the command line, but need a way for VDR to execute a command each time a channel-change is requested, either for a recording or manually:
/usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE ADB_ICAN3000 <channel#>
Has anyone done anything like this?
Has anyone done anything like this?
Thanks!
Simon
I'm looking for a way to execute a command whenever a channel change is selected. I think part of the 'sky' plugin is close to what I want - without the stream type changing part.
I have a PVR-150 running with the pvrinput plugin, attached via composite to a digital cable STB. I have led-xmit (from the Myth pages) working from the command line, but need a way for VDR to execute a command each time a channel-change is requested, either for a recording or manually:
/usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE ADB_ICAN3000 <channel#>
Has anyone done anything like this?
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
I know I'm really resisting here - and many of you would probably say "VDR is a DVB focussed project" but I'm used to it - and it works! I know I should probably just ditch VDR until New Zealand has any 1/2 way decent digital offering - and just use Myth, which supports the IR Blaster natively.
There you go.
Has anyone done anything like this?
Thanks!
Simon
I'm looking for a way to execute a command whenever a channel change is selected. I think part of the 'sky' plugin is close to what I want - without the stream type changing part.
I have a PVR-150 running with the pvrinput plugin, attached via composite to a digital cable STB. I have led-xmit (from the Myth pages) working from the command line, but need a way for VDR to execute a command each time a channel-change is requested, either for a recording or manually:
/usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE ADB_ICAN3000 <channel#>
Has anyone done anything like this?
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Simon Baxter wrote:
I'm looking for a way to execute a command whenever a channel change is selected. I think part of the 'sky' plugin is close to what I want - without the stream type changing part.
Has anyone done anything like this?
Not as far as I know, but it should be possible with a quite simple plugin, even for a plugin-beginner:
- do newplugin to create a vanilla plugin - Add code to derive an object from cStatus, eg. class cMyStatus : public cStatus { .... } - Add the ChannelSwitch method, from there call SystemExec(), found in thread.h - Create an instance (ptr=new cMyStatus()) of this object in the plugin start method, and destroy it in the stop method.
The script you call with SystemExec should terminate quicky, since it will block VDR. If you need more time, you can call stuff with & in your script.
Cheers,
Udo
I'm looking for a way to execute a command whenever a channel change is selected. I think part of the 'sky' plugin is close to what I want - without the stream type changing part.
Has anyone done anything like this?
Udo wrote: Not as far as I know, but it should be possible with a quite simple plugin, even for a plugin-beginner:
- do newplugin to create a vanilla plugin
- Add code to derive an object from cStatus, eg. class cMyStatus : public cStatus { .... }
- Add the ChannelSwitch method, from there call SystemExec(), found in thread.h
- Create an instance (ptr=new cMyStatus()) of this object in the plugin start method, and destroy it in the stop method.
The script you call with SystemExec should terminate quicky, since it will block VDR. If you need more time, you can call stuff with & in your script.
I'm WAAAY out of my depth on this. I have no experience at this level!
Would like to understand - and have been modifying and tuning stuff within VDR for a while, but am totally lost when it comes to the real inner-workings. Any help would be gladly appreciated!
Thanks
Simon