i'm using this setup with frequency changing working. i haven't been
following this thread that closely but here are some pointers from my
setup
freevo.conf has the following option
chanlist = Custom
local_conf.py has the following options
# TV_SETTINGS = 'NORM INPUT CHANLIST DEVICE'
TV_SETTINGS = 'PAL television Custom /dev/video0'
TV_DRIVER = 'v4l2'
TV_VIEW_SIZE = (720, 576)
TV_REC_SIZE = (720, 576)
VCR_CMD = (CONF.mencoder + ' ' +
'tv:// ' + # New mplayer requires this.
'-tv driver=%s:input=%d' % (TV_DRIVER, TV_INPUT) +
':norm=%s' % CONF.tv +
# ':channel=%(channel)s' + # Filled in by Freevo
# ':chanlist=%s' % CONF.chanlist +
':freq=%(frequency)s' +
':brightness=-17' +
':width=%d:height=%d' % (TV_REC_SIZE[0], TV_REC_SIZE[1]) +
':outfmt=%s' % TV_REC_OUTFMT +
':device=%s' % TV_DEVICE +
VCR_AUDIO + # set above
' -ovc lavc -lavcopts ' + # Mencoder lavcodec video
codec
'vcodec=mpeg4' + # lavcodec mpeg-4
':vbitrate=4500:' + # Change lower/higher,
bitrate
'keyint=30 ' + # Keyframe every 10 secs,
change?
'-oac pcm '
#'-oac mp3lame -lameopts ' + # Use Lame for MP3
encoding, must be enabled in mencoder!
#'br=128:cbr:mode=3 ' + # MP3 const. bitrate, 128
kbit/s
#'-ffourcc divx ' + # Force 'divx' ident,
better compat.
'-endpos %(seconds)s ' + # only mencoder uses this so
do it here.
'-o %(filename)s.avi ') # Filled in by Freevo
FREQUENCY_TABLE = {
'RTE1' : 192100,
'NET2' : 176050,
'UTV' : 200150,
'Channel4' : 56300,
'BBC1' : 216150,
'BBC2' : 224100,
'TV3' : 183950,
'SKY1' : 232150,
'DISCOVERY': 48000,
'E4' : 64200,
'MTV' : 256100,
'TMF' : 248300,
}
TV_CHANNELS = [('rte-1.rte.ie', 'RTE1', 'RTE1'),
('n2.rte.ie', 'NET2', 'NET2'),
('utvlive.com', 'UTV', 'UTV'),
('channel4.com', 'Channel4', 'Channel4'),
('e4.channel4.com', 'E4', 'E4'),
('south-east.bbc1.bbc.co.uk', 'BBC1', 'BBC1'),
('south-east.bbc2.bbc.co.uk', 'BBC2', 'BBC2'),
('tv3.ie', 'TV3', 'TV3'),
('sky-one.sky.com', 'SKY1', 'SKY1'),
('discoveryeurope.com', 'Discovery Channel',
'DISCOVERY'),
('mtv.co.uk', 'MTV', 'MTV')
]
generic_record.py change looks like this.
def Record(self, rec_prog):
frequency = self.fc.chanSet(str(rec_prog.tunerid), 'record
plugin')
#Add to return freeq in usable format for mencoder (i.e. Khz)
tuner_freq = '%1.3f' % (frequency / 1000.0)
rec_prog.filename = tv_util.getProgFilename(rec_prog)
cl_options = { 'channel' : rec_prog.tunerid,
#'frequency' : frequency,
'frequency' : tuner_freq,
'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 }
self.rec_command = config.VCR_CMD % cl_options
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)
Best of luck, let us know how you get on.
John.
P.S. I'm away from Thursday for two weeks just in case you think i'm
stonewalling you.
On Tue, 2004-09-14 at 21:19 +0200, Markus Klein wrote:
> I changed it to TV_DRIVER = "v4l2" in local_conf.py. The effect just is
> that nothing changes. It is exactly as before. Of course I rebooted
> after the modif. It always says [*RecordServer*] ERROR: Unable to get
> frequency for channel xy (even when I commented the channel entry and
> gave frequency entry in VCR_CMD and have FREQUENCY_TABLE).
> The comments in local_conf.py say that I also needed timeshift or ivtv
> plugins. I have neighter of them cause I use a normal Hauppauge WinTV
> and I don't understand what timeshift would have to do with it. As far
> as I understand this it is just not possible to change frequency
> without an ivtv compliant tv-card.
> It is annoying that it always tells me "Unable to get frequency for
> channel xy" though I have a complete FREQUENCY_TABLE in local_conf.py
> and in freq.py.
>
> Do you have a ivtv compliant card and ivtv plugins together with v4l2
> driver. Is this the reason why it works for you ?
> Would I have to change the VCR_CMD to /usr/bin/mencoder tv:// -tv "
> driver=v4l2 too ?
> To me it seems that it really is a freevo problem and not a mencoder
> problem because it always says that it can't find the frequency for the
> channel and the popen command in recorserver-log always shows a
> channel=xy entry
> no matter if I change the VCR_CMD to frequency instead channel.
>
> ?
>
>
> from: Gedeco <[EMAIL PROTECTED]>
> Re: Re: record frequency instead channel
> 2004-09-13 10:43
>
> This is a option in local_conf.py
>
> TV_DRIVER = "v4l2"
>
> suggest you try it and uncomment it if it doesn"t work.
>
> Don"t know if it"s going to work for you. My original problem was,
> that my
> version of mencoder (or bttv??) needed v4l2.
> I was using fedora Core 2, and already assemled a debian box with
> similar
> parameters.
>
> I refer to a comment in the local_conf.py file
>
> # FREQUENCY_TABLE - This is only used when Freevo changes the channel
> natively.
> # This is only the case if you are using V4L2 and any of the following
> plugins:
>
> On some level I had a error who forced me to use v4l2 instead of v4l2.
> Don"t know exactly anymore, but it was either bttv or mplayer who
> forced
> me into that direction.
> So briefly, this is why I changed
>
> > I rebooted after every modif in local_conf.py.
> > But it seems that no matter if I use ":freq=%(frequencyMhz)s" or
> > :freq=%(frequency)s/1000" it always falls back to the channel (though
> > it is # commented):
> >
> > it only records the channel actually shown:
> >
> > VCR_CMD = ( "aumix -l 100 -l R -i 1; "+
> > "/usr/bin/mencoder " +
> > "tv:// -tv " +
> > "driver=v4l:device=/dev/video0" +
> > ":input=0:norm=PAL:chanlist=europe-west " +
> > # ":channel=%(channel)s" +
> > ":width=640:height=480" +
> > # ":freq=%(frequencyMhz)s" +
> > ":freq=%(frequency)s/1000" +
> > # ":freq=16800" +
> > ":adevice=/dev/dsp" +
> > ":audiorate=32000" +
> > ":forceaudio:forcechan=1:" +
> > "buffersize=64" +
> > " -ovc lavc -lavcopts " +
> > "vcodec=mpeg4" +
> > ":vbitrate=1200:" +
> > "keyint=30 " +
> > "-oac mp3lame -lameopts " +
> > "br=128:cbr:mode=3 " +
> > "-endpos %(seconds)s " +
> > "-o %(filename)s.avi ")
> >
> > 2004/09/13 18:30 CEST [*RecordServer*] ERROR: Unable to get frequency
> > for channel S10.
> > 2004/09/13 18:30 CEST [*RecordServer*] RECORDSERVER GOT EVENT NOTICE
> > 2004/09/13 18:30 CEST [*RecordServer*] RECORDSERVER HANDLING EVENT
> > 2004/09/13 18:30 CEST [*RecordServer*] popen aumix -l 100 -l R -i 1;
> > /usr/bin/mencoder tv:// -tv
> > driver=v4l:device=/dev/video0:input=0:norm=PAL:chanlist=europe:
> > channel=S10:width=640:height=480:adevice=/dev/dsp:audiorate=32000:
> > forceaudio:forcechan=1:buffersize=64 -ovc lavc -lavcopts
> > vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame -lameopts
> > br=128:cbr:mode=3 -endpos 289 -o /video/09-13_18:30_test1_-_.avi
> > [EMAIL PROTECTED] mox]$
> >
> > And even with a direct frequency entry it didn"t tune to any other
> > frequency. It kept showing the channel chosen before.
> > + it didn"t record anything:
> >
> > VCR_CMD = ( "aumix -l 100 -l R -i 1; "+
> > "/usr/bin/mencoder " +
> > "tv:// -tv " +
> > "driver=v4l:device=/dev/video0" +
> > ":input=0:norm=PAL:chanlist=europe-west " +
> > # ":channel=%(channel)s" +
> > ":width=640:height=480" +
> > # ":freq=%(frequencyMhz)s" +
> > # ":freq=%(frequency)s/1000" +
> > ":freq=16800" +
> > ":adevice=/dev/dsp" +
> > ":audiorate=32000" +
> > ":forceaudio:forcechan=1:" +
> > "buffersize=64" +
> > " -ovc lavc -lavcopts " +
> > "vcodec=mpeg4" +
> > ":vbitrate=1200:" +
> > "keyint=30 " +
> > "-oac mp3lame -lameopts " +
> > "br=128:cbr:mode=3 " +
> > "-endpos %(seconds)s " +
> > "-o %(filename)s.avi ")
> >
> >
> >
> >
> > 2004/09/13 18:05 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:05 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:05 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:05 CEST [*RecordServer*] going to record: 2004-09-13
> > 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:05 CEST [*RecordServer*] SAVE: saving cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:05 CEST [*RecordServer*] SAVE: ScheduledRecordings has
> 1
> > items.
> > 2004/09/13 18:05 CEST [*RecordServer*] USING CUSTOM FREQUENCY:
> > chan="E8", freq="196250"
> > 2004/09/13 18:05 CEST [*RecordServer*] Recorder::Record: aumix -l 100
> > -l R -i 1; /usr/bin/mencoder tv:// -tv
> > driver=v4l:device=/dev/video0:input=0:norm=PAL:chanlist=europe-west
> > :width=640:height=480:freq=16800:adevice=/dev/dsp:audiorate=32000:
> > forceaudio:forcechan=1:buffersize=64 -ovc lavc -lavcopts
> > vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame -lameopts
> > br=128:cbr:mode=3 -endpos 289 -o
> > /video/09-13_18:05_Manual_Record_-_.avi
> > 2004/09/13 18:05 CEST [*RecordServer*] Record_Thread::run:
> mode=record
> > 2004/09/13 18:05 CEST [*RecordServer*] Record_Thread::run: cmd=aumix
> -l
> > 100 -l R -i 1; /usr/bin/mencoder tv:// -tv
> > driver=v4l:device=/dev/video0:input=0:norm=PAL:chanlist=europe-west
> > :width=640:height=480:freq=16800:adevice=/dev/dsp:audiorate=32000:
> > forceaudio:forcechan=1:buffersize=64 -ovc lavc -lavcopts
> > vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame -lameopts
> > br=128:cbr:mode=3 -endpos 289 -o
> > /video/09-13_18:05_Manual_Record_-_.avi
> > 2004/09/13 18:05 CEST [*RecordServer*] Record logging to
> > "/var/log/freevo/recorder_stdout.log" and
> > "/var/log/freevo/recorder_stderr.log"
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER GOT EVENT NOTICE
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER HANDLING EVENT
> > 2004/09/13 18:05 CEST [*RecordServer*] popen aumix -l 100 -l R -i 1;
> > /usr/bin/mencoder tv:// -tv
> > driver=v4l:device=/dev/video0:input=0:norm=PAL:chanlist=europe-west
> > :width=640:height=480:freq=16800:adevice=/dev/dsp:audiorate=32000:
> > forceaudio:forcechan=1:buffersize=64 -ovc lavc -lavcopts
> > vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame -lameopts
> > br=128:cbr:mode=3 -endpos 289 -o
> > /video/09-13_18:05_Manual_Record_-_.avi
> > 2004/09/13 18:05 CEST [*RecordServer*] self.t1.isAlive()=True,
> > self.t2.isAlive()=True
> > 2004/09/13 18:05 CEST [*RecordServer*] ChildApp.__init__(), pid=2718,
> > app= aumix -l 100 -l R -i 1; /usr/bin/mencoder tv:// -tv
> > driver=v4l:device=/dev/video0:input=0:norm=PAL:chanlist=europe-west
> > :width=640:height=480:freq=16800:adevice=/dev/dsp:audiorate=32000:
> > forceaudio:forcechan=1:buffersize=64 -ovc lavc -lavcopts
> > vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame -lameopts
> > br=128:cbr:mode=3 -endpos 289 -o
> > /video/09-13_18:05_Manual_Record_-_.avi , poll=-1
> > 2004/09/13 18:05 CEST [*RecordServer*] Record_Thread::run: past
> wait()!!
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER GOT EVENT NOTICE
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER GOT EVENT NOTICE
> > 2004/09/13 18:05 CEST [*RecordServer*] Record_Thread::run: mode=idle
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER HANDLING EVENT
> > 2004/09/13 18:05 CEST [*RecordServer*] killing pid 2718 with sig 15
> > 2004/09/13 18:05 CEST [*RecordServer*] recorderver: After wait()
> > 2004/09/13 18:05 CEST [*RecordServer*] RECORDSERVER HANDLING EVENT
> > 2004/09/13 18:05 CEST [*RecordServer*] waiting on pid 2718
> > 2004/09/13 18:06 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:06 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:06 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:06 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:06 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:07 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:07 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:07 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:07 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:07 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:08 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:08 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:08 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:08 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:08 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:09 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:09 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:09 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:09 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:09 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:10 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:10 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:10 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:10 CEST [*RecordServer*] ScheduledRecordings has 1
> items.
> > 2004/09/13 18:10 CEST [*RecordServer*] checkToRecord: progloop =
> > 2004-09-13 18:05 to 2004-09-13 18:10 5 Manual Record
> > 2004/09/13 18:10 CEST [*RecordServer*] found a program to clean
> > 2004/09/13 18:10 CEST [*RecordServer*] SAVE: saving cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:10 CEST [*RecordServer*] SAVE: ScheduledRecordings has
> 0
> > items.
> > 2004/09/13 18:11 CEST [*RecordServer*] in checkToRecord
> > 2004/09/13 18:11 CEST [*RecordServer*] GET: reading cached file
> > (/var/cache/freevo/record_schedule.xml)
> > 2004/09/13 18:11 CEST [*RecordServer*] Got ScheduledRecordings
> (version
> > 2).
> > 2004/09/13 18:11 CEST [*RecordServer*] ScheduledRecordings has 0
> items.
> >
> > Does my freevo have not the rights to tune bttv0 ? I don"t understand
> > the recordserver-log in this case. recorder_stdout.log and
> > recorder_stderr.log are empty nevertheless. +/var/log/messages
> doesn"t
> > say anything special about bttv0 here.
> >
> >
> > by the way:
> > [EMAIL PROTECTED] mox]$ rpm -q mplayer
> > mplayer-1.0-35_pre5.rhfc2.at
> >
> > I also have the modifs in generic_record.py:
> >
> > def Record(self, rec_prog):
> > frequency = self.fc.chanSet(str(rec_prog.tunerid), "record
> > plugin")
> >
> > # modif gedeco
> > frequencyT = str(frequency)
> > frequencyT1 = len(frequencyT)
> > frequencyleftpointer = frequencyT1-3
> > frequencyA = frequencyT[0:frequencyleftpointer]
> > frequencyB = frequencyT[frequencyleftpointer:frequencyT1]
> > frequencyMh = frequencyA + "." + frequencyB
> > frequencyMhz = str(frequencyMh)
> > # end modif gedeco
> > # rec_prog.filename = tv_util.getProgFilename(rec_prog)
> >
> >
> > cl_options = { "channel" : rec_prog.tunerid,
> > # modif gedeco
> > "frequencyMhz" : frequencyMhz,
> > # modif gedeco
> > "frequency" : frequency,
> > "filename" : config.TV_RECORD_DIR + "/" +
> > rec_prog.filename,
> >
> > But the effect is exactly the same as shown at the beginning of the
> > post.
> > Can I just use v4l2 instead of v4l in the VCR_CMD ? Is this just a
> > better mplayer options with no side effects ?
> >
> >
> > I don"t see any logic behind this problem.
> >
> >
> >
> > from: Gedeco <[EMAIL PROTECTED]>
> > record frequency instead channel]
> > 2004-09-12 23:44
> >
> > bTW: before I forget it: after every change you made to a config
> file,
> > it"s recommended to restart the service..
> >
> > ------------------------- Oorspronkelijk bericht
> > -------------------------
> > Onderwerp: Re: [Freevo-users] record frequency instead channel
> > Van: "Geert Decorte" <[EMAIL PROTECTED]>
> > Datum: Ma, 13 september, 2004 8:37 am
> > Aan: [EMAIL PROTECTED]
> >
> >
> ------------------------------------------------------------------------
> > --
> >
> > > Dear People,
> > >
> > > I run out of ideas where to configure freevo to be able to
> record the
> > scheduled channel and not the one I am actually viewing.
> > > I always get
> > > [*RecordServer*] ERROR: Unable to get frequency for channel xy
> > > no matter where I put frequency information for my channels.
> > > I tried different VCR_CMDs
> > > also with the modifications described at
> > > http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo
> > >
> > >
> > > VCR_CMD = ( "aumix -l 100 -l R -i 1; "+
> > > "/usr/bin/mencoder " +
> > > "tv:// -tv " +
> > > "driver=v4l:device=/dev/video0" +
> > > ":input=0:norm=PAL:chanlist=europe-west " +
> > > # ":channel=%(channel)s" + #attempt
> > > ":width=640:height=480" +
> > > ":freq=%(frequencyMhz)s" + #attempt
> with
> > modifs from
> > > http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo
> > > # ":freq=%(frequency)s/1000" + #attempt
> > > # ":freq=16800" +
> #attempt
> > > FREQUENCY_TABLE = {
> > > "E3" : 55250,
> > > "E4" : 62250,
> > > "E6" : 147000,
> > > "E12" : 224250,
> > > ............
> > >
> > > and in /usr/lib/python2.3/site-packages/freevo/tv/freq.py
> > >
> > > PAL_MOX = [
> > > ("E3", 55250),
> > > ("E4", 62250),
> > > ("E6", 189000),
> > > ("E12", 224250),
> > > ............
> > > PAL_EUROPE = PAL_MOX + FREQ_CCIR_I_III + FREQ_CCIR_SL_SH +
> > FREQ_CCIR_H +
> > FREQ_UHF
> > >
> > > I ran freevo cache several times
> > > but it always says that it cant find the frequency for the
> channel
> > and
> > only records the program which is actually shown and not the one
> > scheduled.
> > > It always opens the command with the channel option instead
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users