Re: [Freevo-users] Traceback from config.py with todays rel-1 svn

2007-10-16 Thread John Molohan

John Molohan wrote:

don locke wrote:
  

I've posted a patch that should fix this.

Line - 611
fv.res += DisplayGroups(str(fconfig), expandAll)

should be

 fv.res += DisplayGroups(fconfig, expandAll)


Don.


Hi Don,

Thanks for the quick reply. I now get this traceback:

*web.Server Traceback (most recent call last):*

: 'float' object is not iterable


/usr/lib/python2.5/site-packages/twisted/web/server.py, line 160 in process
158try:
159  resrc = self.site.getResourceFor(self)
160  self.render(resrc)
161except:
*Self*
site
twisted.web.server.Site instance @ 0xb6e0948cL instance at 0xb6e0948c>


*Locals*
resrc   
__builtin__.ConfigResource instance @ 0xb6e1174cL 
<__builtin__.ConfigResource instance at 0xb6e1174c>

self
twisted.web.server.Request instance @ 0xb6e097acL 

/usr/lib/python2.5/site-packages/twisted/web/server.py, line 167 in render
165  def render(self, resrc):
166try:
167  body = resrc.render(self)
168except UnsupportedMethod, e:
*Locals*
resrc   
__builtin__.ConfigResource instance @ 0xb6e1174cL 
<__builtin__.ConfigResource instance at 0xb6e1174c>

self
twisted.web.server.Request instance @ 0xb6e097acL 

*Globals*
UnsupportedMethod   ||

/usr/lib/python2.5/site-packages/freevo/www/web_types.py, line 100 in render
98  # thus we return the self._render methode
99  # which hopefully will do something usefull
100  return self._render(request)
101
*Locals*
self
__builtin__.ConfigResource instance @ 0xb6e1174cL 
<__builtin__.ConfigResource instance at 0xb6e1174c>

request 
twisted.web.server.Request instance @ 0xb6e097acL 

/usr/share/freevo/htdocs/config.rpy, line 611 in _render
609fv.res += '\n'
610fv.res += '\naction="config.rpy" method="get">\n'

611fv.res += DisplayGroups(fconfig, expandAll)
612fv.res + '\n'
*Locals*

Anyone any ideas on this one?

Thanks,

John
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] New webserver configuration tool and logging display

2007-10-16 Thread Pirlouwi
Is there a wiki page describing this new feature?
Pirlouwi.

2007/10/11, Duncan Webb <[EMAIL PROTECTED]>:
>
> > I've done some major updates to this and i'll try to get a patch
> > together for svn later this week.
>
> Don,
>
> Have I updated all you previous patches in svn? I noticed that one could
> have been missed.
>
> Duncan
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Problem with tv generic record plugin

2007-10-16 Thread Pirlouwi
Ok, Duncan, it works now.
Thx for help.Pirlouwi

2007/10/14, Duncan Webb <[EMAIL PROTECTED]>:
>
> Pirlouwi wrote:
> > I go on with my generic record plugin use.
> > I still have a problem which is the following:
> > after the end of the recording, I got three files:
> > /var/cache/freevo/vfs/records/10-13_23:15_On_n_est_couch.avi
> > /var/cache/freevo/vfs/records/10-13_23:15_On_n_est_couch.fxd.raw
> > /records/10-13_23:15_On_n_est_couch.fxd
> >
> > Problem is that in freevo, I see two files in the records folder.
> > 10-13_23:15_On_n_est_couch.avi
> > On_n_est_couch
> >
> > The first file is playble and contains the video data (I suppose it is
> > the avi file)
> > The second file contains the details of the tv broadcasting (I suppose
> > it is the fxd file)
>
> Both files should really be in the same directory, it looks like you're
> writing the avi files to the cache directory.
>
> Yes the fxd file contains the broadcast programme information.
>
> > Q: how can I merge the two files and see only one file in the records
> > directory in the freevo interface?
>
> Write the avi file to /records/
>
> > I had not this behavior with live-pause plugin. What did I wrong?
>
> Duncan
>
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Traceback in lcd.py

2007-10-16 Thread Duncan Webb
Hugo Monteiro wrote:
> Hugo Monteiro wrote:
>> Hello all,
>>
>> I'm not being able to use the lcd plugin while viewing my tv recordings. 
>> I get to record tv alright but then, and only if i have the lcd plugin 
>> enabled, when i go to the manage recordings option, when i try to scroll 
>> up/down among the recordings, freevo crashes with the following info:
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/site-packages/freevo/main.py", line 288, in 
>> eventhandler
>> app.eventhandler(event)
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/menu.py", line 
>> 570, in eventhandler
>> self.refresh()
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/menu.py", line 
>> 407, in refresh
>> skin.draw('menu', self, self.menustack[-1])
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/main.py",
>>  
>> line 530, in draw
>> a.draw(settings, object, menu, style, type, self.force_redraw)
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/area.py",
>>  
>> line 196, in draw
>> self.update_content()
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/default_areas.py",
>>  
>> line 179, in update_content
>> p.draw((self.widget_type, self.menuw), self)
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/plugins/lcd.py", 
>> line 896, in draw
>> info = get_info( menu.selected, menu_info[ menu.selected.type ] )
>>   File 
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/plugins/lcd.py", 
>> line 742, in get_info
>> info += l[ 1 ] % v
>> TypeError: not enough arguments for format string
>>
>>
>> Is this a bug or am i missing anything?
>>
>> Thanks in advance,

It does look like a bug but you haven't provided the necessary
information, such as the rows and colmn.s that you LCD display has.

> I'm so sorry for not providing any further information. I'm using freevo 
> 1.7.3 in a debian etch box. I have tried to comment line 742 of lcd.py 
> and freevo no longer crashes. Also i didn't see any difference in the 
> LCD operation. What is that line there for?


It adds some text to the info line, could be a spinner.

Duncan


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread Matt Gerassimoff



On Tue, 16 Oct 2007, Adam Charrett wrote:

