Pascal Schirrmann wrote:
> Duncan Webb a écrit :
>> Pascal Schirrmann wrote:
>>
>>> Next Channel, Composite entry , PAL format :
>>> Driver: ivtv
>>> Card: Hauppauge WinTV PVR-150
>>> Version: 256.00
>>> Capabilities: 0x01030051
>>> Enumerating supported Standards.
>>> 0: 0xf PAL-BGH
>>> 1: 0xe0 PAL-DK
>>> 2: 0x10 PAL-I
>>> 3: 0x100 PAL-M
>>> 4: 0x200 PAL-N
>>> 5: 0x400 PAL-Nc
>>> 6: 0xd0000 SECAM-BGH
>>> 7: 0x320000 SECAM-DK
>>> 8: 0x400000 SECAM-L
>>> 9: 0x800000 SECAM-L'
>>> 10: 0x1000 NTSC-M
>>> 11: 0x2000 NTSC-J
>>> 12: 0x8000 NTSC-K
>>> Current Standard is: 0xff0000
>>> Enumerating supported Inputs.
>>> 0: Tuner 1
>>> 1: S-Video 1
>>> 2: Composite 1
>>> 3: S-Video 2
>>> 4: Composite 2
>>> Input: 2
>>> Width: 720, Height: 576
>>> Read Frequency: 2692
>>> CODEC::aspect: 2
>>> CODEC::audio_bitmask: 0x69
>>> CODEC::bframes: 3
>>> CODEC::bitrate_mode: 0
>>> CODEC::bitrate: 4500000
>>> CODEC::bitrate_peak: 6000000
>>> CODEC::dnr_mode: 3
>>> CODEC::dnr_spatial: 0
>>> CODEC::dnr_temporal: 0
>>> CODEC::dnr_type: 0
>>> CODEC::framerate: 0
>>> CODEC::framespergop: 12
>>> CODEC::gop_closure: 1
>>> CODEC::pulldown: 0
>>> CODEC::stream_type: 10
>>> XXX:tunerSetFreq(chan='21', isplayer=True, app=None, app_cmd=None)
>>> Cannot set frequency for Composite 1/PAL/21: [Errno 16] Device or
>>> resource busy
I'm glad that you found the answer that it is not possible to change the
standard when the device is in use. I can put some code in to show a
warning box.
I may not be possible to change the input too when the device is open.
>> A bit strange that it says PAL as "Current Standard is: 0xff0000" is
>> SECAM, are you sure that you channel 21 has the correct video group in
>> TV_VIDEO_GROUPS?
>>
>>
> Reading your answer, I did a little further (strange how fast I can
> forget the reason of a configuration step, as soon as this works :-)
> In fact, in this case, this is the Composite entry. So I don't need the
> tuner.
> I tried in my TV_VIDEO_GROUP to set tuner_type='external' an to remove
> the channel value.
When a tuner is defined as external then you may need to enable
tv.irsend_generic or tv.irsend_echostar plugins to send the channel
command to the device but since you tuner is not external you don't need
the commands.
> This doesn't work, the system tell me that it cannot found the channel
> '' in the conf.
> So i put back 21 as channel number (that was the value, I don't remember
> why) and tried again. This time, no error message, but probably because
> I set tuner_type as external, the input stays on SECAM (SECAM is my
> default value)
> So, I went back to remove the tuner type, let the channel number to 21
> and I can select (directly from freevo, not moving from preset to preset
> with the 'C' and 'V' keys) my composite entry in PAL.
> I suppose I'm one of the first trying to actually use different
> standards on this king of card. I remember some months ago a guy living
> in Russia with such kind of trouble, but don't remember the kind of TV card.
>
> For your initial question, it seems that the Current Standard
> information is displayed before freevo actually set it, because I just
> tested,
> I started on my composite entry, the message is the same 0xff0000 and
> the input is actually set on PAL
Are you sure that you don't need to set the standard when using a
composite or s-video input?
First I would go back a step and try not changing channel this way but
by selecting a channel from the TV guide menu. This way there is no open
device so the input and standard can be set. Getting these to work is
the next step after checking that the v4l2-ctl commands are working for
you card.
Unfortunately, I can't test this for you as I only get PAL. Even though
you don't program it bay be possible that you can add print commands to
the tv/channels.py to see what is going on. Simply add a:
"print 'variable_name', variable" indented at the same level as the
following or preceding line. ie:
| freq = config.TV_FREQUENCY_TABLE.get(chan)
| if freq:
| _debug_('Using custom frequency: chan="%s", freq="%s"' % \
| (chan, freq))
| else:
| clist = tv.freq.CHANLIST.get(vg.tuner_chanlist)
| if clist:
adding prints so.
| freq = config.TV_FREQUENCY_TABLE.get(chan)
> print 'freq', freq
| if freq:
| _debug_('Using custom frequency: chan="%s", freq="%s"' % \
| (chan, freq))
| else:
| clist = tv.freq.CHANLIST.get(vg.tuner_chanlist)
> print clist
| if clist:
You will need to restart freevo to the new version to be used.
But first things first.
1) check the v4l2-ctl commands are setting the channel up correctly
2) use the TV guide to select a program.
3) add print commands to see what is being called and set.
HTH
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