Duncan Webb wrote:
> Pascal Schirrmann wrote:
>> Hi,
>>
>> I'm using a PVR-150 card as input on my freevobox, and encounter a 
>> trouble when shifting from SECAM to PAL.
>> Until now, it didn't bother me so much, but now that the ivtv_xine 
>> plugin starts to deal with the TV_VIDEO_GROUP, I really would like to 
>> use that functionality.
>>
>> So here is the trouble :
>>
>> I basically receive via the cable operator 23 tv channels. 21 are in 
>> SECAM, and 2 in PAL. I also receive via my ADSL box a bunch of TV 
>> programs, all in PAL. These programs come in via the composite input of 
>> the PVR-150 card.
>> The best results I have so far : Setting the default standard as secam, 
>> I can receive the 21 SECAM channels. If I want to watch one of the ADSL 
>> program, I stop freevo (ouch), send the following command :
>> v4l2-ctl --set-standard=pal --set-input=2
>> then
>> xine --stdctl pwr:///home2/media/tmp/xine-buf-
>>
>> So, everything is ok (At least, until the standard change is 
>> incorporated in ivtv_xine_tv.py)
>> If I try to watch one of the pal antenna program, hoverer, I'm not able 
>> to do something relevant.
>> For instance, I start via freevo to watch a PAL program. Since Freevo 
>> doesn't select pal, I can watch my program, but in a very nice kind of 
>> purple...
>> I then stop freevo, do my v4l2-ctl --set-standard=pal and then launch 
>> xine, I have the sound (not good) but only a snow storm as picture.
>>
>> Do you have any idea of the reason ? I suspect that in this case, I have 
>> something else to do to setup the tuner, but didn't find anything relevant.
>> BTW, my system is running Mandriva 2008, with a 2.6.22-9 kernel, the 
>> embedded drivers for the PVR card and the 1.0.3 set of ivtv tools.
> 
> Try this patch:
> Index: src/tv/channels.py
> ===================================================================
> --- src/tv/channels.py  (revision 10012)
> +++ src/tv/channels.py  (working copy)
> @@ -190,6 +190,7 @@
>              # Lets set the freq ourselves using the V4L device.
>              try:
>                  vd = tv.v4l2.Videodev(vg.vdev)
> +                vd.setfreq(vg.input_num)
>                  try:
>                      vd.setfreq(freq)
>                  except:
> 
> Then you will need a VideoGroup for each tuner input.
> If it works and has no unwanted side effects then I can commit it

Sleeping on this it won't do quite what you wanted, as it doesn't change
the TV standard.

Today, I've done a big commit in rel-1 branch at r10025 that may do what
you want.

The change was:
* to add some stuff into v4l2 to allow the inputs and the standards to
be enumerated when the video device was opened.
* set the input and standard from the video group when the channel is set.
* the input is selected by *name* and not by number, so they must be
correct. It will print out the available options if not correct.

It is a bit of a risky change as it hits all of the TV and recording
stuff and changes the definition of video groups a bit. From only one
video group per tuner to one per input. If you see what I mean.

I've been testing it and it seems fine on my set-up.

This change has *only* been done on rel-1 branch and *not* rel-1-7
branch. I'll wait for some feedback before adding it to rel-1-7.

Duncan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to