In my discussion with Pascal Schirrmann (many thanks) I understand some
things.
After that I try to make changes in my config for prepare configuration
which will be work for me.
Some changes:
VIDEO_GROUPS = [
# Use this group for watching tv (PAL)
VideoGroup(vdev=TV_DEVICE,
adev=None,
input_type='tuner',
input_num=0,
tuner_type='internal',
tuner_norm='PAL',
tuner_chanlist=CONF.chanlist,
desc='Default Video Group',
group_type='ivtv',
),
# Use this group for watching tv (SECAM-DK)
VideoGroup(vdev=TV_DEVICE,
adev=None,
input_type='tuner',
input_num=0,
tuner_type='internal',
tuner_norm='SECAM-DK',
tuner_chanlist=CONF.chanlist,
desc='2nd Video Group',
group_type='ivtv',
),
]
TV_CHANNELS = [\
("01",unicode("ORT","koi8-u"),"21"),
("02",unicode("1+1","koi8-u"),"R3",'',1),
]
But 'SECAM-DK' standard is absent in the NORMS dictionary (I add this in
patch) in src/tv/v4l2.py and after I try this configuration I found two
things:
1. In src/tv/plugins/mplayer.py in TV mode (for ivtv) present
ivtv_dev = ivtv.IVTV(vg.vdev)
ivtv_dev.init_settings()
ivtv_dev.setinput(vg.input_num)
but absent setting TV standard.
2. In src/tv/plugins/ivtv_record.py before start record process
present
if DEBUG: print 'Setting Input to %s' % vg.input_num
v.setinput(vg.input_num)
but absent setting TV standard.
I make two patches for this things. See attach.
Index: src/tv/plugins/mplayer.py
===================================================================
--- src/tv/plugins/mplayer.py (revision 9367)
+++ src/tv/plugins/mplayer.py (working copy)
@@ -101,6 +101,15 @@
ivtv_dev = ivtv.IVTV(vg.vdev)
ivtv_dev.init_settings()
ivtv_dev.setinput(vg.input_num)
+ cur_std = ivtv_dev.getstd()
+ import tv.v4l2
+ try:
+ new_std = tv.v4l2.NORMS.get(vg.tuner_norm)
+ if cur_std != new_std:
+ ivtv_dev.setstd(new_std)
+ except:
+ print "Error! Videogroup norm value '%s' not from NORMS:
%s" \
+ % (vg.tuner_norm,tv.v4l2.NORMS.keys())
#ivtv_dev.print_settings()
ivtv_dev.close()
self.fc.chanSet(tuner_channel, True)
Index: src/tv/plugins/ivtv_record.py
===================================================================
--- src/tv/plugins/ivtv_record.py (revision 9367)
+++ src/tv/plugins/ivtv_record.py (working copy)
@@ -44,6 +44,7 @@
from event import Event
from tv.channels import FreevoChannels
+import tv.v4l2 as V4L2
DEBUG = config.DEBUG
@@ -123,6 +124,14 @@
if DEBUG: print 'Setting Input to %s' % vg.input_num
v.setinput(vg.input_num)
+ cur_std = v.getstd()
+ try:
+ new_std = V4L2.NORMS.get(vg.tuner_norm)
+ if cur_std != new_std:
+ v.setstd(new_std)
+ except:
+ print "Error! Videogroup norm value '%s' not from NORMS:
%s" \
+ % (vg.tuner_norm,V4L2.NORMS.keys())
if DEBUG: print 'Setting Channel to %s' % self.prog.tunerid
fc.chanSet(str(self.prog.tunerid), False)
Index: src/tv/v4l2.py
===================================================================
--- src/tv/v4l2.py (revision 9367)
+++ src/tv/v4l2.py (working copy)
@@ -193,11 +193,11 @@
0x0020 : 'SLIDER',
}
-
NORMS = {
- 'NTSC' : 0x3000,
- 'PAL' : 0xff,
- 'SECAM' : 0x7f0000,
+ 'NTSC' : 0x00003000,
+ 'PAL' : 0x000000ff,
+ 'SECAM' : 0x007f0000,
+ 'SECAM-DK' : 0x00320000,
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel