Hans Meine wrote:
> Hi,
> 
> I am not sure if I am doing something wrong or if there's a bug; for some 
> weeks now I have got an external receiver for digital cable TV.  I have 
> connected this to my IVTV card (PVR-350) via a scart adapter, and when I 
> manually use "v4l2-ctl -i 5" to switch to "Composite 3", I can watch TV.
> 
> Next, I tried adding a second VideoGroup for freevo.  My primary one looks 
> like this:
> 
>     VideoGroup(vdev='/dev/video0',
>         adev=None,
>         input_type='Tuner 1',
>         input_num=0,
>         tuner_type='internal',
>         tuner_norm='pal',
>         tuner_chanlist='europe-west',
>         desc='Kabelfernsehen',
>         group_type='ivtv'),
> 
> Now I have simply copied that and added it as second entry into 
> TV_VIDEO_GROUPS:
> 
>     VideoGroup(vdev='/dev/video0',
>         adev=None,
>         input_type='Composite 3',
>         input_num=5,
>        tuner_type='external',
> #       tuner_type='internal',
>          tuner_norm='pal',
>         tuner_chanlist='europe-west',
>         desc='Kabel Digital',
>         group_type='ivtv'),

VideoGroup(
    vdev='/dev/video4',
    vvbi='/dev/vbi4',
    adev='/dev/video20',
    input_type='Composite 1',
    input_num=2,
    tuner_norm='PAL',
),

TV_CHANNELS = [
    ('S-Video',       u'S-Video',        '-1'),
    ...
]

The video group number in the TV_CHANNELS tells freevo there is no
channel to tune, may be there is a better way to do this (tuner_type =
'none').

> 
> I have tried both tuner_type external and internal, and I thought I got it to 
> work, but effectively it only works if I manually set the v4l2 input  
> beforehand, e.g. using the above command.  I can switch to another TV channel 
> and Freevo switches to the primary video group, but when I try to switch back 
> to the first channel - my TV_CHANNELS looks like this:
> 
> TV_CHANNELS = [
>         ('AV',             'K.Digital',    '', None, 1),
>         ('CNI0DC1',        'ARD (NDR)',            'E10'),
>         ('CNI0DC2',        'ZDF',                  'E8'),
>        ...
> 
> - so when I switch back, the video group is not effectively changed.
> 
> I suspected this could be the case because it is obviously not possible to 
> change the input while /dev/video0 is still open (i.e. TV is running) - I 
> think this was possible with older IVTV drivers?  I am using the ivtv driver 
> bundled with the 2.6.28 kernel.

Correct you can't change channels when the input type is different
between channels without closing the device first.

> I tried to find the place where the input is being changed, and I found that 
> this is done in ivtv_xine_tv.py by sending a command to xine:
> 
> 2009-02-15 14:46:25,623 DEBUG    ivtv_xine_tv.py (987): XineControl.SetInput=5
> 2009-02-15 14:46:25,625 DEBUG    ivtv_xine_tv.py (927): XineApp.write 
> = 'PVRSetInput#5\n'
> 2009-02-15 14:46:25,626 DEBUG    childapp.py (167): 
> ChildApp.write(line='PVRSetInput#5') to
> pid 7081
> 
> Another thing I wondered about: I get "Cannot find tuner channel "" in the TV 
> channel listing" in the logs, although I specified tuner_type to "external":
> 
> 2009-02-15 14:42:04,804 INFO     ivtv_xine_tv.py (783): TunerControl: Set 
> VideoGroup: <ivtv: /dev/video0 5:'composite 3' 'PAL'>
> 2009-02-15 14:42:04,994 WARNING  v4l2.py (768): control "Audio Encoding 
> Layer" 
> does not exist
> 2009-02-15 14:42:04,997 WARNING  v4l2.py (768): control "Audio Encoding 
> Layer" 
> does not exist
> 2009-02-15 14:42:04,999 WARNING  v4l2.py (768): control "Audio Encoding 
> Layer" 
> does not exist
> 2009-02-15 14:42:05,001 WARNING  v4l2.py (781): control "Audio Encoding 
> Layer" 
> does not exist
> 2009-02-15 14:42:05,026 WARNING  channels.py (157): Cannot find tuner 
> channel "" in the TV channel listing

The "Audio Encoding Layer" has been removed from the ivtv driver, so you
can safely ignore these warning.

I think that the above TV_CHANNELS solution will work but you may have
to add all your channels to the TV_CHANNELS list. Possibly not a bad
thing to do with an external tuner as you may be able to use a program
to tune the digital tuner box.

Duncan

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to