[mythtv-users] Re: add skybox to my MythTV system

Ant Daniel antdaniel at gmail.com
Thu Aug 11 12:04:00 UTC 2005


On 8/11/05, Neil Bird <neil at fnxweb.com> wrote:
> Around about 09/08/05 22:04, Ant Daniel typed ...
> > I have a PVR 350 and can check the sky signal status by using ivtvctl
> > -I allows me to tell if the sky box is on or off, without trying to
> > constantly turn it on. (So if I do play with your prog I mght make
> > some changes regarding that).
> 
>    Intriguing;  how do you do that?
> 

I did have someone else try (but not Sky) and said that what I waas
doing was using a feature of my box, don't know for sure, or if this
works on all sky boxes, I have the Grundig one with the SVideo out,
although I believe I was using this through the SCART while I was
sorting out my setup.

With Sky Box on:
[mythtv at olympus ~]$ ivtvctl -I
check SAA7115 input signal
ioctl: VIDEO_STATUS = Sat/Dvd  *** This is the line of interest ***

SAA7115 reg[STATUS#1 - 0x1E] = 82
 Color Standard (D0-D1): PAL
 White peak loop (D2): Not activated
 Gain value for act.lum. (min) (D3): Not limited
 Gain value for act.lum. (max) (D4): Not limited
 WIPA-mode slow-time constant (D5): Not activated
 Horizontal frequency (D6): Locked
 Field length (D7): Standard

SAA7115 reg[STATUS#2 - 0x1F] = 91
 Ready for capture (D0): Yes
 Macrovision 7.01 (D1): No
 MV Colorstripe burst (D2): No
 MV Colorstripe burst type 3 (D3): No
 Input signal timebase (D4): Stable (broadcast/DVD)
 Field frequency (D5): 50Hz
 H & V loops (D6): Locked
 Interlace (D7): Detected

With Sky box off
[mythtv at olympus ~]$ ivtvctl -I
check SAA7115 input signal
ioctl: VIDEO_STATUS = Bad  *** This is the line of interest ***

SAA7115 reg[STATUS#1 - 0x1E] = 50
 Color Standard (D0-D1): BW/No color
 White peak loop (D2): Not activated
 Gain value for act.lum. (min) (D3): Not limited
 Gain value for act.lum. (max) (D4): Limited
 WIPA-mode slow-time constant (D5): Not activated
 Horizontal frequency (D6): Unlocked
 Field length (D7): Non-standard

SAA7115 reg[STATUS#2 - 0x1F] = c0
 Ready for capture (D0): No
 Macrovision 7.01 (D1): No
 MV Colorstripe burst (D2): No
 MV Colorstripe burst type 3 (D3): No
 Input signal timebase (D4): Non-stable (VCR)
 Field frequency (D5): 50Hz
 H & V loops (D6): Unlocked
 Interlace (D7): Detected

In my channel change script I do the following:

signal=`/usr/bin/ivtvctl -I | grep VIDEO_STATUS | cut -f 4 -d " "`

if [ "$signal" = "Bad" ]
then
  /home/mythtv/red_eye /dev/ttyS0 P 1
fi

I would expect that there is an IOCTL for the input detection, this
would allow it to be carried out in code, but haven't really looked
into it yet, the ivtvctl should make good example code.

Hope this helps,
Ant.


More information about the mythtv-users mailing list