[Freevo-users] Freevo development moved to GitHub
Hi everyone, similar to Kaa, Freevo moved to github. The old svn server is still available but is read-only. You can now find Freevo 1.x, Freevo 2, the Freevo 2 TV server and all Kaa modules at https://github.com/freevo/ If you want to help us developing Freevo 1, Freevo 2 or any Kaa module please clone the git repository and send us a pull request. Note: I'm still new to git, so it may take a while until I figure our what to do. :) Regards, Dischi -- I don't do drugs anymore 'cause I find I get the same effect just by standing up really fast. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] livepause
On Fri, 2012-04-06 at 12:22 +1000, Liz wrote: I'm back at this point I found that the /tmp/freevo/live.buf file for the buffer was being destroyed on reboot, so /tmp/freevo is the current file, and livepause is not dying anymore However, I'm not getting any tuning happening the line which is setting the target is returning 'none' hdhomerun_config 1110D413 set /tuner0/target Freevo IP:1235 I've had some look at the code, and if 'none' it is supposed to set localhost (i think) but hdhomerun_config 1110D413 set /tuner0/target none is going to the tuner, and it seems to do exactly nothing A quick fix for this would be to change the /etc/hosts file so that the host name of computer didn't resolve to 127.0.0.1 but to the IP address of the network interface that is used to talk to the HDHomeRun. That will mean freevo can work out what IP address to tell the HDHomeRun to send the packets to. Cheers Adam -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Integrating HDHomerun tuner into Freevo
On Sun, 2012-04-08 at 18:10 +1000, Liz wrote: 1. I managed to get Freevo to tune the hdhomerun and dump the stream to a buffer on the HDD. I didn't get anything on the screen to watch, I didn't get any audio. It just says Tuning [channel]. I can't decipher to recorded stream with vlc, mplayer or xine. Nope you haven't not yet, the fact that you are stilling seeing the 'Tuning' message means that no packets have yet been captured. See my other mail on hopefully solving this.. 2. I tried recording with the generic record plugin but it doesn't send a tuning sequence of commands. I get a fxd file created but not even an empty file for the record. I've tried a few commands for vlc and mplayer that might have worked. With the generic record plugin you need to specify a script to run that will do the recording. The script gets passed a whole load of parameters (configured by local_conf.py). You need to in that script use the hdhomerun config program to configure the device and then capture the stream. Anyone got any further suggestions?? I've attached a knocked together a HDHomeRun recording plugin, drop this into the freevo/tv/plugins directory under the python library directory where freevo was installed (something like /usr/local/lib/python2.7/dist-packages/freevo/tv/plugins). Then use this plugin instead of the generic record plugin. Hopefully it should do everything that is required to record from the HDHomeRun. If it works I'll drop it into the main repo. Cheers Adam # -*- coding: iso-8859-1 -*- # --- # record.py - the Freevo DVBStreamer Recording module for tv # --- # $Id$ # # Notes: # # Only supports DVBStreamer instance on localhost. # # Todo: # # # --- # Freevo - A Home Theater PC framework # Copyright (C) 2002 Krister Lagerstrom, et al. # Please see the file freevo/Docs/CREDITS for a complete list of authors. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MER- # CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # --- */ import logging logger = logging.getLogger(freevo.tv.plugins.hdhomerun) import time import os import re import copy import sys import threading from socket import * import config # Configuration handler. reads config file. import util import childapp import rc import util.tv_util as tv_util from tv.channels import FreevoChannels from event import * import plugin DEBUG=config.DEBUG class PluginInterface(plugin.Plugin): HDHomeRun Recorder def __init__(self): plugin.Plugin.__init__(self) logger.debug('HDHomeRun plugin starting') # register the DVBStreamer record plugin.register(Recorder(manager), plugin.RECORD) ### # Recorder ### class Recorder: Class to record to file def __init__(self): # Disable this plugin if not loaded by record_server. if sys.argv[0].find('recordserver') == -1: return self.fc = FreevoChannels() self.thread = Record_Thread() self.thread.setDaemon(1) self.thread.mode = 'idle' self.thread.start() def Record(self, rec_prog): Start recording the specified program. self.thread.prog = rec_prog self.thread.mode = 'record' self.thread.mode_flag.set() def Stop(self): Stop recording. self.thread.mode = 'stop' self.thread.mode_flag.set() class Record_Thread(threading.Thread): Thread class that actually does the recording. def __init__(self): threading.Thread.__init__(self) self.fc = FreevoChannels() self.manager = manager self.mode = 'idle' self.mode_flag = threading.Event() self.prog = None self.app = None def run(self): Thread loop. while 1: if DEBUG: print('Record_Thread::run: mode=%s' % self.mode) if self.mode == 'idle': self.mode_flag.wait()
Re: [Freevo-users] livepause
On Mon, 09 Apr 2012 21:48:47 +0100 Adam Charrett a...@dvbstreamer.org wrote: On Fri, 2012-04-06 at 12:22 +1000, Liz wrote: I'm back at this point I found that the /tmp/freevo/live.buf file for the buffer was being destroyed on reboot, so /tmp/freevo is the current file, and livepause is not dying anymore However, I'm not getting any tuning happening the line which is setting the target is returning 'none' hdhomerun_config 1110D413 set /tuner0/target Freevo IP:1235 I've had some look at the code, and if 'none' it is supposed to set localhost (i think) but hdhomerun_config 1110D413 set /tuner0/target none is going to the tuner, and it seems to do exactly nothing A quick fix for this would be to change the /etc/hosts file so that the host name of computer didn't resolve to 127.0.0.1 but to the IP address of the network interface that is used to talk to the HDHomeRun. That will mean freevo can work out what IP address to tell the HDHomeRun to send the packets to. Cheers Adam I was close... but didn't try enough parameters So it plays, but does not stop... 2012-04-10 08:12:51,307 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/channel 21950') 2012-04-10 08:12:51,308 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/program 672') 2012-04-10 08:12:51,308 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/target x.y.z.zz:1235') 2012-04-10 08:14:09,741 - root - WARNING - childapp.py (173): ChildApp.write(line='quit'): failed 2012-04-10 08:14:09,761 - base.async - ERROR - Unhandled InProgress exception: Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/kaa/base/thread.py, line 118, in __call__ result = super(MainThreadCallable, self).__call__(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/callable.py, line 232, in __call__ return cb(*cb_args, **cb_kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/timer.py, line 175, in start self._id = notifier.timer_add(int(interval * 1000), self) ValueError: invalid literal for int() with base 10: '5*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*6 05*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*60' == So I killed vlc and then could not play another channel although it did go through Tune:Buffer:Play 2012-04-10 08:14:23,702 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/channel 21950') 2012-04-10 08:14:23,703 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/program 674') 2012-04-10 08:14:23,703 - stdout - INFO - os.system('hdhomerun_config 1110D413 set /tuner1/target 192.168.79.243:1235') 2012-04-10 08:14:59,362 - base.async - ERROR - Unhandled InProgress exception: Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/kaa/base/thread.py, line 118, in __call__ result = super(MainThreadCallable, self).__call__(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/callable.py, line 232, in __call__ return cb(*cb_args, **cb_kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/timer.py, line 175, in start self._id = notifier.timer_add(int(interval * 1000), self) ValueError: invalid literal for int() with base 10: '5*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*60' 2012-04-10 08:15:18,116 - base.async - ERROR - Unhandled InProgress exception: Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/kaa/base/thread.py, line 118, in __call__ result = super(MainThreadCallable, self).__call__(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/callable.py, line 232, in __call__ return cb(*cb_args, **cb_kwargs) File /usr/local/lib/python2.7/dist-packages/kaa/base/timer.py, line 175, in start self._id = notifier.timer_add(int(interval * 1000), self) ValueError: invalid literal for int() with base 10: '5*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*605*60' = -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Integrating HDHomerun tuner into Freevo
On Mon, 09 Apr 2012 22:32:50 +0100 Adam Charrett a...@dvbstreamer.org wrote: I've attached a knocked together a HDHomeRun recording plugin, drop this into the freevo/tv/plugins directory under the python library directory where freevo was installed (something like /usr/local/lib/python2.7/dist-packages/freevo/tv/plugins). Then use this plugin instead of the generic record plugin. Hopefully it should do everything that is required to record from the HDHomeRun. If it works I'll drop it into the main repo. Cheers Adam [hdhomerun.py text/x-python (5569 bytes)] directory is (Debian) /usr/lib/python2.7/dist-packages/freevo/tv/plugins/ The Recordserver doesn't realise that this is a recording plugin, so does not try to use the plugin. I've tried two ways of loading it in local_conf.py with no success. # plugin.remove('tv.generic_record') # plugin_record = plugin.activate('tv.hdhomerun') and #plugin.remove('tv.generic_record') #plugin_record = 'tv.hdhomerun' and trying to make the plugin tv.hdhomerun_record still wasn't successful I'll ask my writer of bash scripts to look at a record script -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Thanks Adam for your time Re: Integrating HDHomerun tuner into Freevo
On Tue, 10 Apr 2012 09:35:39 +1000 Liz ed...@billiau.net wrote: On Mon, 09 Apr 2012 22:32:50 +0100 Adam Charrett a...@dvbstreamer.org wrote: I've attached a knocked together a HDHomeRun recording plugin, drop this into the freevo/tv/plugins directory under the python library directory where freevo was installed (something like /usr/local/lib/python2.7/dist-packages/freevo/tv/plugins). Then use this plugin instead of the generic record plugin. Hopefully it should do everything that is required to record from the HDHomeRun. If it works I'll drop it into the main repo. Cheers Adam [hdhomerun.py text/x-python (5569 bytes)] directory is (Debian) /usr/lib/python2.7/dist-packages/freevo/tv/plugins/ The Recordserver doesn't realise that this is a recording plugin, so does not try to use the plugin. I've tried two ways of loading it in local_conf.py with no success. # plugin.remove('tv.generic_record') # plugin_record = plugin.activate('tv.hdhomerun') and #plugin.remove('tv.generic_record') #plugin_record = 'tv.hdhomerun' and trying to make the plugin tv.hdhomerun_record still wasn't successful I'll ask my writer of bash scripts to look at a record script and even what might be the correct syntax plugin_record = plugin.activate('tv.hdhomerun_record') results in $ freevo recordserver --start Freevo 1.9.2-svn rupstream started at Tue Apr 10 15:18:19 2012 WARNING: * ** Warning: No recording plugin registered. ** ** Check your local_conf.py for a** ** bad plugin_record = line or ** ** this log for a plugin failure.** ** Recordings will fail! ** * -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users