I've modified the code of generic_record.py
def Record(self, rec_prog):
frequency = self.fc.chanSet(str(rec_prog.tunerid), 'record
plugin')
rec_prog.filename = tv_util.getProgFilename(rec_prog)
cl_options = { 'channel' : rec_prog.tunerid,
'frequency' : frequency,
'filename' : rec_prog.filename,
'base_filename' :
os.path.basename(rec_prog.filename),
'title' : rec_prog.title,
'sub-title' : rec_prog.sub_title,
'seconds' : rec_prog.rec_duration }
#modified code
#
if cl_options["channel"] == "3":
print "Channel 3, you're recording from composite input"
self.rec_command = config.VCR_CMD2 % cl_options
else:
self.rec_command = config.VCR_CMD % cl_options
#end modified code
self.thread.mode = 'record'
self.thread.prog = rec_prog
self.thread.command = self.rec_command
self.thread.autokill = float(rec_prog.rec_duration + 10)
self.thread.mode_flag.set()
if DEBUG:
print('Recorder::Record: %s' % self.rec_command)
Now I'm using in local_config.py two different command for tuner or
composite input
I don't know if it could be a good choice... but it's ok
Claudio
Il giorno sab, 19-02-2005 alle 17:10 +0100, Claudio ha scritto:
> Hi Friends,
>
> I'm trying to schedule a record also from composite like normal tuner
>
> I can correctly see from composite and tuner using video groups
>
> VIDEO_GROUPS = [
> VideoGroup(vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type='tuner',
> tuner_norm=CONF.tv,
> input_num=0,
> tuner_chanlist=CONF.chanlist,
> desc='Tuner',
> recordable=True),
> VideoGroup(vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type='composite',
> tuner_norm=CONF.tv,
> input_num=1,
> tuner_chanlist=CONF.chanlist,
> desc='Composite',
> recordable=True),
> VideoGroup(vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type='Svideo',
> tuner_norm=CONF.tv,
> input_num=2,
> tuner_chanlist=CONF.chanlist,
> desc='Svideo',
> recordable=True),
> ]
>
>
> and this channel settings
>
> TV_CHANNELS = [
> ('composite','Composite Input','3', '', 1),
> ('svideo','S-video Input','4', '', 2),
> ('www.raiuno.rai.it', 'raiuno', 'E'),
> ('www.raidue.rai.it', 'raidue', '34'),
> ('www.raitre.rai.it', 'raitre', '68'),
> ('www.rete4.com','rete4','Rete 4'),
> ('www.canale5.com','canale5','Canale 5'),
> ('www.italia1.com','italia1','Italia 1'),
> ('www.la7.it','la7','LA7'),
> ('www.reteallmusic.it','reteA','Rete A'),
> ('video33','video33','33'),
> ('sportitalia','sportitalia','SportItalia')]
>
>
> When I schedule a record for the composite channel, mencoder record
> using as source the tuner... Is there any way to permit to record both
> from tuner and composite using recordserver?
>
> Thank you
--
Claudio <[EMAIL PROTECTED]>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel