When I did locate conf.py I saw that there also was a /root/.freevo/local_conf.py
Obviously the recordserver daemon was running with this file. I changed the file and now I can record whatever channel I schedule.
I thank you all so much. long live opensource and the people !
From: Mick <[EMAIL PROTECTED]>
<<inline: msg.gif>>
Re: Re: Re: Re: record frequency instead channel � 2004-09-16 18:20
> 2004/09/16 19:15 CEST [*RecordServer*] popen aumix -l 100 -l R -i 1; > /usr/bin/mencoder tv:// -tv ...
> VCR_CMD = (CONF.mencoder + " " + > "tv:// " + # New mplayer requires
Your VCR_CMD does not match your log entry.
please issue "locate conf.py", what conf files are found? Looks like you have disputing config files somewhere.
Mick
From: Markus Klein <[EMAIL PROTECTED]>
<<inline: msg.gif>>
Re: Re: Re: record frequency instead channel � 2004-09-16 10:39
I tried a mixture of Gedeco"s and john molohan"s tips. It didn"t help. I still can only record the channel I am viewing. Obviously it does not understand "custom" as frequency table. Is this only valid for another freevo version ?
The recordserver-log looks like this:
2004/09/16 19:15 CEST [*RecordServer*] ERROR: Unable to get channel list for Custom. 2004/09/16 19:15 CEST [*RecordServer*] RECORDSERVER GOT EVENT NOTICE 2004/09/16 19:15 CEST [*RecordServer*] RECORDSERVER HANDLING EVENT 2004/09/16 19:15 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=S18: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 3889 -o /video/09-16_19:15_king_of_queens_-_.avi
I had to mix the two because john molohan"s tips made some trouble with my freevo version:
2004/09/16 18:39 CEST [-] Log opened.
2004/09/16 18:39 CEST [-] failed to load plugin tv.generic_record
2004/09/16 18:39 CEST [-] start "freevo plugins -l" to get a list of
plugins
2004/09/16 18:39 CEST [-] Traceback (most recent call last):
2004/09/16 18:39 CEST [-] File
"/usr/lib/python2.3/site-packages/freevo/plugin.py", line 614, in
__load_plugin__
2004/09/16 18:39 CEST [-] exec("import %s" % module)
2004/09/16 18:39 CEST [-] File "<string>", line 1, in ?
2004/09/16 18:39 CEST [-] File
"/usr/lib/python2.3/site-packages/freevo/tv/plugins/generic_record.py",
line 118
2004/09/16 18:39 CEST [-] tuner_freq = "%1.3f" % (frequency /
1000.0)
2004/09/16 18:39 CEST [-] ^
2004/09/16 18:39 CEST [-] SyntaxError: invalid syntaxgeneric_record.py looks like this now:
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)
frequencyT = str(frequency)
frequencyT1 = len(frequencyT)
frequencyleftpointer = frequencyT1-3
frequencyA = frequencyT[0:frequencyleftpointer]
frequencyB = frequencyT[frequencyleftpointer:frequencyT1]
frequencyMh = frequencyA + "." + frequencyB
frequencyMhz = str(frequencyMh)# rec_prog.filename = tv_util.getProgFilename(rec_prog)
cl_options = { "channel" : rec_prog.tunerid, "frequency" : frequency, "frequencyMhz" : frequencyMhz, #"frequency" : tuner_freq, "filename" : config.TV_RECORD_DIR + "/" + rec_prog.filename, "base_filename" : 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.command = self.rec_command
self.thread.mode_flag.set() if DEBUG: print("Recorder::Record: %s" % self.rec_command)
def Stop(self):
my vcr_cmd looks like this:
TV_SETTINGS = "pal television Custom /dev/video0" TV_DRIVER = "v4l2"
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=%(frequencyMhz)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
videocodec
"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
MP3encoding, must be enabled $
#"br=128:cbr:mode=3 " + # MP3 const. bitrate,
128kbit/s
#"-ffourcc divx " + # Force "divx"
ident,better compat.
"-endpos %(seconds)s " + # only mencoder uses this
sodo it here.
"-o %(filename)s.avi ") # Filled in by Freevo
my freevo.conf:
cdparanoia = /usr/bin/cdparanoia chanlist = Custom display = x11 flac = /usr/bin/flac geometry = 800x600 jpegtran = /usr/bin/jpegtran lame = /usr/bin/lame lsdvd = /usr/bin/lsdvd mencoder = /usr/bin/mencoder mplayer = /usr/bin/mplayer oggenc = /usr/bin/oggenc renice = /usr/bin/renice setterm = /usr/bin/setterm tv = pal tvtime = /usr/bin/tvtime version = 2.1
From: john molohan <[EMAIL PROTECTED]>
Re: Re: Re: record frequency instead channel � 2004-09-14 15:35
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.