> On Tue, 2007-10-16 at 08:43 -0700, Matt Gerassimoff wrote:
>>> Great example what I need, definitely the simplest options as there will
>>> be no need to update the python module if the protocol changes.
>>
>> The problem is live pause.  Because you need to ring buffer for it.  This
>> probably would not work.
> Yep, realise that but I need to know how to 'tune' the HDHomeRun.
>
>>> On the live pause plugin side of things, I've got pause working with
>>> DVBStreamer again (haven't check CPU usage yet) but there are still a few
>>> kinks to work out. This time I am going to try and support Mplayer, Xine
>>> and VLC (as this hopefully will allow SVG to be used to render the OSD).
>>
>> I checked out DVBStreamer and wanted to code a HDHomeRun version (which I
>> will be doing).  The problem is the code relies on mmap() for the ring
>> buffer and I want to do HD streams.  At 1080i, I get 8GB/hour which the
>> existing ring buffer code will not support.  It needs to be recoded to
>> only use the filesystem interface (seek, read, write) in order to support
>> those file sizes.  I would like a minimum of an hour.  So, my first task
>> is to recode the ring buffer for large file support.  I will probably
>> create a separate plugin for the HDHomeRun interface rather then try to
>> shoehorn it into the DVBStreamer code.  I'll post the result when I finish
>> it.
> Again, yep I've already got a semi working generic livepause plugin, initial 
> with DVBStreamer report.
> I've got rid of the mmap and replaced it with a file per second, works
> much better and as you say is need for HD MPEG2 streams.
>
> If you are interested I can send you what I've got so far, I've managed
> to code a simple HDHomeRun controller for the generic plugin as well so
> as long as you set your VideoGroups to 'hdhomerun' it hopefully will
> work for you as the DVBStreamer works for me. But as I say this is still
> work in progress.

Cool!!! Yes, please send me what you got.  I'll hopefully give 
reasonable feedback, code, etc.

Thanks!
m@

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread Adam Charrett
On Tue, 2007-10-16 at 08:43 -0700, Matt Gerassimoff wrote:
> > Great example what I need, definitely the simplest options as there will
> > be no need to update the python module if the protocol changes.
> 
> The problem is live pause.  Because you need to ring buffer for it.  This
> probably would not work.
Yep, realise that but I need to know how to 'tune' the HDHomeRun.

> > On the live pause plugin side of things, I've got pause working with
> > DVBStreamer again (haven't check CPU usage yet) but there are still a few
> > kinks to work out. This time I am going to try and support Mplayer, Xine
> > and VLC (as this hopefully will allow SVG to be used to render the OSD).
> 
> I checked out DVBStreamer and wanted to code a HDHomeRun version (which I 
> will be doing).  The problem is the code relies on mmap() for the ring 
> buffer and I want to do HD streams.  At 1080i, I get 8GB/hour which the 
> existing ring buffer code will not support.  It needs to be recoded to 
> only use the filesystem interface (seek, read, write) in order to support 
> those file sizes.  I would like a minimum of an hour.  So, my first task 
> is to recode the ring buffer for large file support.  I will probably 
> create a separate plugin for the HDHomeRun interface rather then try to 
> shoehorn it into the DVBStreamer code.  I'll post the result when I finish 
> it.
Again, yep I've already got a semi working generic livepause plugin, initial 
with DVBStreamer report.
I've got rid of the mmap and replaced it with a file per second, works
much better and as you say is need for HD MPEG2 streams.

If you are interested I can send you what I've got so far, I've managed
to code a simple HDHomeRun controller for the generic plugin as well so
as long as you set your VideoGroups to 'hdhomerun' it hopefully will
work for you as the DVBStreamer works for me. But as I say this is still
work in progress.

Cheers

Adam


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread Matt Gerassimoff



On Tue, 16 Oct 2007, [EMAIL PROTECTED] wrote:

> Sorry for the rather late,

That's ok.  I was able to get it running.

> Great example what I need, definitely the simplest options as there will
> be no need to update the python module if the protocol changes.

The problem is live pause.  Because you need to ring buffer for it.  This
probably would not work.

> Hopefully you got this working, but if you haven't I suspect it is to do
> with the fact that you have spaces in your channel names, so they are
> being split into separate arguments when your script is called.

I ran "freevo tv_grab --query".  This setup the proper channel mapping.
I also had to code a better "tvrec" script to handle signle events and 
stop recording.

> On the live pause plugin side of things, I've got pause working with
> DVBStreamer again (haven't check CPU usage yet) but there are still a few
> kinks to work out. This time I am going to try and support Mplayer, Xine
> and VLC (as this hopefully will allow SVG to be used to render the OSD).

I checked out DVBStreamer and wanted to code a HDHomeRun version (which I 
will be doing).  The problem is the code relies on mmap() for the ring 
buffer and I want to do HD streams.  At 1080i, I get 8GB/hour which the 
existing ring buffer code will not support.  It needs to be recoded to 
only use the filesystem interface (seek, read, write) in order to support 
those file sizes.  I would like a minimum of an hour.  So, my first task 
is to recode the ring buffer for large file support.  I will probably 
create a separate plugin for the HDHomeRun interface rather then try to 
shoehorn it into the DVBStreamer code.  I'll post the result when I finish 
it.

Later,
M@

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Traceback in lcd.py

2007-10-16 Thread Hugo Monteiro
Hugo Monteiro wrote:
> Hello all,
>
> I'm not being able to use the lcd plugin while viewing my tv recordings. 
> I get to record tv alright but then, and only if i have the lcd plugin 
> enabled, when i go to the manage recordings option, when i try to scroll 
> up/down among the recordings, freevo crashes with the following info:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/freevo/main.py", line 288, in 
> eventhandler
> app.eventhandler(event)
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/menu.py", line 
> 570, in eventhandler
> self.refresh()
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/menu.py", line 
> 407, in refresh
> skin.draw('menu', self, self.menustack[-1])
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/main.py", 
> line 530, in draw
> a.draw(settings, object, menu, style, type, self.force_redraw)
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/area.py", 
> line 196, in draw
> self.update_content()
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/skins/main/default_areas.py",
>  
> line 179, in update_content
> p.draw((self.widget_type, self.menuw), self)
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/plugins/lcd.py", 
> line 896, in draw
> info = get_info( menu.selected, menu_info[ menu.selected.type ] )
>   File 
> "/usr/share/pycentral/python-freevo/site-packages/freevo/plugins/lcd.py", 
> line 742, in get_info
> info += l[ 1 ] % v
> TypeError: not enough arguments for format string
>
>
> Is this a bug or am i missing anything?
>
> Thanks in advance,
>
> Hugo Monteiro.
>
>   

I'm so sorry for not providing any further information. I'm using freevo 
1.7.3 in a debian etch box. I have tried to comment line 742 of lcd.py 
and freevo no longer crashes. Also i didn't see any difference in the 
LCD operation. What is that line there for?


Regards,

Hugo Monteiro.

-- 
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: [EMAIL PROTECTED]
Telefone : +351 212948300 Ext.15307

Centro de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt [EMAIL PROTECTED]

ci.fct.unl.pt:~# _


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread adam
> Just out of interest is svg rendering for OSD a completed functionality
> in VLC?
>
I believe that it is still marked as experimental, I haven't tested it yet
so it might not work. I've had a quick look at the code and the change
history for VLC and it is certainly there.

If  SVG doesn't work I might be able to subvert the logo filter :-)

Cheers

Adam


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread John Molohan
[EMAIL PROTECTED] wrote:


>
> On the live pause plugin side of things, I've got pause working with
> DVBStreamer again (haven't check CPU usage yet) but there are still a few
> kinks to work out. This time I am going to try and support Mplayer, Xine
> and VLC (as this hopefully will allow SVG to be used to render the OSD).
>
> Cheers
>
> Adam
>   
Just out of interest is svg rendering for OSD a completed functionality 
in VLC?

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HDHomeRun tuner for freevo 1.7.3

2007-10-16 Thread adam
Sorry for the rather late,

>
> Probably the easiest (best?) way is to wrap the command line application
> in a python class and use that to control the tuner(s).  As for streaming,
> it's really simple:
>
> --- python example ---
>
> import socket, sys, time
>
> seconds=60*60 # time
> filename = 'test.avi' # filename
> host='192.168.1.1'# destination host
> port=1234 # any udp port
> tuner=0   # 0 or 1
> id=0x # broadcast id, can be a hex id of indiviual hdhomerun
>
> s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> s.bind(('',port))
> os.system('hdhomerun_config %x set /tuner%d/channel %s' % (id, tuner,
> '8vsb:4'))
> os.system('hdhomerun_config %x set /tuner%d/program %s' % (id, tuner,
> '1'))
> os.system('hdhomerun_config %x set /tuner%d/target %s:%d' % (id,
> tuner,host,port))
>
> start = time.time()
> outfile = open(filename, 'wb')
>
> while time.time() - start < seconds:
>data,addr = s.recvfrom(64<<10)
>outfile.write(data)
>
> os.system('hdhomerun_config %x set /tuner%d/target none' % (id, tuner))
> s.close()
>
> --- python example ---

Great example what I need, definitely the simplest options as there will
be no need to update the python module if the protocol changes.


> TV_CHANNELS = [
>('4 KVOADT',   'KVOADT',   '8vsb 4.1'),
>('6 KUATDT',   'KUATDT',   '8vsb 6.1'),
>('6 KUATDT2',  'KUATDT2',  '8vsb 6.1'),
>('6 KUATDT3',  'KUATDT3',  '8vsb 6.1'),
>('11 KUATDT4', 'KUATDT4',  '8vsb 11.1'),
>('18 KTTUDT',  'KTTUDT',   '8vsb 18.1'),
>('27 KUASDT',  'KUASDT',   '8vsb 27.1'),
>('46 KUASDT',  'KUASDT',   '8vsb 46.1'),
>('58 KWBADT',  'KWBADT',   '8vsb 58.1'),
>('58 KWBADT2', 'KWBADT2',  '8vsb 58.2'),
> ]
>
> VCR_CMD = ('/u/tv/bin/tvrec ' +
>  'channel=%(channel)s ' +
>  'length=%(seconds)s ' +
>  'filename=%(filename)s')
>
> I created a test script:
>
> #!/bin/sh
> echo "$*" >>~/.tvrec/log
>
> And when I record a show and get this:
>
> channel=4 length=3590 filename=/media/tv/10-05_19_00_Deal_or_No_Deal.avi
>
> I thought it should be 'channel=8vsb 4.1'.
>
> Any ideas to what I'm doing wrong?

Hopefully you got this working, but if you haven't I suspect it is to do
with the fact that you have spaces in your channel names, so they are
being split into separate arguments when your script is called.

On the live pause plugin side of things, I've got pause working with
DVBStreamer again (haven't check CPU usage yet) but there are still a few
kinks to work out. This time I am going to try and support Mplayer, Xine
and VLC (as this hopefully will allow SVG to be used to render the OSD).

Cheers

Adam


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users