Re: [Freevo-users] Streaming Audio Oddities

2010-05-26 Thread Duncan Webb
On 19/05/2010 08:37, James Trietsch wrote:
> I've got two for anyone who has a little spare time (yeah I know... who 
> exactly has any spare time?)
>
> The first is the one that I'd like to see solved the most. I'm a big fan of 
> DI.fm and Sky.fm and long ago set up the webradio.fxd to point to many of 
> their channels. I used the 24kbps AACplus streams because they were low 
> bandwidth but sounded perfectly fine to me. About a month ago, they upgraded 
> the streams first to 32kbps, then 40kbps. And now Freevo won't play the 
> streams anymore.
>
> I did my research and found out that MPlayer is hanging up trying to figure 
> out what type of decoder to use for the stream. It will decode the ICY info 
> and display the current song, fill the cache to about 12% and then stall, 
> searching through all the different decoder modules for something that works 
> (and often going for MPEG video, spewing out plenty of errors and warnings). 
> If I force the decoder with -demuxer aac, it lights up and plays without a 
> hitch. Of course if I put that as part of the command line permanently, it 
> breaks trying to play anything other than AAC audio.
>

You can try adding a MPLAYER_ARGS['type'] = ... to local_conf.py. The 
trick is to determine what 'type' is, I usually add some prints to the 
player.

What does kaa's mminfo say about the stream?

> Anyone have any ideas on this one?
>
> The second involves the podcast from National Public Radio's "Wait Wait... 
> Don't Tell Me" show. It's the weirdest thing, without fail the playback stops 
> about 10 minutes into the program. The exact time varies, but here's the 
> truly bizarre part: It _always_ stops right on the break between segments of 
> the show, as if there was some kind of metadata tag inside the MPEG 
> indicating a break. If I restart the program (playing from the now-downloaded 
> file) it plays without any issues, start to finish. I've also noticed that 
> the displayed data is different from the first play and subsequent plays (I 
> think the genre changes, among other things).
>

One thing that you need for mplayer and streams is a 0 size cache 
buffer, to prevent mplayer reading caching the stream and stopping at 
the end of the cache.

It may be possible to use the mplayer_options in the fxd file. Not tried 
this for audio but works for video.

Duncan

--

___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] IMDB lookup

2010-05-17 Thread Duncan Webb
On 26/04/2010 09:07, Paul Harper wrote:
> Hi,
>
> After a couple of solid weekends I have just about everything working how I 
> want it, but the IMDB plugin that I just can't work out. I'm using Freevo 
> 1.9.0 on Ubuntu Karmic Koala, I have patched the IMDB plugin and am using 
> html5lib as described elsewhere on these pages. This allowed me to progress 
> to the point of being able to choose from a list of films to parse 
> information from. After selecting the correct film and getting a message 
> along the lines of 'retrieving information' Freevo crashes with this message:
>
> event 'MENU_SELECT' crashed
>
> In the terminal it says:
>
> Traceback (most recent call last):
>File "/usr/lib/python2.6/dist-packages/freevo/main.py", line 306, in 
> eventhandler
>  app.eventhandler(event)
>File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler
>  self._handle_play_item(menu, event)
>File "/usr/share/pyshared/freevo/menu.py", line 654, in _handle_play_item
>  action(arg=arg, menuw=self)
>File "/usr/share/pyshared/freevo/menu.py", line 106, in select
>  self.function(arg=self.arg, menuw=menuw)
>File "/usr/share/pyshared/freevo/video/plugins/imdb.py", line 227, in 
> imdb_create_fxd
>  fxd.getIMDBid(arg[0], self.season, self.episode)
>File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 308, in getIMDBid
>  self.parse_data(idpage, id, episodeid, season, episode)
>File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 431, in parse_data
>  soup.feed(r.read())
> TypeError: 'NoneType' object is not callable
>
> and from the log file:
>
> 2010-04-26 03:42:06,750 DEBUGfxdimdb.py (273): id=0930083 season= episode=
> 2010-04-26 03:42:06,750 DEBUGfxdimdb.py (279): 
> url=u'http://www.imdb.com/title/tt0930083/episodes'
> 2010-04-26 03:42:07,945 DEBUGfxdimdb.py (879): id=u'0930083'
> 2010-04-26 03:42:07,946 DEBUGfxdimdb.py (292): 
> url=u'http://www.imdb.com/title/tt0930083'
> 2010-04-26 03:42:10,930 DEBUGfxdimdb.py (412): items=rating:7.6/10 (778 
> votes)
> 2010-04-26 03:42:10,930 DEBUGfxdimdb.py (412): items=language:Japanese
> 2010-04-26 03:42:10,931 DEBUGfxdimdb.py (412): items=plot:A documentary 
> filmmaker explores seemingly unrelated paranormal incidents connected by the 
> legend of an ancient demon called the "kagutaba." |
> 2010-04-26 03:42:10,931 DEBUGfxdimdb.py (412): items=tagline:Everybody 
> died.
> 2010-04-26 03:42:10,934 DEBUGfxdimdb.py (412): items=release_date:20 
> August 2005 (Japan)
> 2010-04-26 03:42:10,934 DEBUGfxdimdb.py (412): items=title:Noroi
> 2010-04-26 03:42:10,935 DEBUGfxdimdb.py (412): items=plot_keywords:Demon 
> / Fake Documentary / 2000s / Dam / Pigeon
> 2010-04-26 03:42:10,935 DEBUGfxdimdb.py (412): items=country:Japan
> 2010-04-26 03:42:10,936 DEBUGfxdimdb.py (412): items=aspect_ratio:1.85 : 1
> 2010-04-26 03:42:10,936 DEBUGfxdimdb.py (412): items=also_known_as:"Noroi 
> the Curse" - Hong Kong
> 2010-04-26 03:42:10,937 DEBUGfxdimdb.py (412): items=year:2005
> 2010-04-26 03:42:10,937 DEBUGfxdimdb.py (412): items=genre:Horror
> 2010-04-26 03:42:10,937 DEBUGfxdimdb.py (412): items=runtime:Japan:115 min
> 2010-04-26 03:42:10,938 DEBUGfxdimdb.py (413): id="0930083", dvd="0"
> 2010-04-26 03:42:10,938 DEBUGfxdimdb.py (414): {'rating': u'7.6/10 (778 
> votes)', u'language': u'Japanese', 'plot': u'A documentary filmmaker explores 
> seemingly unrelated paranormal incidents connected by the legend of an 
> ancient demon called the "kagutaba." |', 'tagline': u'Everybody died.', 
> u'release_date': u'20 August 2005 (Japan)', 'title': u'Noroi', 
> u'plot_keywords': u'Demon / Fake Documentary / 2000s / Dam / Pigeon', 
> u'country': u'Japan', u'aspect_ratio': u'1.85 : 1', u'also_known_as': 
> u'"Noroi the Curse" - Hong Kong', 'year': u'2005', 'genre': u'Horror', 
> 'runtime': u'Japan:115 min'}
> 2010-04-26 03:42:14,393 DEBUGfxdimdb.py (426): 
> url="http://us.imdb.com/title/tt0930083/dvd";
> Traceback (most recent call last):
>File "/usr/lib/python2.6/dist-packages/freevo/main.py", line 306, in 
> eventhandler
>  app.eventhandler(event)
>File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler
>  self._handle_play_item(menu, event)
>File "/usr/share/pyshared/freevo/menu.py", line 654, in _handle_play_item
>  action(arg=arg, menuw=self)
>File "/usr/share/pyshared/freevo/menu.py", line 106, in select
>  self.function(arg=self.arg, menuw=menuw)
>File "/usr/share/pyshared/freevo/video/plugins/imdb.py", line 227, in 
> imdb_create_fxd
>  fxd.getIMDBid(arg[0], self.season, self.episode)
>File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 308, in getIMDBid
>  self.parse_data(idpage, id, episodeid, season, episode)
>File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 431, in parse_data
>  soup.feed(r.read())
> TypeError: 'NoneType' object is not callable
>
> Can anyone help? I

Re: [Freevo-users] [Debian Lenny] Youtube plugin crashes

2010-05-04 Thread Duncan Webb
On 13/02/2010 23:56, leandro noferini wrote:
> Duncan Webb ha scritto:
>

> 2010-02-13 23:51:38,785 INFO mplayer.py (164): MPLAYER_ARGS not defined 
> for 'video', using default
> Traceback (most recent call last):
[snip]
>File "/usr/share/pyshared/freevo/video/plugins/mplayer.py", line 167, in 
> play
>  _debug_('mode=%s args=%s'% (mode, config.MPLAYER_ARGS[mode]))
>

Very late reply, sorry.

The problem is clear, you need MPLAYER_ARGS['video'] defined. Or remove 
the _debug_ line.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] [Debian Lenny] Youtube plugin crashes

2010-02-05 Thread Duncan Webb

leandro noferini wrote:

Ciao a tutti,

I am  trying to activate youtube  plugin in my  freevo (1.9.0-3.1 debian
package from lenny) but I get this error and then a crash

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/freevo/main.py", line 306, in 
eventhandler
app.eventhandler(event)
  File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler
self._handle_play_item(menu, event)
  File "/usr/share/pyshared/freevo/menu.py", line 654, in _handle_play_item
action(arg=arg, menuw=self)
  File "/usr/share/pyshared/freevo/menu.py", line 106, in select
self.function(arg=self.arg, menuw=menuw)
  File "/usr/share/pyshared/freevo/video/plugins/youtube.py", line 226, in 
watchvideo
playvideo2 = YoutubeVideoItem(_('bla'), stream, self)
UnboundLocalError: local variable 'stream' referenced before assignment
  


It's a problem of the plug-in not handling a failed download of the video.

Upgrading your youtube downloader will help, before you do so can you 
try this patch to see if the error handling has improved?


Thanks
Duncan
Index: src/video/plugins/youtube.py
===
--- src/video/plugins/youtube.py(revision 11653)
+++ src/video/plugins/youtube.py(working copy)
@@ -215,6 +215,7 @@
 
 def watchvideo(self, arg=None, menuw=None):
 """Watch it"""
+stream = None
 cmd = config.YOUTUBE_DL + ' -g "http://www.youtube.com/watch?v=' + 
arg[1] + '"'
 proceso = Popen(cmd, shell=True, bufsize=1024, stdout=subprocess.PIPE, 
universal_newlines=1)
 follow = proceso.stdout
@@ -222,6 +223,9 @@
 mess = follow.readline()
 if mess:
 stream =  mess.strip()
+if stream is None:
+_debug_("Cannot process command '%s'" % (cmd,), DWARNING)
+return
 # Create a fake VideoItem
 playvideo2 = YoutubeVideoItem(_('bla'), stream, self)
 playvideo2.player_rating = 10
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] OVERLAY_DIR and freevo cache --www-thumbs

2010-01-28 Thread Duncan Webb
Anders Eriksson wrote:
> dun...@freevo.org said:
>>> which has the overlay related stuff commented out. Is this a typo, or 
>>> made deliberately because it's known to be broken somehow?
>> It was done deliberately for the mkimagemrss helper. This allows  
>> cooliris to work with freevo. 
> 
> What's the expected long term solution? Deprecating OVERLAY_DIR? fixing
> cooliris (whatever that is)? Is the current situation documented anywhere?
> 
> I do miss the ability to mount my photos read-only. I kind of value them!

Sorry about this, I didn't realise that mounting photos read-only would 
not work correctly any more.

Will you tell me exactly what you are doing with the photos, ideally so 
I can test the problem as you use Freevo. So what I need to know is how 
do you mount the photos, from a stick, cd, etc. How do you view them 
from the "View Images" or from the Web page.

If you also get time, please enter a bug report at: 
https://sourceforge.net/tracker/?func=add&group_id=46652&atid=446895

Thanks,
Duncan

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] database disk image is malformed

2010-01-25 Thread Duncan Webb
mclu...@wp.pl wrote:
> Hello
> I have problem during 'freevo cache' executing
> Everything worked fine until whole free space of system partition has 
> been utilized.
> I save partition image and move it to bigger drive (then I had to use 
> fsck to fix free space problem).
>>From that moment everything seem to work fine, but every time I need to 
> issue cache command, I get this:
> 
> creating audio metadata... done
> creating playlist metadata
> bad path: /etc/freevo/webradio.fxddone
> checking database.
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/freevo/helpers/cache.py", line 
> 587, in 
> create_metadata()
>   File "/usr/lib/python2.6/dist-packages/freevo/helpers/cache.py", line 
> 388, in create_metadata
> util.extendedmeta.addPathDB(dir[1], dir[0], verbose=False)
>   File "/usr/lib/python2.6/dist-packages/freevo/util/extendedmeta.py", 
> line 83, in addPathDB
> for row in db.runQuery('SELECT path, filename FROM music'):
>   File "/usr/lib/python2.6/dist-packages/freevo/util/dbutil.py", line 94, 
> in runQuery
> self.cursor.execute(query)
>   File "/usr/lib/python2.6/dist-packages/sqlite/main.py", line 244, in 
> execute
> self.rs = self.con.db.execute(SQL)
> _sqlite.DatabaseError: database disk image is malformed
> 
> How can I fix this?

delete the .db file and (/var/cache/freevo/freevo.db*) and during the 
next cache it will be rebuilt. Anything in /var/cache/freevo/ can be 
safely removed.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo -fs not working any more

2010-01-21 Thread Duncan Webb
Bernard Mentink wrote:
> 
> 
> On Wed, Jan 20, 2010 at 7:38 AM, Bernard Mentink  > wrote:
> 
> Hi Duncan, 
> 
> Ok, then two things come to mind.
> 
> a) Why did "freevo -fs" work with the intel graphics?
> b) Have you changed the syntax, and not updated the wiki? The wiki
> here -> http://doc.freevo.org/QuickStartGuide says "freevo -fs",
> probably other wiki's as well.

Difficult one as with any change as this is version specific so upto 1.9 
it is -fs and later it is -f

> An update:
> 
> With freevo.conf video setting set to X11, I get the behavior of black 
> screen and 1 second of sound when trying to watch TV (or any video).
> If I change the video to XV then that fixes sound, but still a black screen.
> 
> Playing mp3's etc works fine with both X11 or or XV setting, so the 
> issue is purely video (.. even though there is a sound symptom)
> 
> Duncan, any idea what to try next.


You need to remove freevo from the possible problems by running Xorg and 
typing the command line in to an xterm window. The command line will be 
in the main*log files when debug is active. This procedure is standard 
problem solving technique and it should reveal what the problems are.

In the past the ATI drivers were pretty poor but I've no experience with 
later drivers, maybe they are better since AMD took over ATI.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo -fs not working any more

2010-01-19 Thread Duncan Webb
Bernard Mentink wrote:
> Hi All,
> 
> I have just put a HD4650 ATI graphics board in my media box (I had 
> previously used the onboard intel graphics).
> Freevo works fine from a window, but as it's own window manager, I now 
> have issues. When I start freevo with the -fs option from
> console F2, I get sound briefly then nothing and a black screen .. it 
> used to work fine with the intel graphics.
> 
> The new graphics adapter works fine, I am using the latest drivers and 
> mesa libs and get a glxgears rate of 2400fps.
> OpenGL works fine.
> 
> Does anyone know what the issue is, I have searched the logs and can 
> find nothing ..


Try freevo --help as it will show you that the option is -f

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Generating thumbnails

2010-01-18 Thread Duncan Webb
On 13/01/2010 18:39, John Molohan said the following:
> Duncan Webb wrote:
>> Ruben wrote:
>>
>>   
>>> Thanks Evan, I could finally put the right command line arguments 
>>> checking the source.
>>>  
>>> I'll try to use what you say.
>>> 
>> Did you mean the following?
>> freevo cache --video-thumbs --recursive /home/freevo/video
>>
>> All helpers have help but getting it is not that obvious the trick is to 
>> tell freevo not to process the --help option but to pass it on; This is 
>> archived by using a double-dash so:
>> # freevo cache -- --help
>>
>> You will see similar command line options with X.
>>
>> Duncan
>>   
> This seems like really bizarre behaviour and I doubt anyone would work 
> that out. Is there no easy way around it?


No. The --help option is taken by the optparse modules in the freevo 
script and cannot be passed on. The -- option tells optparse to stop 
processing arguments, this allows the --help option to be passed on.

So:
freevo --help gives the help from the freevo script
freevo cache -- --help gives the help from the help script.

Duncan


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Photos up-down

2010-01-18 Thread Duncan Webb
On 04/01/2010 12:30, John Molohan said the following:
> leandro noferini wrote:
>   
>> Ciao a tutti,
>>
>> if I lok  at photos taken in portrait mode with  freevo they appear head
>> down; the other photos look fine.
>>
>> Always freevo 1.8.1 from debian stable.
>>   
>> 
> There's an option in local-conf.py for changing this. Not sure what it's 
> called off the top of my head but a search through should find it, it's 
> probably something like reverse_image_orientation.
>   

IMAGEVIEWER_REVERSED_IMAGES, should have been in the 
local_conf.py.example but got missed.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo-users Digest, Vol 44, Issue 6

2010-01-18 Thread Duncan Webb
On 03/01/2010 23:59, Spart34 said the following:
> 
> Date: Thu, 31 Dec 2009 18:45:48 +
> From: John Molohan mailto:john.molo...@gcd.ie>>
> Subject: Re: [Freevo-users] problem with recordserver : big files
> To: freevo-users@lists.sourceforge.net
> 
> Message-ID: <4b3cf15c.90...@gcd.ie >
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Spart34 wrote:
>  > Hello,
>  >
>  > I did the upgrade to 1.9.0 freevo.
>  > But i have a problem with freevo when recording TV programs.
>  > The recording works but do not stop and get a file from 30 to 40 GB
>  > for a period of several hours.
>  > I tried the solution mentioned in the post
>  >
>  > [Freevo-users] Recordings do not stop
>  > From: Jon Morris  - 2009-03-10 03:10
>  >
>  > but it did not work.
>  >
>  > Have you a track that would allow me to find a solution?
>  >
>  > Thank you in advance for your answers.
>  >
>  >
>  > Spart34
> Have you turned on debugging and checked your logs to see what the
> recordserver is saying when it tries to stop the recording? What
> recording plugin are you using, might help narrow it down?
> 
> John
> 
> Hello John,
> 
> Yes i've turned on debugging but i obtains the recordserver.log in join 
> file and many files mplayer-stderr-1000-X.log or 
> mplayer-stdout-1000-.log.
> I'm using the default recording plugin "tv.generic_record".
> 
> I join you my local_conf.py

Please see the bug report 
https://sourceforge.net/tracker/?func=detail&aid=2896479&group_id=46652&atid=446895

Since the crash is in the post-processing thread this means that the 
recording has finished correctly.

For the time being it is best to remove TV_REENCODE from local_conf.py 
as this is causing a crash. Plus the code for the encoding server has 
not been updated.

BTW you need to clean up you local_conf.py a bit as it is a bit out of date.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] install on USB, any issues?

2010-01-18 Thread Duncan Webb
On 28/12/2009 09:59, Francisco Eduardo Álvarez Solano said the following:
> 
> I noticed that the wiki page on usb installs refers ubuntu 8.10 and I
> find elsewhere that since then "things have changed".  Should I expect
> any issues if I simply install Ubuntu 9.10 onto a USB stick?
> 
> 
> Although I have a HD based install, Ubuntu 9.10 with Freevo 1.9 from 
> Ubuntu repositories work for me perfectly. The only issue I've noticed 
> migrating from early versions of Freevo to newer ones is that the photo 
> viewer uses a lot of memory and takes a lot of time to show thumbnails 
> (at least since Freevo 1.8.3).

freevo cache does allow you to build images about the size that they 
will be displayed, this make the image view run faster and use less 
memory. This is the --www-thumbs option.

Don't know why more memory is used with kaa.imlib2 that by PIL.

Duncan



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] OVERLAY_DIR and freevo cache --www-thumbs

2010-01-18 Thread Duncan Webb
On 03/12/2009 16:25, Anders Eriksson said the following:
> 
> Using freevo 1.9.0, I can't get cached www-thumbnails to be in the 
> OVERLAY_DIR.
>  
> 
> 
> 
> fre...@tv ~ $ freevo cache -- --help
> Usage: 
> 
> Freevo Cache helper to delete unused cache entries and to cache all files in
> your data directories.
> 
> If the --rebuild option is given, Freevo will delete the cache first to 
> rebuild
> the cache from start. Caches from discs won't be affected
> 
> --www-thumbs [ --recursive ] [ --directory=DIR ] will generate image 
> thumbnails
> 
> --video-thumbs [ --recursive ] [ --directory=DIR ] will generate video 
> thumbnails
> 
> --cropdetect [ --recursive ] [ --directory=DIR ] will generate mplayer crop 
> options
> 
> The directory option can be specified more than once, one per directory of 
> file.
> 
> WARNING:
> 
> Caching needs a lot free space in OVERLAY_DIR. The space is also needed when
> Freevo generates the files during run time. Image caching is the worst. So 
> make
> sure you have several hundred MB free!
> OVERLAY_DIR is set to /home/freevo/cache/vfs
> 
> ^^They should go to /home/frevo/cache/vfs !!!
> 
> 
> fre...@tv ~ $ freevo cache --www-thumbs  --rebuild   --recursive
> checking web-server thumbnails..
> 403 files
>  1/403  /media/images/foo/keb15.png
> Made image '/media/images/foo/.thumbs/keb15.png' @ 256 -> (256, 182)
> 
> ... but end up as in-tree subdirectories.
> 
> 
> Looking at the source, it seems to boil down to this function:
> 
> 
> def www_image_path(filename, subdir='.thumbs'):
> """
> returns the path to the thumbnail image for a given filename
> """
> dirname = os.path.dirname(filename)
> file_base, file_extn = os.path.splitext(filename)
> file_extn = file_extn.lower()
> if file_extn == ".gif":
> file_extn = ".jpg"
> # the filename extension needs to be lowercase for imlib2 but we need to
> # keep the original filename for cache to be able to clean the files
> imagename = os.path.basename(file_base).lower() + file_extn
> #imagepath = vfs.getwwwoverlay(imagename)
> imagepath = os.path.join(dirname, subdir, imagename)
> return imagepath
> 
> 
> which has the overlay related stuff commented out. Is this a typo, or 
> made deliberately because it's known to be broken somehow?

It was done deliberately for the mkimagemrss helper. This allows 
cooliris to work with freevo.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Latest svn no DVD/CD mounting

2010-01-18 Thread Duncan Webb
On 05/12/2009 19:22, John Molohan said the following:
> Bernard Mentink wrote:
>> A stupid question, and I'm sure you've covered this but I'll check
>> all the same I had a very similar problem when I re-installed
>> kaa from svn rather than my pre-compiled package. It turned out I
>> didn't have the libdvdcss library installed, and I'd missed the
>> compile line warning that I wouldn't get dvdcss support when I
>> build kaa
>>
>> This resulted in mminfo being unable to figure out that it was a
>> film dvd, and it tries to mount the disk rather than playing it.
>>
>> You can check this by running:
>>
>> mminfo -d 2 /dev/dvd
>>
>> If I remember correctly the debug output will say it doesn't have
>> css support if you have the same issue as I did.
>>
>>
>>
>> Hi Stephen,
>>
>> Yes libdvdcss is installed. I tried another dvd and that worked, it 
>> seems this dvd is a problem.
>>
>> mminfo on the problem dvd is:
>>
>> [r...@tv bmentink]# mminfo -d 2 /dev/sr0
>> setting to log level 2
>> DEBUG factory(283): Trying audio/cd
>> DEBUG factory(283): Trying video/dvd
>> DEBUG factory(283): Trying video/vcd
>> DEBUG factory(283): Trying cd/unknown
>> /dev/sr0: unable to identify file
>>
>> However, VLC will play it fine  go figure ..
>>
>> Cheers,
>> Bernie
>
> Jason or Dischi might be interested in this if you want to post to the 
> devel list.


More than likely the DVD has a copy protection system which prevents it 
playing correctly. Try using other tools like lsdvd to see if the disk 
really has a problem or if it is kaa.metadata.

Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Problems with IMDB lookup

2010-01-18 Thread Duncan Webb
On 14/12/2009 18:47, bret clark said the following:
> I'm having problems with IMDB on the latest version of Freevo, I'm 
> getting nothing back with all my movies that I know once worked. Has 
> anyone else seen this problem?

See:
http://sourceforge.net/tracker/index.php?func=detail&aid=2924872&group_id=46652&atid=446895
 


Duncan

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Generating thumbnails

2010-01-18 Thread Duncan Webb
On 13/01/2010 18:39, John Molohan said the following:
> Duncan Webb wrote:
>> Ruben wrote:
>>
>>   
>>> Thanks Evan, I could finally put the right command line arguments 
>>> checking the source.
>>>  
>>> I'll try to use what you say.
>>> 
>> Did you mean the following?
>> freevo cache --video-thumbs --recursive /home/freevo/video
>>
>> All helpers have help but getting it is not that obvious the trick is to 
>> tell freevo not to process the --help option but to pass it on; This is 
>> archived by using a double-dash so:
>> # freevo cache -- --help
>>
>> You will see similar command line options with X.
>>
>> Duncan
>>   
> This seems like really bizarre behaviour and I doubt anyone would work 
> that out. Is there no easy way around it?

No

Duncan


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] PyLirc problem

2010-01-13 Thread Duncan Webb
ilan barak wrote:
> I need some help:
> 
> PyLirc error
> 
> I get this message when launching Freevo
> 
> Error: VIDEO_SHOW_DATA_DIR not found
> freevo: could not connect to socket
> freevo: Connection refused
> WARNING: Could not initialize PyLirc!
> version: 1.8.4 r11622
> app= context='menu'
> Freevo 1.8.4 r11622 ready
> 
> The system is Suse 11.1, compiled from source
> uname -a
> Linux HTPC 2.6.31.5-ilancomp3 #1 SMP Fri Nov 6 16:45:17 IST 2009 i686 
> athlon i386 GNU/Linux
> 
> ls /dev/lirc*
> /dev/lirc  /dev/lirc0  /dev/lirc1  /dev/lircd  /dev/lircd1  /dev/lircm
> 
> irw /dev/lircd work flawlessly
> 
> any suggestions?

I guess that the lirc daemon is not running. It the daemon is not 
running you will get: connect: Connection refused.

An easy test that can be used for all sort of simple problems is to use 
python in the freevo environment, like

# freevo prompt
Python 2.6.1 (r261:67515, Jan 24 2009, 14:48:40)
[GCC 4.1.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import pylirc
 >>> import config
 >>> pylirc.init('freevo', config.LIRCRC)
freevo: could not connect to socket
freevo: Connection refused
Traceback (most recent call last):
   File "", line 1, in 
RuntimeError: Unable to initialize lirc!

# start the lircd and try again.
 >>> pylirc.init('freevo', config.LIRCRC)
3
 >>>


Duncan

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Generating thumbnails

2010-01-13 Thread Duncan Webb
Ruben wrote:

> Thanks Evan, I could finally put the right command line arguments 
> checking the source.
>  
> I'll try to use what you say.

Did you mean the following?
freevo cache --video-thumbs --recursive /home/freevo/video

All helpers have help but getting it is not that obvious the trick is to 
tell freevo not to process the --help option but to pass it on; This is 
archived by using a double-dash so:
# freevo cache -- --help

You will see similar command line options with X.

Duncan


> 2009/11/17 Evan Hisey mailto:ehi...@gmail.com>>
>
> 2009/11/12 Ruben mailto:rtmo...@gmail.com>>:
> > Hi there,
> >
> > I just installed freevo and I have a basic question:
> >
> > Does freevo generates the video thumbnails from a "screenshot"
> of the video
> > file or it just does displays an image stored in the folder?
> >
> > I'm can't get it done by:
> >
> > $ freevo cache --rebuild --thumbnail --recursive /home/freevo/video
> >
> > ---
>  You can also set freevo to automatically build thumbnails when
> entering a directory. I believe the setting is CACHE_IMAGES = 1. You
> can also set this from inside the Freevo GUI from the display options.
>
> Evan
>
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports
> 2008 30-Day
> trial. Simplify your report design, integration and deployment -
> and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
>
>
>
> -- 
> Ruben Tato
> --
> 
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> 
>
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Recordserver not working ..

2010-01-13 Thread Duncan Webb
Adam Charrett wrote:
> On Thu, 2009-11-26 at 08:41 +1300, Bernard Mentink wrote:
>>
>>
>> I have found the issue. I am using the latest svn freevo.1.x source
>> tree ..itt has the new OSD stuff.
>>
>>
>> When you do a recording that is in the future you get an "OK" "CANCEL"
>> dialog. The button labels are reversed, i.e cancel selects it for
>> recording.
>>
>>
>> I guess this should be reported as a bug ..
> 
> Yep it might remind me to put the patch I've had in my tree for a while
> on the bug tracker :-P


Did you get round to doing this?

Duncan

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] lowercase input for TextEntryScreen

2010-01-13 Thread Duncan Webb
XiouXin Huang wrote:
> Hi List,
>
> I'm trying to utilize the TextEntryScreen widget,
> this interface is elegant and easy to use for remote,
> but I cannot find a way to input lowercased alphas,
> can anyone show me the tips?
> thx!
>   

Not possible without changing the code.

Duncan

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Encoding video does not start (mplayer problem)

2009-11-09 Thread Duncan Webb

Han Hartgers wrote:

Dear all,

I recently upgraded to the SVN version of freevo and I got a problem
with the encoding server, which I luckily could solve.  The problem
has not much to do with freevo but is an mplayer problem.

The freevo version is: 11634 but the problem starts from version 1129
The mplayer version is: MPlayer 1.0rc2-4.2.4 (C) 2000-2007 MPlayer Team

mplayer is not dealing correctly with the following command that the
encoder server is using to detect the crop area:
/usr/bin/mplayer -vf cropdetect=30 -nosound -vo null -fps 540 -demuxer
lavf -sstep 71 /freevo/recording/10-14-09_22:45.mpeg
This command starts of good but it results in an endless loop at the
end of the file.
My encoding server log file is filled with: 2009-10-28 22:12:48,806
DEBUGencodingcore.py (971): line='[CROP] Crop area: X: 8..709  Y:
0..479  (-vf crop=688:480:16:0).'

On the user interface is this showing as an endless  "Please wait,
analyzing video..." dialogue in the user inteface.

The problem seams to be the "-demuxer lavf" part. When I delete this
in the encodingservermain.py  filer are things working again.

I think that this is mainly a problem of my version of mplayer, but I
wanted to know:
A. What is the function of "-demuxer lavf"? Am I getting a new problem
when I delete this?
B. Does more people have this problem?   Should I make a patch out of this?


I had a similar problem using the lavf demuxer, it didn't work with all 
media types, I found a reliable method in the mencoder lists and a patch 
for this is attached.


Duncan
Index: src/encodingcore.py
===
--- src/encodingcore.py (revision 11608)
+++ src/encodingcore.py (working copy)
@@ -33,7 +33,7 @@
 """
 
 #Import statements
-from threading import Thread
+from threading import Thread, Lock
 from time import sleep
 import sys, os, re #, ConfigParser, copy
 from subprocess import Popen, PIPE
@@ -442,7 +442,7 @@
 id_pattern = re.compile('^(ID_.*)=(.*)')
 id_info = {}
 
-for line in lines:
+for line in [l.rstrip() for l in lines]:
 id_match = id_pattern.match(line)
 if id_match:
 id_info[id_match.groups()[0]] = id_match.groups()[1]
@@ -522,6 +522,7 @@
 pass our ideal values back to the client which can verify them visually
 if needed.
 """
+self.crop_results = {}
 if self.length is None:
 self._identify()
 self._wait()
@@ -544,12 +545,21 @@
 if sstep > 0:
 arguments += [ '-demuxer', 'lavf', '-sstep', str(sstep) ]
 
-if self.titlenum:
-arguments += [ '-dvd-device', self.source, 'dvd://%s' % 
self.titlenum ]
+mid_length = int(self.length) / 2
+if self.length > 90:
+positions = [mid_length - 35, mid_length, mid_length + 35]
 else:
-arguments += [ self.source ]
+positions = [mid_length]
+for pos in positions:
+arguments = self.timeslice_mencoder + [ '-ss', '%s' % pos, 
'-identify', '-frames', '20', '-vo', 'md5sum',
+'-ao', 'null', '-nocache', '-speed', '100', '-noframedrop', 
'-vf', 'cropdetect=20:16' ]
+if self.titlenum:
+arguments += [ '-dvd-device', self.source, 'dvd://%s' % 
self.titlenum ]
+else:
+arguments += [ self.source ]
 
-self._run(mplayer, arguments, self._cropdetect_parse, None, 0, None)
+self._run(mplayer, arguments, self._cropdetect_parse, None, 0, 
None)
+self._wait()
 
 
 def _cropdetect_parse(self, lines, data): #seek to remove data
@@ -570,9 +580,6 @@
 re_ana1 = re.compile('ASPECT', re.IGNORECASE)
 re_ana2 = re.compile('1.33')
 re_ana3 = re.compile('0.00')
-crop_options = {}
-#common_crop = ''
-#cc_hits = 2
 
 foundrate = False
 
@@ -581,21 +588,18 @@
 self.finishedanalyze = True
 return
 crop = 
str(self.info.video[0].width)+':'+str(self.info.video[0].height)+':0:0'
-crop_options[crop] = 1
+self.crop_results[crop] = 1
 except Exception, why:
 pass
-for line in lines:
-line = line.strip('\n')
+for line in [l.rstrip() for l in lines]:
 if re_crop.search(line):
 crop = re_crop.search(line).group(1)
-try:
-crop_options[crop] = crop_options[crop] + 1
-#if crop_options[crop] > cc_hits:
-#common_crop = crop
-except:
-crop_options[crop] = 1
+if crop in self.crop_results:
+self.crop_results[crop] += 1
+else:
+self.crop_results[crop] = 1
 
-#try to see if this is a PAL DVD, an NTSC Progressive DVD, ar an 
NTSC DVD
+#try 

Re: [Freevo-users] Freevo 1.8.3 remote record server not working?

2009-10-14 Thread Duncan Webb
Stephen Rowles wrote:
> Stephen Rowles wrote:
>> Hi,
>>
>> I'm still in the rather slow process of moving my working freevo install 
>> over to a new machine. However I am trying to do a backend / frontend 
>> split and want to run the record server on my server box, while my 
>> freevo front end simply talks to it.
>>
>> I have set the following sent on my "client" box that is plugged into 
>> the TV:
>>
>> RECORDSERVER_IP = '192.168.1.100'
>> RECORDSERVER_PORT = 18001
>>
>> And the record server is running with freevo on my server box, and I 
>> know it is running as TV recorded last night ;)
>>
>> I've opened a hole in the firewall (for all traffic from the front end 
>> box) but I get the following exception when I enter the TV menus. No 
>> recordings show and I cannot view the favorites etc.
>>
>> Traceback (most recent call last):
>>File 
>> "/usr/lib/python2.6/site-packages/freevo/skins/main/info_area.py", line 
>> 100, in update_content
>>  self.sellist = self.eval_expressions(self.list)
>>File 
>> "/usr/lib/python2.6/site-packages/freevo/skins/main/info_area.py", line 
>> 271, in eval_expressions
>>  exp = eval(exp, {'attr': item.getattr}, function_calls)
>>File "", line 1, in 
>>File "/usr/lib/python2.6/site-packages/freevo/util/misc.py", line 
>> 413, in comingup
>>  (status, schedule) = RecordClient().getScheduledRecordingsNow()
>>File "/usr/lib/python2.6/site-packages/freevo/tv/record_client.py", 
>> line 235, in getScheduledRecordingsNow
>>  result = inprogress.get_result()
>> AttributeError: 'InProgress' object has no attribute 'get_result'
>>
>> Is there some settings I've missed?
>>
>> Cheers.
>>   
> To follow up, it appears to be working, but the InProgress method keeps 
> failing which messes up the display. I can schedule recordings and they 
> appear on the list but there are several errors and I keep getting the 
> crash box poping up.
> 
> I've double checked and it definitely the same version 1.8.3 on each 
> box. But the new machine in the lounge is running with python2.6 where 
> as the back end is running with 2.5. Would that make any difference?

There are two things that people generally do.

Leave old distributions around, this is easy to do and have done it
myself more than once. It is quite safe to delete the
site-package/freevo and site-packages/kaa when upgrading. With
subversion source code it is quite safe to delete the build directory.
What happens is the source goes to the build directory and then to the
site-packages.

The other problem is a mis-match of different versions. The API of kaa
packages is relatively unstable so you need to be sure that freevo and
the kaa packages match.

Duncan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] IVTV, can't get it to work for the life of me.

2009-10-12 Thread Duncan Webb
Frank [Antispam account] wrote:
>  
>
>   
>> -Oorspronkelijk bericht-
>> Van: Duncan Webb [mailto:dun...@freevo.org] 
>> Verzonden: 11 October 2009 11:36
>> Aan: freevo-users@lists.sourceforge.net
>> Onderwerp: Re: [Freevo-users] IVTV, can't get it to work for 
>> the life of me.
>>
>> Frank [Antispam account] wrote:
>> 
>>> TV_VIDEO_GROUPS = [
>>> VideoGroup(
>>> vdev=TV_DEVICE,
>>> adev=AUDIO_DEVICE,
>>> input_type="tuner 1",
>>> input_num=0,
>>> tuner_norm=CONF.tv,
>>> tuner_type='internal',
>>> tuner_chanlist=CONF.chanlist,
>>> desc="TV",
>>> group_type="ivtv",
>>> record_group='TEST'),
>>>   
>> The record_group is either None or a number. The number is 
>> the index of the VideoGroup.
>>
>> TV_VIDEO_GROUPS = [...] is a list of VideoGroup objects, 
>> index items in a list start at 0. So for this to be sensible 
>> you need to tuners (2 PVR-150 cards or 1 PVR-500 card) and 
>> set the record_group to 1.
>>
>> 
>>> VideoGroup(
>>> vdev=TV_DEVICE,
>>> adev=AUDIO_DEVICE,
>>> input_type="tuner 1",
>>> input_num=0,
>>> tuner_norm=CONF.tv,
>>> tuner_type='internal',
>>> tuner_chanlist=CONF.chanlist,
>>> desc="TV",
>>> group_type="ivtv",
>>> record_group=None),
>>>
>>> ]
>>>   
>> Anyway use "freevo vg" to generate the video groups for 
>> analogue devices.
>>
>> Duncan
>> 
>
> Just to be sure, because I don't think i understand the TV_INPUT var.
> I have a PVR250 and the following in my local_conf.py:
>
> TV_INPUT=2
>
> and
>
> TV_VIDEO_GROUPS = [
> VideoGroup(
> vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type="tuner 1",
> input_num=0,
> tuner_norm=CONF.tv,
> tuner_type='internal',
> tuner_chanlist=CONF.chanlist,
> desc="TV",
> group_type="ivtv",
> record_group='TEST'),
> VideoGroup(
> vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type="tuner 1",
> input_num=0,
> tuner_norm=CONF.tv,
> tuner_type='internal',
> tuner_chanlist=CONF.chanlist,
> desc="TV",
> group_type="ivtv",
> record_group=None),
> ]
>
>
> Do I have to change it to:
>
> TV_INPUT=0
>
> and
>
> TV_VIDEO_GROUPS = [
> VideoGroup(
> vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type="tuner 1",
> input_num=0,
> tuner_norm=CONF.tv,
> tuner_type='internal',
> tuner_chanlist=CONF.chanlist,
> desc="TV",
> group_type="ivtv",
> record_group=None),
> ]
>   

Yes and no.

No you don't need TV_INPUT. TV_INPUT is only used for the VCR_CMD in
freevo_config.py and can be overwritten in local_conf.py.

VCR_CMD = (CONF.mencoder + ' ' +
   'tv:// ' +  # New mplayer requires this.
   '-tv driver=%s:input=%d' % (TV_DRIVER, TV_INPUT) +

since you are using an ivtv card, mplayer will not work with the TV:// URI.

Yes you need one VideoGroup as you only have one TV card with a single
tuner.

Duncan


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo vg returns empty TV_VIDEO_GROUPS

2009-10-12 Thread Duncan Webb
Frank [Antispam account] wrote:
> [snip from other thread]
>  
>   
>> Anyway use "freevo vg" to generate the video groups for 
>> analogue devices.
>>
>> Duncan
>>
>> 
>
> freevo vg gives me:
>
> [r...@intranet xmltv]# freevo vg
> TV_VIDEO_GROUPS = [
> ]
>
>
> Do I miss something?
> (I'm using freevo --v: freevo-1.9.0)
>
>
>   
Should give you something like:

# freevo vg
TV_VIDEO_GROUPS = [
  VideoGroup( # tvalsa device, group 0
desc='Pinnacle PCTV Stereo (saa7134)',
group_type='tvalsa',
vdev='/dev/video0',
vvbi='/dev/vbi0',
   
adev='alsa:adevice=hw.1,0:amode=1:audiorate=32000:forceaudio:immediatemode=0',
input_type='Television',
input_num=0,
tuner_norm='PAL',
tuner_chanlist='FixMe',
record_group=None
  ),
  VideoGroup( # ivtv device, group 1
desc='Hauppauge WinTV PVR-350',
group_type='ivtv',
vdev='/dev/video4',
vvbi='/dev/vbi4',
adev=None,
input_type='Tuner 1',
input_num=0,
   
tuner_norm='SECAM-DK,SECAM-L,NTSC-M,NTSC-M-KR,NTSC,SECAM-G,PAL-M,SECAM-H,SECAM,SECAM-B,PAL-DK,SECAM-Lc,NTSC-443,PAL-I,PAL-BG,NTSC-M-JP,PAL-60,PAL-N,PAL,PAL-H,PAL-Nc',
tuner_chanlist='FixMe',
record_group=None
  ),
]

Duncan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] IVTV, can't get it to work for the life of me.

2009-10-11 Thread Duncan Webb
Frank [Antispam account] wrote:
> TV_VIDEO_GROUPS = [
> VideoGroup(
> vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type="tuner 1",
> input_num=0,
> tuner_norm=CONF.tv,
> tuner_type='internal',
> tuner_chanlist=CONF.chanlist,
> desc="TV",
> group_type="ivtv",
> record_group='TEST'),

The record_group is either None or a number. The number is the index of
the VideoGroup.

TV_VIDEO_GROUPS = [...] is a list of VideoGroup objects, index items in
a list start at 0. So for this to be sensible you need to tuners (2
PVR-150 cards or 1 PVR-500 card) and set the record_group to 1.

> VideoGroup(
> vdev=TV_DEVICE,
> adev=AUDIO_DEVICE,
> input_type="tuner 1",
> input_num=0,
> tuner_norm=CONF.tv,
> tuner_type='internal',
> tuner_chanlist=CONF.chanlist,
> desc="TV",
> group_type="ivtv",
> record_group=None),
> 
> ]


Anyway use "freevo vg" to generate the video groups for analogue devices.

Duncan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] last.fm plugin not working

2009-10-11 Thread Duncan Webb
bret clark wrote:
> Okay, just discovered last.fm website which is pretty cool, but it
> appears the plugin for freevo no longer works. Seems the url
> http://ws.audioscrobbler.com/radio that the plugin uses is no longer
> valid and that last.fm says that to use http://www.last.fm/api.  Anyone
> know how to fix this in the plugin? My programming skills are rather weak.

AFAICT it is not that easy to fix the plug-in as last.fm changed the
authorisation method and it requires a browser to log in. To make
matters worse you only have 30 tracks to play before you need to start
paying. So it has been dropped from SVN.

BTW please start a new message rather than reply to an existing message.

Duncan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Different Audio configs for music and video?

2009-10-04 Thread Duncan Webb
bret clark wrote:
> Okay, well I band-aid a fix by just editing the
> /usr/lib/python2.5/site-packages/freevo/audio/plugins/mplayer.py and
> manually adding the command I needed. Of course it will get overwritten
> when I upgrade so I'll have to keep that in mind.
> 
> Maybe having a MPLAYER_MUSIC_AO option that audio mplayer plugin read in
> would solve the problem.
> 
> 
> 
> From: bac...@hotmail.com
> To: freevo-users@lists.sourceforge.net
> Date: Sat, 3 Oct 2009 02:00:16 +
> Subject: [Freevo-users] Different Audio configs for music and video?
> 
> 
> Is it possible to run different audio out config when I'm playing music
> verses video? I use mplayer and for videos I have in my local_config.py
> file the line MPLAYER_AO_DEV_OPTS =' -ac hwac3,a52,hwdts,' which works
> great for all my movies.  But I also want to use freevo to play my SACD
> music CD's and need to use the command line config of "-ao
> alsa:device=spdif".
> 
> I need to have Freevo use one or the other depending on what I'm
> playing.  Been reading through the local_config.py file, but finding
> nothing that would let me do what I need.  Any suggestions?

You should be able to achieve this using the MPLAYER_ARGS settings, like:
MPLAYER_ARGS[''] = '-ao alsa:device=spdif'

You can replace the  for the file name extension.

Mplayer works by accepting duplicated arguments and accepting the first
one and ignoring the remaining arguments. Cant quite remember if it is
the first of the last match that is used.

Duncan

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] record audio tape MC

2009-10-04 Thread Duncan Webb
Cornelius Kölbel wrote:
> Hi lists,
> 
> what is the best way to record audio, i.e. to record old tape music
> cassets via line in to mp3?

Not something that I've tried to do and recording audio is not a
specific feature of Freevo.

I would do this using two commands, first capture the audio using
arecord and then convert the audio to mp3 using lame.

To automate the task you can use the commands plug-in.

Duncan

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] How to setup freevo with pvr150, mplayer and live pause

2009-10-04 Thread Duncan Webb
Stephan Mueller wrote:
> Hi,
> 
> I am looking for a way to setup freevo with a pvr150 and mplayer and
> have the live pause feature. Up to now I thought live pause would
> require xine with this tv card but in the thread "can't get pvr150/ivtv
> to work" Evan wrote it should be possible with mplayer, too:
> 
> * Evan Hisey  [16.09.2009]:
> 
>>> Or is there a way to get livepause with the pvr150 and mplayer?
>> I have not setup my 150 this way in a while, but yes you should be
>> able to get live pause with mplayer. The one issue I had using mplayer
>> was there was a noticable lag on my system when changing channels
> 
> How can this be done? Which live pause plugin should I use?
> 
> Any hints welcome... :)

What's important to remember is that Freevo is the glue that sticks
applications together to make a multi-media system. What this means is:
can mplayer do time-shifting? I don't think that it can so you can't use
mplayer for this.

However what is possible is that the IVTV driver writes an mpeg-ps
stream so it is possible to write the incoming mpeg stream to disk and
use mplayer (with small or no cache) to play the stream. This means
quite a bit of housekeeping of files which can be tricky.

Does this answer the question?

Duncan

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] LIrc not working in freevo, but works with irw

2009-08-12 Thread Duncan Webb
On 29/07/2009 06:52, Bernard Mentink said the following:
> 
> 
> On Wed, Jul 29, 2009 at 3:14 PM, Bernard Mentink  > wrote:
> 
> 
> 
> On Wed, Jul 29, 2009 at 9:46 AM, Jason Tackaberry  > wrote:
> 
> On Tue, 2009-07-28 at 17:15 +1200, Bernard Mentink wrote:
>  > It seems like freevo is looking at the wrong device (I have
>  > a /dev/lirc0 and a /dev/lirc_01)
>  > Is there some configuration file where I need to tell freevo the
>  > device?
> 
> Freevo (via pylirc) doesn't talk to the lirc device, but rather
> through
> lircd.  Is /dev/lircd readable by the user running freevo?
> 
> 
> Hi,
> 
> The device has 666 permissions  anything else I should check.
> 
> Cheers,
> Bernie
> 
> 
> Ok, I am in a right pickle now. I can't even run irw as a normal user, I 
> have to run it as root.
> Really confused over the permission thing.
> 
> At the moment /dev/lircd, /dev/lirc0 all have 666 permissions, all have 
> owner as root.root /usr/local/sbin/lircd  has 777 permissions owner 
> root.root...
> 
> When I try to run lircd as a normal user, I get this error:
> 
> lircd -d /dev/lirc0
> lircd: can't open or create /var/run/lirc/lircd.pid
> lircd: Permission denied
> 
> I have set /var/run/lirc and /var/run/lirc/lircd to 666 permissions as well.

/var/run/lirc is a directory so it will need the 'x' permission as well, 
  so as over kill you can set the permission to 777

> Do I have to set all the above programes to user root.myuser as well?
> 
> Any help appreciated.

One useful trick is to use strace on programs that you have no idea 
about what is going on. So for example:
strace -o lircd.strace lircd -d /dev/lirc0
will create a log called lircd.strace that you can look at to see what 
is happening.

Duncan

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] xxmc/xvmc

2009-07-26 Thread Duncan Webb
On 23/07/2009 17:34, Chris Thomas said the following:
> Ok I tried almost every possible combination to get mpeg decoding
> working in Freevo 1.8.1-3 with my CLE266 Via chip.

You can't do this:
VIDEO_PREFERED_PLAYER = 'xine -V xxmc'
VIDEO_PREFERED_PLAYER = 'mplayer -vo xxmc -vc ffmpeg12mc'

But you can do this:
VIDEO_PREFERED_PLAYER = 'xine' or
VIDEO_PREFERED_PLAYER = 'mplayer'

Then you need to set the DEFAULT arguments:
-V xxmc or
-vo xxmc -vc ffmpeg12mc

Should be described in the local_conf.py.example.

> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'xine -V xxmc'
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'xine'
> VIDEO_USE_XVMC = 1
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'mplayer -vo xxmc -vc ffmpeg12mc'
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'mplayer -vo xvmc -vc ffmpeg12mc'
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'xine'
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'xine -V xvmc'
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'mplayer'
> VIDEO_USE_XVMC = 1
> 
> # did not work
> VIDEO_PREFERED_PLAYER = 'xine -V xvmc'
> VIDEO_USE_XVMC = 1

Duncan


--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Use freevo to play .mp3's and .flv's

2009-07-12 Thread Duncan Webb
Chris Jones wrote:
> On Sat, Jul 11, 2009 at 09:28:11PM EDT, Elizabeth Dodd wrote:
> 
> [..]
> 
> I had not trouble editing the local_conf.py file - or rather the copy I
> made to my home directory - and pretty much everything that I needed now
> works (this is a laptop and I don't have a TV/radio card, for instance).

There are USB DVB dongles that work pretty well.

> Things that are not working smoothly at this point:
> 
> 1. Switching to full-screen mode results in a blank (black, actually)
>screen: I have set freevo to start full-screen but after I hit 'z', 
>the currently playing video clip is scaled back to the default size
>that I specified in local_conf.py and positioned at +x+y = +0+0 (top
>left corner of display) and the rest of the screen is black. If I hit
>'z' a second time, I get a black screen - I have to hit 'z' again and 
>then the escape key to get out of this and back to the freevo menu.

More than likely the geometry settings in your freevo.conf. I always
start freevo with the --fullscreen option.

> 2. RSS is not working - neither with the default freevo feeds nor links
>that I copied from google.news for instance. I get a "No Headlines
>found" message. I don't have a standalone aggregator handy on this 
>system to help me make good guesses. I need to take a closer look

Difficult to get all feeds to work. Can be improved when we know which
pages don't work.

> Things that I would like to tweak/improve:
> 
> 1. Keyboard actions do not suit my habits - mainly I would need to bind
>the hjkl keys to navigate the screens more efficiently and something
>like q to the "shutdown" option. I saw a stanza near the end of the
>local_conf.py file named "events" that has a few examples of how you
>define custom bindings but I would need a list of the events' canonical
>names in order to do that. I'll read the doc tomorrow - otherwise they 
>should be defined somewhere in /usr/bin/freevo.real, I guess.

/usr/share/freevo/freevo_config.py is the default config file and has
the events, look for EVENTS =

Adding something like this to local_conf.py you can see all the events:
print_events = True
if print_events:
# Print configured events
for(k, v) in EVENTS.items():
print '==='
print '%s' % (k)
print '---'
for (k2, v2) in v.items():
if v2.handler != None:
print '  "%s" %s "%s" %s:%s' % (k2, v2.name, v2.arg,
v2.context, v2.handler)
elif v2.context != None:
print '  "%s" %s "%s" %s' % (k2, v2.name, v2.arg,
v2.context)
elif v2.arg != None:
print '  "%s" %s "%s"' % (k2, v2.name, v2.arg)
else:
print '  "%s" %s' % (k2, v2.name)

> 
> 2. Many of the .flv's that I have are music and I would prefer having
>them recognized as such by freevo in order to have the benefit of
>features like playlists (such as playing an entire directory) and
>possibly random play, repeat, etc. I have seen some promising hints
>in local_conf.py that this might be possible.

This is simple, looks at the _SUFFIX settings.

> 3. I haven't had time to look into web TV & radio as yet but this should
>be straightforward. I just need to retrieve the links from my bash
>history and figure out how to pass options such as cache size etc. to
>mplayer.

MPLAYER_ARGS['flv'] = '-nocache -forceidx'

> 4. When using mplayer from the bash prompt, watching web TV or .flv
>clips, I specify a "geometry" so that the output is positioned in a
>small window somewhere near the top right corner of the screen, out 
>of my way, so I can get on with whatever I am doing. Then, I would 
>use 'f' to toggle full screen mode. Not sure if I can achieve something 
>similar with freevo. 

Could be tricky, the design goal was for a stand-alone media centre.

> The irony of it is that I was looking for a curses-based front-end to
> mplayer because as I may have mentioned elsewhere I didn't need the
> aggravation of a GUI.. and I end up with this really delightful freevo
> interface.. let's call it a "post GUI" concept. :-)
> 
> Outside the CLI or text-mode screen-oriented applications, it's the
> first time I run into an application that does what the user needs
> rather than what the developer thought would be good for the user.
> 
> Thanks much for help and any pointers and comments about the above much
> appreciated.
> 
> Naturally, many thanks to the author(s) of freevo..!

Duncan

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___

Re: [Freevo-users] /audio/plugins/mplayer.py and MPLAYER_AO_DEV_OPTS problem

2009-07-03 Thread Duncan Webb
Andrea Magatti wrote:
> Hi all,
> 
> seems like i can't get audio spidf out (iec958) when playing music, but
> when playing video files everything is ok.
> 
> in freevo 1.8.2 (gentoo) i've configured the MPLAYER_AO_DEV_OPTS
> ='device=iec958' and MPLAYER_AO_DEV= 'alsa'.
> 
> these parameters are correctly passed to the mplayer (when selecting a
> video file avi, mkw, mov and everything else) command line, but when
> playing audio files (mp3, flac) only the MPLAYER_AO_DEV is passed to
> the command line.
> 
> I was watching the source code in /src/audio/plugins/mplayer.py and i've
> noticed that the command line building code doesn't use at all the
> MPLAYER_AO_DEV_OPTS option.

Try just using:
MPLAYER_AO_DEV = 'alsa:device=default'
or possibly:
MPLAYER_AO_DEV = 'alsa:device=hw=0.0'

This is very hardware specific.

And don't set MPLAYER_AO_DEV_OPTS

I'm assuming that you have connected your audio card to an external amp.

Then you can set -afm hwac3 for certain file types.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] lcd

2009-07-01 Thread Duncan Webb
John Percival wrote:
> I have a Fujitsu-Siemens Scaleo E which has, I think, a Futaba dm140 VFD.
> 
> When I try to acitvate the lcd plugin, it complains that it cannot find a 
> screen for a 2x18 display (5x8 matrix).
> 
> Activating the lcd2 (2x16) plugin works a lot better but with one slight 
> irritation. The last character of the first line is incomplete: the 
> right-most one or two columns of the matrix are missing but appear at the 
> start of the second line.
> 
> Is there any way of defining a 2x18 screen ?

Hopefully the code is clear enough for you to workout how to add to it
to create a 2x18 display.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] [OT] [Fwd: Sony BRAVIA 40 inch Full HD Television with 100Hz Motionflow € 829 ,95]

2009-07-01 Thread Duncan Webb
John Molohan wrote:
> Hi all,
> 
> I haven't had a change to find reviews for this or to see if the price 
> can be beaten but the ibood offer today is for a 40" Sony Full HD 24p 
> LCD they say normally retails for €1500 and they're selling for €830 
> inc. VAT (Ireland). Thought it might be of interest to people here. If 
> anyone finds reviews or comparisons for pricing please post.

My local internet-shop usually have very competitive prices and some
reviews of the products and quite often the reviews are in English.

http://www.digitec.ch/ look for the "Testeo Grading" link where 6 is the
highest.

HTH

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] No sound running "freevo -fs"

2009-07-01 Thread Duncan Webb
Michel Hoogervorst wrote:
> Hi,
> 
> Don't know for sure, but with the lastest Mandriva release I had to add
> myself to the 'audio' group.
> 
> Maybe this solves your problem as well? :-)
> 
> 
> Michel
> 
> 2009/6/28 Bernard Mentink mailto:bment...@gmail.com>>
> 
> Hi guys,
> 
> Tried running freevo with the "-fs" option from a console window
> using CTL_ALT_F1 and although freevo runs fine,
> I get no sound. In the console window I get a message that it can't
> find/use /dev/mixer, I am sure that it is there though as well as
> /dev/dsp .. is it a permission thing?
> Do I have to run as root? (I am running OSS ..)

Sound like a permission problem as Michel suggested.

Check the permissions with "ls -l /dev/mixer*"

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] 1.9.0 issues

2009-06-26 Thread Duncan Webb
Adam Charrett wrote:
> On Fri, June 26, 2009 11:16 am, Adam Charrett wrote:
>> On Thu, June 25, 2009 8:11 pm, Michel Hoogervorst wrote:
 The dialog.x11_overlay_display replaces the default mplayer display to
 display a pretty pause and play icon instead of the text messages.
>>>
>>> Ok, I understand. This should indeed be better looking... but without a
>>> progress-bar when seeking, and some info about the selected subtitle
>>> when
>>> pressing the subtitle-button this is pretty useless... especially when
>>> playing a dvd with lots of subtitles it can be an anoyance when you're
>>> not
>>> able to see which one you just selected...
>> The overlay display stuff is still pretty much in development and needs
>> someone with some artistic ability (ie. not me :-)) to design a nicer
>> display for the seeking/pause display. Fancy a go, it should be reasonable
>> easy as there is a GUI design tool for the dialogs (freevo osddesigner).
>> As for the subtitles, I hold my hands up I didn't think of this as I don't
>> use it in video, I'm not even sure mplayer supports outputing this
>> information to freevo via the console. I'll have to see if it is possible
>> to turn on the mplayer osd just for subtitle selection.
>>
> 
> Duncan, Michel could you try the attached patch (with the x11_osd_display
> enabled) to see if mplayer now displays the subtitles being selected?
> 
> The patch was against the latest 1_9_1 tip.


Hi Adam,

Would you like to do this patch the other way around. Only set the
osdlevel 0 to osd messages that you have replaced and restore it afterwards?

I'm still not sure that I like it because it may not be able to
correctly handle all the mplayer commands, for example:

EVENTS['video']['FFWD'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='speed_mult
2.0')

This one doubles the playback speed of mplayer for every FFWD event.
Even though I see that you have done this for user commands.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Livepause crash

2009-06-25 Thread Duncan Webb
Bernard Mentink wrote:
> Hi again Duncan,
> 
> It looks like the problem is in this bit of code of mplayer.py:
> 
> --- code ---
>  if event == PAUSE or event == PLAY:
> self.paused = not self.paused
> # We have to store the current time before displaying the dialog
> # otherwise the act of requesting the current position
> resumes playback!
> if self.paused:
> self.stored_time_info = self.get_time_info()
> dialog.show_play_state(dialog.PLAY_STATE_PAUSE,
> self.get_time_info)
> self.app.write('pause\n')
> else:
> self.app.write('pause\n')
> dialog.show_play_state(dialog.PLAY_STATE_PLAY,
> self.get_time_info)
> 
> return True
>  end code --

Looks a bit odd as the pause command should not un-pause a play-back.
mplayer can be odd at times.

Try adding to your local_conf.py:
EVENTS['video']['PLAY'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='speed_set 1.0')

Setting the speed to 1.0 is normal playback.

> It seems the comment says it all 
> Do you have a suggested fix for this? I don't have any knowledge of python.

If you want to change to code then the second self.app.write could be:
self.app.write('speed_set 1.0\n')

Unless your remote is sending two consecutive pause command this does
not explain why the pause is not working.

For most of the commands in the lircrc it is useful to have the repeat=0
option as this should stop repeated events being sent.

begin
button = PLAY
prog   = freevo
repeat = 0
config = PLAY
end
begin
button = PAUSE
prog   = freevo
repeat = 0
config = PAUSE
end

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] 1.9.0 issues

2009-06-25 Thread Duncan Webb
Michel Hoogervorst wrote:
> OK, I just kind of solved the mplayer osd issue. Just commented-out line
> 351 of video/plugins/mplayer.py which reads:
> command += args['disable_osd'] and ['-osdlevel', '0'] or []

You might be better off by adding to local_conf.py:
plugin.remove('dialog.x11_overlay_display')

> Is there a reason mplayers osd got disabled in 1.9.0? Or isn't this
> supposed to happen? :-)

You can remove site-packages/kaa/display directory.

The dialog.x11_overlay_display replaces the default mplayer display to
display a pretty pause and play icon instead of the text messages.

> This brings me to another issue. I had the backspace button mapped to
> "SUBTITLE" in local_conf.py like this:
> EVENTMAP['KEY_BACKSPACE'] = 'SUBTITLE'
> (yes, I've got a very cheap remote ;-)).
> 
> As a test I commented-out that line, and now I see 'speed: x  1.00' on
> screen when I press the subtitle button. So, now we know that the
> keyboard doensn't get disabled even though I have 'SYS_USE_KEYBOARD =
> False' in my config... bug?

SYS_USE_KEYBOARD simply prevents the normal keyboard from sending events
but if you have the EVENT_DEVS defined your keyboard will still work if
it is listed.

Duncan


--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Livepause crash

2009-06-24 Thread Duncan Webb
Bernard Mentink wrote:
> Good suggestion Duncan,
> 
> However, I am only getting a PAUSE command (and only one) in the ircat
> for freevo, nothing in the mplayer window.
> 
> I even removed the .lirc/mplayer file, in fact even removed the .lirc
> directory, restarted lirc and still have the same issue. Even though
> freevo sees only one PAUSE mplayer seems to see two events ... is there
> any way to see what freevo is sending mplayer when it gets the single
> PAUSE command?
> 
> Is there possible a bug here for the mplayer tv situation? How does the
> livepause application fit in here? As you know I am running DVBStreamer
> to livepause to mplayer, is it maybe livepause that is not doing the
> right thing?

In osd.py at about line 530 there is a print, if you uncomment this then
the events that are received from lirc will be printed out.

You can also make sure that the option -nolirc is in the
MPLAYER_ARGS_DEF setting then lirc will not be used for mplayer and only
commands from freevo will be used.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Mplayer options confusion

2009-06-23 Thread Duncan Webb
Bernard Mentink wrote:
> Thanks Duncan,
> 
> I guess MPLAYER_ARGS['default'] is the same as MPLAYER_ARGS_DEF then ..

Not quite. MPLAYER_ARGS_DEF will always be passed whereas
MPLAYER_ARGS['default'] will be passed for unknown media types (extensions).

So for example, if there is not type for file.xyz then the
MPLAYER_ARGS_DEF and MPLAYER_ARGS['xyz'] will be passed if
MPLAYER_ARGS['xyz'] is defined, if this is not defined then
MPLAYER_ARGS_DEF and MPLAYER_ARGS['default'] will be passed on to the
command line.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Watching programs while recordings

2009-06-23 Thread Duncan Webb
Bernard Mentink wrote:
> No, not fast forwarding, I am using mplayer as the player.
> 
> I will turn on debugging and see if anything is logged.

Won't help you.

> On Sun, Jun 21, 2009 at 11:02 PM, John Molohan  > wrote:
> 
> Bernard Mentink wrote:
> > Hi All,
> >
> > I am having an issue while watching a show while it is recording.
> >
> > I start a show recording off the guide, exit the menu then go into
> > recorded shows and start watching the show,
> > after approx 3 minutes of watching, I am tossed back to the menu.
> >
> > However if I let the show record for 10..20 minutes, then start
> > watching it, I can watch it to the end. There seems to
> > be some sort of buffering issue going on ..
> >
> > Anyone have any ideas on how to resolve this, is it a known bug?
> >
> You're not trying to fast forward when it happens? I know that xine
> 0.9.9.5 doesn't handle fast forwarding to the end of a growing file
> well, on my system it stops playback and leaves me with the xine
> background. Other than that it should play fine. What player are you
> using? Have you turned on debugging and do you see anything relevant in
> the logs?


This is a mplayer feature. What is happening is that when -cache is
active then mplayer reads the cache and thinks that the end of the cache
is the end of the file and stops playback.

So the solution is to have a small cache or no cache for this type of
file. Something like:
MPLAYER_ARGS['tv'] = '-nocache'

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Livepause crash

2009-06-23 Thread Duncan Webb
Bernard Mentink wrote:
> Hi Adam,
> 
> Thanks but I had already removed that line after you suggested that
> earlier ..
> 
> As a workaround for this issue, I am going to use a spare button on the
> remote to send mplayer the "p" command, so pausing mplayer directly.
> Actually, light bulb time , I wonder if lirc is sending mplayer a
> pause command as well? as Mythbuntu sets up all the lircrc files for all
> the different players ..
> 
> Maybe mplayer is getting a pause from freevo and also one from lirc
> direct ...
> 
> I will investigate and let you know.

This should be easy if you can ssh to the box or see a couple of xterms

You need to:
# ircat --config=/etc/freevo/lircrc freevo
# ircat mplayer


If you see anything in the mplayer window then you are correct and have
two events being sent. One to freevo, which sends a command to the stdin
of mplayer and one on mplayer lirc interface.

Duncan

--
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Mplayer options confusion

2009-06-21 Thread Duncan Webb
Bernard Mentink wrote:
> Thanks Elizabeth,
> 
> It's also the confusing multiple methods to pass mplayer options to
> Freevo, that are annoying: For example:
> 
> You can pass options with:
> Method 1.
> MPLAYER_ARGS['webcam']  = 'tv:// -tv
> driver=v4l:width=352:height=288:outfmt=yuy2:device=/dev/video2'
> MPLAYER_ARGS['default'] = '-cache 5000'
> MPLAYER_ARGS['dvb']   = '-vf pp=de/fd -cache 4096'
> 
> Method 2.
> MPLAYER_ARGS_DEF = '-vf pp=ci,phase=u -fs'
> 
> Method 3.
> MPLAYER_VF_INTERLACED  = 'pp=md/de,phase=U'
> 
> And there is probably more ... I still don't know what is the correct
> method to use.

There are three different things here.

MPLAYER_ARGS_DEF as the default argument that are passed to every
mplayer command line. Typically used to your hardware set-up.

MPLAYER_ARGS[''] are specific arguments for different media types.
the  is the file extension.

MPLAYER_VF_INTERLACED is for a specific video where you need to view
some video tracks as interlaced and some as progressive.

So for transport streams you need to add:
MPLAYER_ARGS['ts'] - 'what ever'

Duncan

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo only shows black screen for a second when trying to play a dvd

2009-06-18 Thread Duncan Webb
Evan Hisey wrote:
> On Wed, Jun 17, 2009 at 3:20 PM, Kevin Meagher wrote:
>> Thanks for the help.
>> With the logging set to debug i was able to get the xine options and
>> find the problem. The problem was with '--no-lirc' which I removed and
>> now it works fine.
>>
>>
> Ran in to this on Slackware and got the following option add to the
> local_conf.py: XINE_HAS_NO_LIRC = false . 

Should be:
XINE_HAS_NO_LIRC = False
as Python is case-sensitive.

If you did not find this
> option I suggest using it over, hand tweaking the Xine options.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] CD backup not producing the files

2009-06-18 Thread Duncan Webb
Bernard Mentink wrote:
> Hi Duncan,
> 
> I turned on logging and found the issue. It seems I had the wrong
> permissions on the directory I was saving the flac files too ... fixed now.

Do you still have the log output as this should really be a warning or
error message so that it is shown on the console?

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Last FM Plugin

2009-06-17 Thread Duncan Webb
Jim Duda wrote:
> John,
> 
> You should try it again with 1.9.0.  I had that same problem with 1.8.3.
> I'm a big fan of LastFm now.  But it seems to work fine without paying
> any $ at all.  I've learned about so much more music that I wasn't even
> aware of.
> 
> Thanks for the feedback.
> 
> Jim
> 
> John Molohan wrote:
>> Duncan Webb wrote:
>>> John Molohan wrote:
>>>   
>>>> Jim Duda wrote:
>>>> 
>>>>> Is anyone using the lastfm plugin as a subscriber?
>>>>>   
>>>>>   
>>>> Not me anyway.
>>>> 
>>>>> Is it worth $3 a month as a freevo user too?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jim
>>>>>
>>>>>   
>>>>>   
>>>> I have to say I thought it was a shame when I heard this news. I didn't 
>>>> use the lastfm plugin much but I did use it from time to time. Can't see 
>>>> myself forking out $36 a year for it now.
>>>> 
>>> You don't have to, there is just an option that is add free!
>>>
>>> May be at busy times then with a subscriber option it works better and
>>> less tracks are not available.
>>>
>>> Duncan
>>>   
>> I didn't know that. I tried the plugin after I heard the news and it 
>> just sat there with the elapsed time showing 00:00 and nothing ever 
>> played so I assumed it didn't work any more. Must have been some other 
>> reason for it.

The error handling is still not perfect, it is quite difficult to test!
The version in the REL-1_9_1 is better but still fails from time to time.

404 errors are temporary and 403 are permanent, so I've a bit of work
still to do.

As Jim says it's a good service and the WAF is quite high.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo only shows black screen for a second when trying to play a dvd

2009-06-17 Thread Duncan Webb
Kevin Meagher wrote:
> Here is the output of .freevo/log/xine-stdout-1000.log. It looks like
> freevo is passing a bad parameter to xine, but im not sure how to
> check what was actually passed to xine, the command isn't outputed to
> main-1000.log.
> 
> --Kevin
> 
> 
> 
> Usage: xine [OPTIONS]... [MRL]
> 
> OPTIONS are:
>   -v, --versionDisplay version.
>   --verbose [=level]   Set verbosity level. Default is 1.
>   -c, --config   Use config file instead of default one.
>   -V, --video-driver  Select video driver by id. Available drivers:
>xv opengl raw xshm aa none
>   -A, --audio-driver  Select audio driver by id. Available drivers:
>null alsa none file
>   -u, --spu-channel <#>Select SPU (subtitle) channel '#'.
>   -a, --audio-channel <#>  Select audio channel '#'.
>   -p, --auto-play [opt]Play on start. Can be followed by:
> 'f': in fullscreen mode.
> 'h': hide GUI (panel, etc.).
> 'w': hide video window.
> 'q': quit when play is done.
> 'd': retrieve playlist from DVD. (deprecated. use -s DVD)
> 'v': retrieve playlist from VCD. (deprecated. use -s VCD)
>   -s, --auto-scan  auto-scan play list from 
>   -f, --fullscreen start in fullscreen mode,
>   -g, --hide-gui   hide GUI (panel, etc.)
>   -I, --no-gui disable GUI
>   --no-mouse   disable mouse event
>   -H, --hide-video hide video window
>   --visualUse the specified X11 visual. 
>is either an X11 visual class, or a visual id.
>   --installInstall a private colormap.
>   --keymap [=option]   Display keymap. Option are:
>  'default': display default keymap table,
>  'lirc': display draft of a .lircrc config 
> file.
>  'remapped': user remapped keymap table.
>  'file:': use  as keymap.
>  -if no option is given, 'default' is 
> selected.
>   -n, --networkEnable network remote control server.
>   --network-port   Specify network server port number.
>   -R, --root   Use root window as video window.
>   -W, --widUse a window id.
>   -G, --geometrySet output window geometry (X style).
>   -B, --borderless Borderless video output window.
>   -N, --animation Specify mrl to play when video output isn't 
> used.
>  -can be used more than one time.
>   -P, --playlist Load a playlist file.
>   -l, --loop [=mode]   Set playlist loop mode (default: loop).
> Modes are:
>  'loop': loop entire playlist.
>  'repeat': repeat current playlist entry.
>  'shuffle': select randomly a yet
> unplayed entry from playlist
>  'shuffle+': same as 'shuffle', but
> indefinetely replay the playlist.
>   --skin-server-url   Define the skin server url.
>   --enqueue  ...  Enqueue mrl of a running session (session 0)
>   -S, --session 
>Session managements. Options can be:
> session=n   specify session  number,
> mrl=m   add mrl  to the playlist,
> audio=c select audio channel (: 'next' or 'prev'),
> spu=c   select spu channel (: 'next' or 'prev'),
> volume=vset audio volume,
> amp=v   set amplification level,
> loop=m  set loop mode (: 'none' 'loop'
> 'repeat' 'shuffle' or 'shuffle+'),
> get_speed   get speed value (see man page for
> returned value).
> (playlist|pl)=p
>   can be:
>'clear'  clear the playlist,
>'first'  play first entry in the playlist,
>'prev'   play previous playlist entry,
>'next'   play next playlist entry,
>'last'   play last entry in the playlist,
>'load:s' load playlist file ,
>'stop'   stop playback at the end
> of current playback.
>'cont'   continue playback at the
> end of current playback.
> play, slow2, slow4, pause, fast2,
> fast4, stop, quit, fullscreen, eject.
>   -Z   Don't automatically start playback (smart 
> mode).
>   -D, --deinterla

Re: [Freevo-users] CD backup not producing the files

2009-06-17 Thread Duncan Webb
Bernard Mentink wrote:
> Hi Duncan.
> 
> I did not have lame installed, so installed it.
> Now I get this error for every track:
> 
> The FLAC file could not be opened.  Most likely the file does not exist
> or is not readable.
> /var/lib/mythtv/music/Dire Straits/Sultans Of Swing/15 - Your Latest
> Trick - Live.flac: ERROR: reading metadata, status =
> "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"
> 
> The FLAC file could not be opened.  Most likely the file does not exist
> or is not readable.
> /var/lib/mythtv/music/Dire Straits/Sultans Of Swing/16 - Wild Theme -
> Live.flac: ERROR: reading metadata, status =
> "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"
> 
> 
> Doesn't seem to do much at all now..
> 
> My freevo.conf is:
> 
> version = 2.2
> display = x11
> geometry = 1024x768
> position = 0,0
> tv = pal
> chanlist = newzealand
> dvdbackup = /usr/bin/dvdbackup
> flac = /usr/bin/flac
> livepause = /usr/local/bin/livepause
> lsdvd = /usr/bin/lsdvd
> mplayer = /usr/bin/mplayer
> renice = /usr/bin/renice
> setterm = /usr/bin/setterm
> tvtime = /usr/bin/tvtime
> unzip = /usr/bin/unzip
> vlc = /usr/bin/vlc
> xine = /usr/bin/xine
> 
> 
> Any idea's ??

lame = /usr/bin/lame is missing; you can run freevo setup again.
oggenc = /usr/bin/oggenc is recommended too.

IIRC display = x11 should be display = xv

Look at the log file, it should be in the /var/log/freevo directory or
in ~/.freevo/log. It may tell you more why flac encodings fail.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo only shows black screen for a second when trying to play a dvd

2009-06-16 Thread Duncan Webb
Kevin Meagher wrote:
> Hi all,
> 
> I'm running freevo 1.8.2 on gentoo linux. I havent made any changes to
> local_conf.py. when i goe to watch a movie there is an option for the
> dvd in the drive, when I select it, I get a black screen for about a
> second and then it takes me back to the movies menu. Running 'xine
> dvd://' plays the dvd perfectly so i don't think it is a problem with
> xine.
> 
> Here is stdout after I turned up logging, i don't see anythin relating
> to not playing the dvd:

I think that this particular DVD is copy-protected in such a way that it
will not play with Linux.

What you need to do is to enable DEBUG_CHILDAPP and then in the log
files check the command line that is being executed, should be in
main-X.log and also look at the xine-std*.log files.

> 
> $ freevo
> /usr/bin/freevo:36: DeprecationWarning: The popen2 module is
> deprecated.  Use the subprocess module.
>   import popen2
> /usr/lib/python2.6/site-packages/kaa/notifier/popen.py:52:
> DeprecationWarning: The popen2 module is deprecated.  Use the
> subprocess module.
>   import popen2
> /usr/lib/python2.6/site-packages/kaa/metadata/disc/cdrom.py:37:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>   import md5
> trying "/var/log/freevo"...
> trying "/var/lib/freevo"...
> trying "/var/cache/freevo"...
> 
> Warning: freevo_config.py was changed, please check local_conf.py

Use freevo convert_config /home/freevo/.freevo/local_conf.py -w to fix
the messages.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Last FM Plugin

2009-06-16 Thread Duncan Webb
John Molohan wrote:
> Jim Duda wrote:
>> Is anyone using the lastfm plugin as a subscriber?
>>   
> Not me anyway.
>> Is it worth $3 a month as a freevo user too?
>>
>> Thanks,
>>
>> Jim
>>
>>   
> I have to say I thought it was a shame when I heard this news. I didn't 
> use the lastfm plugin much but I did use it from time to time. Can't see 
> myself forking out $36 a year for it now.


You don't have to, there is just an option that is add free!

May be at busy times then with a subscriber option it works better and
less tracks are not available.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] CD backup not producing the files

2009-06-14 Thread Duncan Webb
Bernard Mentink wrote:
> Anyone have a solution to this? ...  Thanks

Have you lame installed?

You can post your freevo.conf?

> On Sat, Jun 13, 2009 at 3:20 PM, Bernard Mentink  > wrote:
> 
> Hi All,
> 
> I have just enabled the audio.cdbackup pluggin and have set the
> options I want, and have installed cdparanioa.
> 
> However, when I go to rip a file, everything looks like it is
> working, I can see the temporary .wav file in /tmp and the progress
> info shows the files been ripped one track at a time. However, when
> it is finished (I am doing flac output) I do not see any files in
> the directory I have specified. (I have flac installed ok)
> 
> My settings are:
> 
> plugin.activate('audio.cdbackup')
> AUDIO_BACKUP_DIR = '/var/lib/mythtv/music'
> CDPAR_CMD = 'cdparanoia'
> 
> I can't see any files in that directory, . any ideas?

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Livepause crash

2009-06-13 Thread Duncan Webb
Jonathan Isom wrote:
> 2009/6/12 Bernard Mentink :
>> So you mean I can't play anything full screen and have OSD as well? Hmmm ..

> It can fill the screen but not be fullscreen :).  basically Fullscreen
> ignores the
> window manager in some programs.  also I think a window manger is required.

Generally a window manager is not required for Freevo. The exception is
when you want to run external commands from the Freevo command menu.

> I'm personally using compiz(overkill if you ask me) to manage the screen.
> Not sure of another that works correctly though. :(
> 
>> I had a look through local_conf.py for -fs options and there are none. I did
>> an info on the video.mplayer plugin and it showed no options by default. So
>> I don't know what is telling it to play full screen? Do I specifically have
>> to give an option to mplayer to play in a window?

What you need to remember about Freevo is that it is the glue that
sticks applications together to provide a multimedia system.

So if you need to know what the options are for a specific application
the use the application's documentation.

Duncan


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Livepause crash

2009-06-13 Thread Duncan Webb
Bernard Mentink wrote:
> Ok, not getting any replies,  I found the issue myself. It seems I had
> to replace the LIVE_PAUSEBUFFER with ..PAUSE2.. not ..PAUSE.. etc.
> 
> LIVE_PAUSE2_BUFFER_SIZE=128
> 
> LIVE_PAUSE2_BUFFER_PATH='/tmp/live.buf' # Location of the live buffer.
> LIVE_PAUSE2_PREFERRED_PLAYER='xine'
> 
> This is "not" documented anywhere, I would have thought that the Wiki
> should have this upto date info ??

The Wiki is the property of the community and it is the task of the
community to keep it up to date!

Anyway after my little rant all plug-in are self-documented but may be
the documentation is not as perfect as it should be.

The trick is to first find the plug-in your interested in.

# freevo plugins -l | grep livepause
tv.livepausePlugin to allowing pausing live TV.
# freevo plugins -i tv.livepause
...

I'll add a bit to the quick-start guide in the wiki for this.

The same information is also on the Freevo webserver under the help menu.

> 
> I only managed to fix this by coming across a post with these settings
> about another livepause issue, otherwise I would still be struggling.
> 
> How come convert_config  doesn't pick this up? I thought that was what
> it was for..

TV is the hardest part of Freevo to configure but once you have archived
this the rest is a piece of cake.

> Well now that I have TV working, how do I get OSD to work??

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 run error .. help please

2009-06-09 Thread Duncan Webb
Jason Tackaberry wrote:
> On Tue, 2009-06-09 at 09:06 +1200, Bernard Mentink wrote:
>> Hmmm, well that is not my user experience.
> [...]
>>   File "/usr/local/bin/freevo", line 218, in get_python
>> child.fromchild.close()
>> AttributeError: 'Popen' object has no attribute 'fromchild'
> 
> Ah, ok, but this has nothing to with the fact that the popen2 module is
> deprecated.  Just for the record. :)
> 
>>From what I can see, the code just looks broken.  Duncan,
> subprocess.Popen is not API compatible with popen2.Popen3, and it looks
> like maybe the code is assuming that.  Specifically, subprocess.Popen
> objects use stdout/stderr and stdin attributes rather than fromchild and
> tochild.
> 
> Am I missing something?  If not, this code path must not be very well
> travelled?  Is there something Bernard can do to workaround?


What it means is that freevo has not found the version of Python that is
installed, it is looking for python, python2 and incorrectly for
python2.4. So the simple workaround is to link python (or python2) to
the installed version.

ln -svf python2.5 /usr/bin/python

Attached is a patch that should fix this problem and correct the version
checking of python.

Duncan
Index: freevo
===
--- freevo	(revision 11582)
+++ freevo	(working copy)
@@ -34,6 +34,7 @@
 import sys
 import time
 import pprint
+import re
 
 from subprocess import Popen, PIPE
 from optparse import Option, BadOptionError, OptionValueError, OptionParser, IndentedHelpFormatter
@@ -178,15 +179,15 @@
 get the newest version of python [ with freevo installed ]
 """
 _debug_('version=%r' % (sys.version))
-if sys.hexversion >= 0x0204:
+if sys.hexversion >= 0x0206:
 # python seems to be ok
-search = ('python', 'python2')
-elif sys.hexversion >= 0x0203:
-# try python2.4, else take python
-search = ('python2.4', 'python')
+search = ('python', 'python2.6', 'python2')
+elif sys.hexversion >= 0x0205:
+# try python2.5, else take python
+search = ('python2.5', 'python')
 else:
-# python is too old, try to find python2.4 or python2
-search = ('python2.4', 'python2')
+# python is too old, try to find python2.5 or python2
+search = ('python2.5', 'python2')
 
 for python in search:
 for path in os.environ['PATH'].split(':'):
@@ -215,10 +216,8 @@
 return python, data[:-1]
 
 child.wait()
-child.fromchild.close()
-if child.childerr:
-child.childerr.close()
-child.tochild.close()
+child.stdout.close()
+child.stdin.close()
 
 # nothing found? That's bad!
 if check_freevo:
@@ -364,8 +363,6 @@
 revision = 0
 if os.path.isdir('.svn'):
 try:
-from subprocess import Popen, PIPE
-import re
 os.environ['LC_ALL']='C'
 p = Popen(["svn", "info", "--revision=BASE"], stdout=PIPE, env=os.environ)
 info = p.communicate()[0]
@@ -475,7 +472,7 @@
 #
 # no runtime, get best python version
 #
-python = get_python(0)
+python = get_python(False)
 if not python:
 sys.exit("Can't find python >= 2.5")
 python = [ python ]
@@ -488,7 +485,7 @@
 for path in os.environ['PATH'].split(':'):
 if os.path.isfile(os.path.join(path, freevo_script)):
 freevo_script = os.path.join(path, freevo_script)
-python, freevo_python = get_python(1)
+python, freevo_python = get_python(True)
 if not python:
 sys.exit("Can't find python version with installed freevo")
 
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 run error .. help please

2009-06-08 Thread Duncan Webb
Jason Tackaberry wrote:
> On Mon, 2009-06-08 at 14:27 +0200, Meneer Jansen wrote:
>> Freevo Python install script trying to use a command called "popen2"
>> which is deprcated in the Python version Jaunty uses. Pity. 
> 
> Deprecated, but not removed.  So the worst that will happen is that
> Python will print a warning, which does not affect the actual
> functionality.  It's safe for you to ignore.
> 
> 
>> Seems to me Python is a too hard to keep up with for programmers and
>> users alike. I cannot remove old Pyton versions because of dependency
>> hell. And Python does not upgrade itself in one single directory. So
> 
> Yes, you don't want to try to remove the python version that your distro
> came with, because a lot of apps on your distro depend on it.
> 
> This dependency hell problem is not unique to python.  Try to upgrade
> non-bugfix releases of your glibc or gtk packages, to name a couple.
> 
> Normal users should not need to maintain multiple python versions.  If
> you find yourself in the unfortunate situation of having a distribution
> with Python 2.4 (now unsupported by Freevo), you'll be far better
> upgrading your distro.
> 
> But most distros released in the last 2 years are running Python 2.5,
> which Freevo does support.

I'm not sure that it is a great idea to upgrade a distro and Freevo at
the same time. As when there are problems with Freevo the poor user is
not sure if it is a Freevo problem or a distro problem.

IMHO it is better to upgrade a distro and keep Freevo at the same
version, all the old versions are still on the sourceforge.net web page.
  Then it is a simple matter of downloading it and typing:

python setup.py install

It is not even that difficult to do the same if there are any missing
dependencies.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-06-08 Thread Duncan Webb
Meneer Jansen wrote:

Try using reply-all on your mailer!

> A complete mystery to me why. But is works again. I'll tell you what
> I've been up to the last few days. I reinstalled Debian 5. Didn't help.
> I installed Debian 4 (Etch, oldstable) because it comes w/ Python 2.4. I
> couldn't de-install Python 2.5 on my Debian 5 system and the trouble
> began w/ some upgrade of Python and Freevo. But that didn't work either.
> Installed Freevo on my dual boot Suse10.3: same problem.
> 
> So I deceided to stop using my beloved Freevo all together and to start
> using an other Mediacenter. That required for allmost all alternatives
> the use of Ubuntu. So I installed that instead of Debian 5.0 Lenny
> Stable (which I love!). Anyway, I saw that Freevo 1.8.1 is in Ubuntu 9
> Jaunty 's repositorys and gave it [b]one last[/b] shot. And, by golly,
> it works. Don't ask me why, but my DVD's play again. I will never *EVER*
> update Freevo or Python again now

Try using the instructions here: http://doc.freevo.org/SourceSVNInstallation

It is actually quite easy to do and if it not working then you still
have your installed version and no pressure to have it working.

> And now for something completely different: getting Freevo to find my
> DVD's in the IMDB again. Just like I used to. But thats another mailing
> list topic, which I will now "bump" w/ some more info from the command line.

IMDB changes their web pages quite frequently and what was working back
at 1.8.1 more than likely only partially works now.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Version error running latest Freevo 1.9.0

2009-06-05 Thread Duncan Webb
Bernard Mentink wrote:
> Hi All,
> 
> I have compiled Freevo 1.9.0 and the kaa packages with the script on the
> Ubuntu page. All compiles ok, but I am getting the following run-time error:
> 
> ~/freevo/bin$ ./freevo
> Traceback (most recent call last):
>   File "./freevo", line 516, in 
> (opts, args) = parse_options(defaults, versions)
>   File "./freevo", line 401, in parse_options
> usage=help_usage % '\n  '.join(get_helpers()), version='%prog-' +
> versions['version'])
> KeyError: 'version'
> 
> Anyone have any idea what to do next?

Bit confused by what you mean by compiled. Normally you would type:

freevo

But I think you need to install it correctly first, this is done with
the command:

python setup.py install --prefix=~/freevo

Same command for the kaa packages, if you are using ~/freevo.

Then you will also need to set PYTHONPATH and path like:
export PYTHONPATH=~/freevo/lib:${PYTHONPATH}
export PATH=~/freevo/bin:${PATH}

> 
> I suspect it is the format of my local_conf.py file, but I have tried
> running the convert_script.py over it and all
> I get is:

The commands are:
freevo convert_config /path/to/local_conf.py
freevo convert_config /path/to/local_conf.py -w

not ./convert_config.py

> ./convert_config.py: line 124: MIXER_MIXER_:: command not found

Duncan

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Kaa-diplay installation error

2009-06-05 Thread Duncan Webb
Publicy wrote:
> This is what I've done but I've got the following error :
> 
> setup.py:36: DeprecationWarning: The popen2 module is deprecated.  Use the
> subprocess module.  import popen2checking for X11 ... okchecking for
> imlib2 >=
> 1.1.1 ... 1.4.2checking for pygame ... okchecking for pygame header
> files ...
> not installedchecking for XComposite ... no

This is your problem XComposite is not installed.

Duncan

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Recordserver starting error

2009-06-04 Thread Duncan Webb
Publicy wrote:
> I upgrade from a fresh 1.8.3 install.
> 
> Sorry for this question but what is faorite.pickle file ?

A file of your favourite tv programs.

> Even with several restart the file is not created, should I manually
> create It ?

Should be created when you add a favourite.

Duncan


> Duncan Webb a écrit :
>> publ...@free.fr wrote:
>>  
>>> Me again
>>>
>>> With 1.9.0 installation when i launch recordserver like this :
>>>
>>> freevo recordserver start
>>>
>>> I've got the following error :
>>>
>>> ATTENTION: [Errno 2] No such file or directory:
>>> '/var/lib/freevo/favorites.pickle'
>>>
>>>
>>> What to do ?
>>> Create a empty favorite.pickle file ?
>>>
>>> Or use the convert_favorite tool ?
>>> freevo convert_favorites /path/to/old-record_schedule.xml
>>> 
>>
>> >From which version did you upgrade from, if it was 1.7.x then use the
>> "freevo convert_favorites /path/to/old-record_schedule.xml" command.
>>
>> The /var/lib/freevo/favorites.pickle should be created as this is a
>> warning message.
>>
>> Duncan
>>
>> --
>>
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>> is a gathering of tech-side developers & brand creativity
>> professionals. Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp as they present alongside digital heavyweights like
>> Barbarian Group, R/GA, & Big Spaceship.
>> http://p.sf.net/sfu/creativitycat-com
>> ___
>> Freevo-users mailing list
>> Freevo-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>
>>   
> 


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Kaa-diplay installation error

2009-06-04 Thread Duncan Webb
Publicy wrote:
> Thanks
> 
> and what can I do to try to install kaa-display  ?

Download it, and type python setup.py install

Duncan

> Duncan Webb a écrit :
>> Jason Tackaberry wrote:
>>  
>>> On Sat, 2009-05-30 at 11:59 +0200, Duncan Webb wrote:
>>>
>>>> kaa.display is used for mplayer to display the paused and play
>>>> icons. In
>>>> fact, you lose the audio, subtitle and other mplayer osd messages when
>>>> this is active so it may be better to remove kaa.display from your
>>>> site-packages.
>>>>   
>>> Hm, why would subtitles be lost?  Even at -osdlevel 0, subtitles should
>>> still work.
>>> 
>>
>> You don't lose the subtitles but the OSD message that displays which
>> subtitles have been chosen.
>>
>> Duncan
>>
>> --
>>
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>> is a gathering of tech-side developers & brand creativity
>> professionals. Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp as they present alongside digital heavyweights like
>> Barbarian Group, R/GA, & Big Spaceship.
>> http://p.sf.net/sfu/creativitycat-com
>> ___
>> Freevo-users mailing list
>> Freevo-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>
>>   
> 


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-06-02 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/6/1 Duncan Webb mailto:dun...@freevo.org>>
> 
> Meneer Jansen wrote:
> >
> >
> > 2009/6/1 Duncan Webb mailto:dun...@freevo.org>
> <mailto:dun...@freevo.org <mailto:dun...@freevo.org>>>
> >
> 
> > /dev/hdc  /mnt/dvd   auto  noauto,ro,nosuid  0 0
> >
> > The ro is important for a DVD, noauto stops the drive being
> mounted
> > at boot.
> >
> > In local_conf.py keep
> > ROM_DRIVES_AUTOFS = False
> > ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]
> >
> > With freevo not running and a DVD in the drive try:
> > ls /mnt/dvd
> > should show nothing
> > mount /mnt/dvd
> > should show AUDIO_TS and VIDEO_TS
> > umount /mnt/dvd
> > eject /mnt/dvd
> >
> > Then start freevo and see what happens.
> >
> > Duncan
> >
> > PS you should keep this on the list in case someone else is
> having the
> > same problem or has solved the same problem.
> >
> >
> > Uninstalled automount, did what you suggested (exept I added "user" to
> > the cdrom entry in fstab, else no mounting as non-root). But the same
> > prob. Cannot eject from within Freevo etc. Keep seeing video_ts
> folder.
> > May my Python installation may be corrupt? Relavant commandline
> output:
> >
> > [CODE]
> > Please run 'freevo cache'
> >
> > version: 1.9.0
> > plugin mixer deactivated, reason: Couldn't open mixer PCM
> > Freevo 1.9.0 ready
> > WARNING: mounting '/mnt/dvd': mount: /dev/hdc already mounted or
> > /mnt/dvd busy
> 
> This will prevent you from ejecting the disk as it is already mounted.
> 
> > mount: according to mtab, /dev/hdc is already mounted on /mnt/dvd
> >
> > Exception in thread Thread-2:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.5/threading.py", line 486, in
> __bootstrap_inner
> > self.run()
> >   File
> "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> > line 917, in run
> > self.check_all()
> >   File
> "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> > line 882, in check_all
> > self.identify(media)
> >   File
> "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> > line 718, in identify
> > util.mount(media.mountdir, force=True)
> >   File "/usr/lib/python2.5/site-packages/freevo/util/fileops.py", line
> > 385, in mount
> > from util.misc import print_upper_execution_stack
> > ImportError: cannot import name print_upper_execution_stack
> >
> > WARNING: Drive was mounted out of rom_drives.py: /mnt/dvd
> > WARNING: Inconsistency regarding the mount status of: /mnt/dvd
> > WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
> > WARNING: Inconsistency regarding the mount status of: /mnt/dvd
> > WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
> > Freevo 1.9.0 exited
> > [/CODE]
> >
> > Is the "Errno 5" from Python, Freevo or Linux? I am considering to
> > downgrade to Freevo 1.8.3 or earlier (mounting DVD's worked in 1.8.3,
> > exept for the IMDB part).
> 
> Error 5 is a Linux error, google for "debian [Errno 5] Input/output
> error". Take a look at the output from dmesg.
> 
> I would guess that this is a disk/driver problem. But could be a RAM
> problem, see:
> 
> 
> http://www.linuxquestions.org/questions/linux-newbie-8/errno-5-inputoutput-error-639355/
> 
> You can fix the error "ImportError: cannot import name
> print_upper_execution_stack", which you should never really hit.
> 
> 
> by applying this patch:
> Index: src/util/fileops.py
> ===
> --- src/util/fileops.py (revision 11576)
> +++ src/util/fileops.py (working copy)
> @@ -382,8 +382,7 @@
> so, se = p.communicate()
> if rc in (1,32,):
> _debug_('mounting %r: %s' % (dir, se), DWARNING)
> -   

Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-06-01 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/6/1 Duncan Webb mailto:dun...@freevo.org>>
> 

> /dev/hdc  /mnt/dvd   auto  noauto,ro,nosuid  0 0
> 
> The ro is important for a DVD, noauto stops the drive being mounted
> at boot.
> 
> In local_conf.py keep
> ROM_DRIVES_AUTOFS = False
> ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]
> 
> With freevo not running and a DVD in the drive try:
> ls /mnt/dvd
> should show nothing
> mount /mnt/dvd
> should show AUDIO_TS and VIDEO_TS
> umount /mnt/dvd
> eject /mnt/dvd
> 
> Then start freevo and see what happens.
> 
> Duncan
> 
> PS you should keep this on the list in case someone else is having the
> same problem or has solved the same problem.
> 
> 
> Uninstalled automount, did what you suggested (exept I added "user" to
> the cdrom entry in fstab, else no mounting as non-root). But the same
> prob. Cannot eject from within Freevo etc. Keep seeing video_ts folder.
> May my Python installation may be corrupt? Relavant commandline output:
> 
> [CODE]
> Please run 'freevo cache'
> 
> version: 1.9.0
> plugin mixer deactivated, reason: Couldn't open mixer PCM
> Freevo 1.9.0 ready
> WARNING: mounting '/mnt/dvd': mount: /dev/hdc already mounted or
> /mnt/dvd busy

This will prevent you from ejecting the disk as it is already mounted.

> mount: according to mtab, /dev/hdc is already mounted on /mnt/dvd
> 
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
> self.run()
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> line 917, in run
> self.check_all()
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> line 882, in check_all
> self.identify(media)
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
> line 718, in identify
> util.mount(media.mountdir, force=True)
>   File "/usr/lib/python2.5/site-packages/freevo/util/fileops.py", line
> 385, in mount
> from util.misc import print_upper_execution_stack
> ImportError: cannot import name print_upper_execution_stack
> 
> WARNING: Drive was mounted out of rom_drives.py: /mnt/dvd
> WARNING: Inconsistency regarding the mount status of: /mnt/dvd
> WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
> WARNING: Inconsistency regarding the mount status of: /mnt/dvd
> WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
> Freevo 1.9.0 exited
> [/CODE]
> 
> Is the "Errno 5" from Python, Freevo or Linux? I am considering to
> downgrade to Freevo 1.8.3 or earlier (mounting DVD's worked in 1.8.3,
> exept for the IMDB part).

Error 5 is a Linux error, google for "debian [Errno 5] Input/output
error". Take a look at the output from dmesg.

I would guess that this is a disk/driver problem. But could be a RAM
problem, see:

http://www.linuxquestions.org/questions/linux-newbie-8/errno-5-inputoutput-error-639355/

You can fix the error "ImportError: cannot import name
print_upper_execution_stack", which you should never really hit.


by applying this patch:
Index: src/util/fileops.py
===
--- src/util/fileops.py (revision 11576)
+++ src/util/fileops.py (working copy)
@@ -382,8 +382,7 @@
 so, se = p.communicate()
 if rc in (1,32,):
 _debug_('mounting %r: %s' % (dir, se), DWARNING)
-from util.misc import print_upper_execution_stack
-print_upper_execution_stack()
+traceback.print_stack()
 if os.path.ismount(dir) and not dir in mounted_dirs:
 mounted_dirs.append(dir)
 if force and not dir in mounted_dirs:

It is a hangover that should have been removed, :-(
Index: src/util/fileops.py
===
--- src/util/fileops.py	(revision 11576)
+++ src/util/fileops.py	(working copy)
@@ -382,8 +382,7 @@
 so, se = p.communicate()
 if rc in (1,32,):
 _debug_('mounting %r: %s' % (dir, se), DWARNING)
-from util.misc import print_upper_execution_stack
-print_upper_execution_stack()
+traceback.print_stack()
 if os.path.ismount(dir) and not dir in mounted_dirs:
 mounted_dirs.append(dir)
 if force and not dir in mounted_dirs:
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering

Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-06-01 Thread Duncan Webb
Meneer Jansen wrote:
> 

[SNIP]

> 
> Thank you again for your help. :) However, I'm afraid I'm getting rather
> stuck. I think that applying the patch worked, as I can read the
> following message at the beginning of the command line when I start Freevo:
> 
> "Added a plugin that adds a submenu entry for ejecting rom drives and
> binds the default action of an empty drive to the eject action"
> 
> I upgraded Python from ver. 2.5.2 to 2.5.4 like you suggested. This was
> a bit tricky as I had to use Debian Unstable packages. I run Debian
> Lenny Stable, because it is said to be so "stable" (guess the Debian
> Stable version of Python ain't so stable after all). Now that I've
> upgraded Python I've gotten rid of the nasty backtrace. 

:-)

> Now the messages
> on the command line are as follows:
> 
> version: 1.9.0
> plugin mixer deactivated, reason: Couldn't open mixer PCM

This is because you need the snd_mixer_oss loaded.

> Freevo 1.9.0 ready
> WARNING: Drive was unmounted out of rom_drives.py: /mnt/dvd
> Freevo 1.9.0 exited
> 
> 1. In /etc/fstab add another entry for the DVD drive, say /mnt/dvd, make a
> /mnt/dvd directory.
> 
> 2. Set the following in local_conf.py
> ROM_DRIVES_AUTOFS = False
> ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]
> 
> But nothing works. No matter what I try (starting Freeco w/ the DVD in
> the open tray, ejecting the DVD w/ Freeco, starting Freevo w/ the DVD
> already mounted), DVD's just won't play. I keep on seeing the video_ts
> and audio_ts folders.

In you /etc/fstab you should have:
/dev/hdc  /media/cdrom0  udf,iso9660  user,auto  0 0
/dev/hdc  /mnt/dvd   udf,iso9660  user,auto  0 0

Try changing the "udf,iso9660" to "auto"

I have:
/dev/hdc  /mnt/dvd   auto  noauto,ro,nosuid  0 0

The ro is important for a DVD, noauto stops the drive being mounted at boot.

In local_conf.py keep
ROM_DRIVES_AUTOFS = False
ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]

With freevo not running and a DVD in the drive try:
ls /mnt/dvd
should show nothing
mount /mnt/dvd
should show AUDIO_TS and VIDEO_TS
umount /mnt/dvd
eject /mnt/dvd

Then start freevo and see what happens.

Duncan

PS you should keep this on the list in case someone else is having the
same problem or has solved the same problem.

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-05-31 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/5/31 Meneer Jansen  >

> Thank you for your kind reply and for the patch. :-) I tried to
> apply the patch by coping it into the source-tree root of Freevo and
> by typing:
> 
> patch -p0 config-romdrive-detect.patch
> 
> And then I installed Freevo again ("python setup.py install"). I
> hope that is how one applies a patch...

You should see some log messages at the start of freevo to see if this
has been applied.

> But unfortunately it does not work (yet). I tried to set all
> settings the way you recommended them. My cdrom setting in
> /etc/fstab is still like above. I set the the following setting in
> /etc/freevo/local_conf.py like you recommended:
> 
> 
> ROM_DRIVES = [ ('/media/cdrom0', '/dev/hdc', 'DVD') ]
> 
> And I set:
> 
> ROM_DRIVES_AUTOFS = True

Try this:
in /etc/fstab add another entry for the DVD drive, say /mnt/dvd, make a
/mnt/dvd directory.

Set the following in local_conf.py
ROM_DRIVES_AUTOFS = False
ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]

> The auto mounter from Debian indeed mounts my DVD drive at
> /media/cdrom0 (I checked w/ my file browser). When I insert a DVD
> the video_ts and audio_ts folders show up in /media/cdrom0 (and in
> the symlink to it called "/media/cdrom"). But freevo still will not
> play my DVD's. Freevo still only shows the folders that are on the
> DVD. It is not, like you suggested, due to some sort of copy
> protection. Because all my DVD's show up like that in Freevo, and
> they used to play just fine in Freevo and they still play just fine
> in Xine. Strange, isn't it? Can it be some "code" left behind from
> an old Freevo version on my computer? It reminds me of the trouble I
> had with playing an AVI file from a DVD-ROM. The files showed up in
> Freevo, but wouldn't play (somehow Freevo showed the filenames, but
> could not find the files themselves (?)). Had someting to do w/ the
> two romdrives settings in local_conf.py. Could it be a conflict
> between /etc/freevo/local_conf.py and /home/my_name/.freevo/freevo.conf?
> 
> The errors on the command line when I try to play a dvd and try to
> eject it (which often does not work in Freevo) etcetera are (I hope
> this helps):
> 
> 
> [CODE]
> Freevo 1.9.0 ready
> WARNING: Drive was mounted out of rom_drives.py: /media/cdrom0
> WARNING: Inconsistency regarding the mount status of: /media/cdrom0
> WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"

Not quite sure what an input/output error is caused by. Could be a
driver problem or a disk problem. I don't think that this is freevo
related but could be.

> Freevo 1.9.0 exited

This is a nasty backtrace, you may need to check the packages in your
distro. It looks like a possible problem with libX11 or perhaps libSDL,
pygame or even the Python build. Since you are using Python-2.5 make
sure that you are using 2.5.4.

> *** glibc detected *** python: free(): invalid pointer: 0x099c5f88 ***
> === Backtrace: =
> /lib/i686/cmov/libc.so.6[0xb7da3624]
> /lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7da5826]
> /usr/lib/libX11.so.6[0xb6e3e81e]
> /usr/lib/libX11.so.6(XrmDestroyDatabase+0x85)[0xb6e55a65]
> /usr/lib/libX11.so.6(_XFreeDisplayStructure+0x141)[0xb6e40601]
> /usr/lib/libX11.so.6(XCloseDisplay+0xf6)[0xb6e2d1b6]
> /usr/lib/libSDL-1.2.so.0[0xb7a57d7e]
> /usr/lib/libSDL-1.2.so.0[0xb7a61b71]
> /usr/lib/libSDL-1.2.so.0(SDL_VideoQuit+0x50)[0xb7a4fc70]
> /usr/lib/libSDL-1.2.so.0(SDL_QuitSubSystem+0x64)[0xb7a25584]
> /usr/lib/python2.5/site-packages/pygame/base.so[0xb7ae89ce]
> /usr/lib/python2.5/site-packages/pygame/base.so[0xb7ae8a8a]
> python(Py_Finalize+0x167)[0x80ed617]
> python(Py_Main+0x5ef)[0x8058d0f]
> python(main+0x22)[0x80586f2]
> /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7d4b455]
> python[0x8058631]
> === Memory map: 
> 08048000-08143000 r-xp  03:03 1491132/usr/bin/python2.5
> 08143000-08168000 rw-p 000fa000 03:03 1491132/usr/bin/python2.5
> 08168000-0816e000 rw-p 08168000 00:00 0
> 097ba000-0a35a000 rw-p 097ba000 00:00 0  [heap]
> b34d6000-b3657000 rw-p b34d6000 00:00 0
> b3769000-b376a000 ---p b3769000 00:00 0
> b376a000-b3f6a000 rw-p b376a000 00:00 0
> b3f6a000-b3f72000 r-xp  03:03 1838724   
> /usr/lib/python2.5/lib-dynload/_elementtree.so
> b3f72000-b3f73000 rw-p 8000 03:03 1838724   
> /usr/lib/python2.5/lib-dynload/_elementtree.so
> b3f73000-b40a6000 r-xp  03:03 1493887   
> /usr/lib/libxml2.so.2.6.32
> b40a6000-b40ab000 rw-p 00132000 03:03 1493887   
> /usr/lib/libxml2.so.2.6.32
> b40ab000-b40ac000 rw-p b40ab000 00:00 0
> b45dd000-b45ec000 r-xp  03:03 770075 /lib/libbz2.so.1.0.4
> b4

Re: [Freevo-users] Freevo 1.9.0 crash

2009-05-31 Thread Duncan Webb
tor3 kk wrote:
> Hi all,
> 
> since the last update to 1.9.0, Freevo crashes on startup in my system.
> I'm using latest freevo /kaa packages from Debian Sid. The log entries
> are the following:
> 
> 
> Freevo 1.9.0 r11576 started at Sun May 31 10:41:04 2009
> 
> 2009-05-31 10:41:05,591 INFO new process watcher instance
> 2009-05-31 10:41:05,601 ERRORUnhandled InProgress exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/kaa/thread.py", line 355, in
> __call__
> result = super(MainThreadCallback, self).__call__(*args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/kaa/callback.py", line 212, in
> __call__
> result = cb(*cb_args, **cb_kwargs)
>   File "/usr/lib/python2.5/site-packages/kaa/timer.py", line 145, in start
> self._id = notifier.timer_add(int(interval * 1000), self)
>   File "/usr/lib/python2.5/site-packages/kaa/nf_wrapper.py", line 124,
> in __call__
> init()
>   File "/usr/lib/python2.5/site-packages/kaa/nf_wrapper.py", line 175,
> in init
> if notifier.loop:
> AttributeError: 'module' object has no attribute 'loop'
> 2009-05-31 10:41:05,602 INFO Create-stack for InProgress from
> preceding exception:
>   File "/usr/lib/python2.5/site-packages/freevo/main.py", line 55, in
> 
> rc.get_singleton(is_helper=0)
>   File "/usr/share/pyshared/freevo/rc.py", line 63, in get_singleton
> _singleton = EventHandler(**kwargs)
>   File "/usr/share/pyshared/freevo/rc.py", line 530, in __init__
> self.inputs.append(Keyboard())
>   File "/usr/share/pyshared/freevo/rc.py", line 290, in __init__
> self.callback = osd.get_singleton()._cb
>   File "/usr/share/pyshared/freevo/osd.py", line 122, in get_singleton
> _singleton = OSD()
>   File "/usr/share/pyshared/freevo/osd.py", line 456, in __init__
> os.system('rm -f /tmp/freevo_ss*.bmp')
>   File "/usr/lib/python2.5/site-packages/kaa/timer.py", line 95, in newfunc
> t.start(interval)
>   File "/usr/lib/python2.5/site-packages/kaa/thread.py", line 123, in
> newfunc
> in_progress = callback(*args, **kwargs)
> 
> 
> 
> Any idea?

Assuming that this was an update did you remove the old kaa packages first?

It is quite safe to:
rm -r /usr/lib/python2.5/site-packages/kaa*

And then reinstall the packages.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-05-31 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/5/30 Duncan Webb mailto:dun...@freevo.org>>
> 
> Meneer Jansen wrote:
> > I recently upgraded to Freevo 1.9.0 which does not crash on trying to
> > search the IMDB, but does not find any info either. That's sort of
> nice
> > I guess...
> >
> > But I used to be able to play my beloved DVD's w/ Freevo. It
> started
> > Xine then, or I could choose to use mplayer instead. I had to fiddle
> > around a bit to get Freevo to recognize the DVD, but it worked when I
> > did this:
> > 1. Eject the DVD.
> > 2. Stop Freevo.
> > 3. Start Freevo again: now the DVD tray closes and Freevo
> recognizes the
> > DVD.
> >
> > However, that does not work anymore and neither does fiddeling w/ the
> > following parameters (which used to work too):
> > ROM_DRIVES_AUTOFS = True/False
> > ROM_DRIVES = None (or comment this line out)
> >
> > How do I get Freevo to recognise my beloved DVD's again?
> 
> It should work fine.
> 
> To help you we need more information as to how you have set-up the
> mounting of DVDs.
> 
> Are you using autofs or do you have the drive configured in /etc/fstab
> and what are settings in local_conf.py for the ROM_DRIVES.*?
> 
> Duncan
> 
> Thank you for your clear reply. Indeed, I did not provide you all w/
> enough information. I let Debian Stable 5.0 Lenny automount my DVD's and
> CD's. Which works fine for me.
> 
> Considered to Synaptic I've installed autofs 5.0.3-3. Is that a good or
> a bad thing? In my /etc/fstab I've configured my dvd-drive as follows:
> 
> /dev/hdc/media/cdrom0  udf,iso9660 user,auto
> 0   0
> 
> Is that good or bad? In /etc/freevo/local_conf.py I commented out my old
> ROM_DRIVES parameter I've set in the past, so to let Freevo do it
> automatically. This worked just fine in Freevo 1.8.3. I've set the other
> parameters as follows (and tried to modify them w/ no result):
> ROM_DRIVES_AUTOFS = True
> ROM_DRIVES = None

I think that this is your problem, if you use the auto-mounter then you
need to tell freevo where the CD/DVD drive is, at least with
"udf,iso9660" as freevo is looking for " iso9660 " in /etc/fstab.

So the easiest way is to use the ROM_DRIVES setting such as:
ROM_DRIVES = [ ('/media/cdrom0', '/dev/hdc', 'DVD') ]

The ROM_DRIVES_AUTOFS setting tells freevo not to mount or umount the
drive as this is handled by the auto-mounter.

What you need to check is that the auto-mounter is actually using
/media/cdrom0 and not another mount point.

> What actually happens when I insert a DVD is as follows. If I fiddle a
> bit w/ inserting and ejecting the DVD and restarting Freevo until it
> will show up in Freevo's Movie menu. Strangely, it also shows up in the
> Audio menu. So Freevo does not seem to realize that it is a Video DVD.
> When I press Enter on my "Gladiator" DVD (for example) in the Movie
> menu, Freevo does not start Xine to play the DVD, but I see the video_ts
> and audio_ts folders instead. Strange isn't it? And when I enter those
> directories and press Enter on one of the VOB's then my computer hangs.

It is possible the Gladiator has a copy protection system that stops it
being correctly detected so try another disk.

Attached is a patch that does a bit more logging of the ROM-drive detection.

Duncan
Index: src/config.py
===
--- src/config.py	(revision 11576)
+++ src/config.py	(working copy)
@@ -816,26 +816,31 @@
 match_automount = re_automount.match(line)
 match_bymountcd = re_bymountcd.match(line)
 match_bymountdvd= re_bymountdvd.match(line)
-mntdir = devname = ''
+mntdir = devname = dispname = ''
 if match_cd or match_bymountcd:
 m = match_cd or match_bymountcd
+_debug_('match_cd or match_bymountcd=%r' % (m.groups(),))
 mntdir = m.group(2)
 devname = m.group(1)
 dispname = 'CD-%s' % (len(ROM_DRIVES)+1)
 elif match_cdrec:
+_debug_('match_cdrec=%r' % (match_cdrec.groups(),))
 mntdir = match_cdrec.group(2)
 devname = match_cdrec.group(1)
 dispname = 'CDREC-%s' % (len(ROM_DRIVES)+1)
 elif match_dvd or match_bymountdvd:
 m = match_dvd or match_bymountdvd
+_debug_('match_dvd or match_bymountd

Re: [Freevo-users] Kaa-diplay installation error

2009-05-30 Thread Duncan Webb
Jason Tackaberry wrote:
> On Sat, 2009-05-30 at 11:59 +0200, Duncan Webb wrote:
>> kaa.display is used for mplayer to display the paused and play icons. In
>> fact, you lose the audio, subtitle and other mplayer osd messages when
>> this is active so it may be better to remove kaa.display from your
>> site-packages.
> 
> Hm, why would subtitles be lost?  Even at -osdlevel 0, subtitles should
> still work.

You don't lose the subtitles but the OSD message that displays which
subtitles have been chosen.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Trying to load mplayervis

2009-05-30 Thread Duncan Webb
Duncan Webb wrote:
> Jim Duda wrote:
>> Duncan Webb wrote:
>>
>>> Interesting so it look like the data has changed as the code has not
>>> changed for ages.
>>>
>>> Index: src/util/pymetar.py
>>> ===
>>> --- src/util/pymetar.py (revision 11576)
>>> +++ src/util/pymetar.py (working copy)
>>> @@ -834,7 +834,7 @@
>>>
>>>  elif (header == "Temperature"):
>>>  f,i,c,i=data.split(None,3)
>>> -self.Report.tempf=int(f)
>>> +self.Report.tempf=int(float(f))
>>>  # The string we have split is "(NN C)", hence the slice
>>>  self.Report.temp=int(c[1:])
>>>
>> I think we're just peeling the onion here ...
>>
>> Now I get:get:
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.5/site-packages/freevo/plugins/idlebar/weather.py", 
>> line 74, in run
>> pr = rp.ParseReport(rep)
>>   File "/nfsroot/usr/lib/python2.5/site-packages/freevo/util/pymetar.py", 
>> line 839, in ParseReport
>> self.Report.temp=int(c[1:])
>> ValueError: invalid literal for int() with base 10: '10.0'
>> ERROR: invalid literal for int() with base 10: '10.0'
> 
> Yes of course. Two ways to solve this make the string a float and let
> the display decide how to display it. Change the parsing of the temp
> data to use a regular expression search/match.
> 
> You may like to try the patches but may need to restore the original
> versions first.

Forget the second patch is was not too cleaver :-(

The attached should be better.

Duncan
Index: src/util/pymetar.py
===
--- src/util/pymetar.py	(revision 11576)
+++ src/util/pymetar.py	(working copy)
@@ -833,10 +833,11 @@
 # temperature
 
 elif (header == "Temperature"):
-f,i,c,i=data.split(None,3)
-self.Report.tempf=int(f)
-# The string we have split is "(NN C)", hence the slice
-self.Report.temp=int(c[1:])
+# data is something like:
+# '62 F (17 C)' and may have decimal points
+m = re.search('(\d+).* F.*\((\d+).* C\)', data)
+self.Report.tempf = int(m.group(1)) if m and len(m.groups()) >= 1 else -1
+self.Report.temp = int(m.group(2)) if m and len(m.groups()) >= 2 else -1
 
 
 # wind dir and speed
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Trying to load mplayervis

2009-05-30 Thread Duncan Webb
Jim Duda wrote:
> Duncan Webb wrote:
> 
>> Interesting so it look like the data has changed as the code has not
>> changed for ages.
>>
>> Index: src/util/pymetar.py
>> ===
>> --- src/util/pymetar.py (revision 11576)
>> +++ src/util/pymetar.py (working copy)
>> @@ -834,7 +834,7 @@
>>
>>  elif (header == "Temperature"):
>>  f,i,c,i=data.split(None,3)
>> -self.Report.tempf=int(f)
>> +self.Report.tempf=int(float(f))
>>  # The string we have split is "(NN C)", hence the slice
>>  self.Report.temp=int(c[1:])
>>
> 
> I think we're just peeling the onion here ...
> 
> Now I get:get:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/idlebar/weather.py", 
> line 74, in run
> pr = rp.ParseReport(rep)
>   File "/nfsroot/usr/lib/python2.5/site-packages/freevo/util/pymetar.py", 
> line 839, in ParseReport
> self.Report.temp=int(c[1:])
> ValueError: invalid literal for int() with base 10: '10.0'
> ERROR: invalid literal for int() with base 10: '10.0'

Yes of course. Two ways to solve this make the string a float and let
the display decide how to display it. Change the parsing of the temp
data to use a regular expression search/match.

You may like to try the patches but may need to restore the original
versions first.

Duncan
Index: src/util/pymetar.py
===
--- src/util/pymetar.py	(revision 11576)
+++ src/util/pymetar.py	(working copy)
@@ -833,10 +833,11 @@
 # temperature
 
 elif (header == "Temperature"):
-f,i,c,i=data.split(None,3)
-self.Report.tempf=int(f)
-# The string we have split is "(NN C)", hence the slice
-self.Report.temp=int(c[1:])
+# data is something like:
+# '62 F (17 C)' and may have decimal points
+m = re.search('(\d+).* F.*\((\d+).* C\)', data)
+self.Report.tempf = float(m.groups(0)) if m else -1
+self.Report.temp = float(m.groups(1)) if m else -1
 
 
 # wind dir and speed
Index: src/plugins/idlebar/weather.py
===
--- src/plugins/idlebar/weather.py	(revision 11576)
+++ src/plugins/idlebar/weather.py	(working copy)
@@ -75,11 +75,11 @@
 
 if pr.getTemperatureCelsius():
 if self.tempunits == 'F':
-self.temperature = '%2d' % int(pr.getTemperatureFahrenheit())
+self.temperature = '%2d' % pr.getTemperatureFahrenheit()
 elif self.tempunits == 'K':
-self.temperature = '%3d' % int(pr.getTemperatureCelsius() + 273)
+self.temperature = '%3d' % pr.getTemperatureCelsius() + 273
 else:
-self.temperature = '%2d' % int(pr.getTemperatureCelsius())
+self.temperature = '%2d' % pr.getTemperatureCelsius()
 else:
 self.temperature = '?'
 
Index: src/util/pymetar.py
===
--- src/util/pymetar.py	(revision 11576)
+++ src/util/pymetar.py	(working copy)
@@ -834,9 +834,9 @@
 
 elif (header == "Temperature"):
 f,i,c,i=data.split(None,3)
-self.Report.tempf=int(f)
+self.Report.tempf=float(f)
 # The string we have split is "(NN C)", hence the slice
-self.Report.temp=int(c[1:])
+self.Report.temp=float(c[1:])
 
 
 # wind dir and speed
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo 1.9.0 won't play my DVD's

2009-05-30 Thread Duncan Webb
Meneer Jansen wrote:
> I recently upgraded to Freevo 1.9.0 which does not crash on trying to
> search the IMDB, but does not find any info either. That's sort of nice
> I guess...
> 
> But I used to be able to play my beloved DVD's w/ Freevo. It started
> Xine then, or I could choose to use mplayer instead. I had to fiddle
> around a bit to get Freevo to recognize the DVD, but it worked when I
> did this:
> 1. Eject the DVD.
> 2. Stop Freevo.
> 3. Start Freevo again: now the DVD tray closes and Freevo recognizes the
> DVD.
> 
> However, that does not work anymore and neither does fiddeling w/ the
> following parameters (which used to work too):
> ROM_DRIVES_AUTOFS = True/False
> ROM_DRIVES = None (or comment this line out)
> 
> How do I get Freevo to recognise my beloved DVD's again?

It should work fine.

To help you we need more information as to how you have set-up the
mounting of DVDs.

Are you using autofs or do you have the drive configured in /etc/fstab
and what are settings in local_conf.py for the ROM_DRIVES.*?

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Recordserver starting error

2009-05-30 Thread Duncan Webb
publ...@free.fr wrote:
> 
> Me again
> 
> With 1.9.0 installation when i launch recordserver like this :
> 
> freevo recordserver start
> 
> I've got the following error :
> 
> ATTENTION: [Errno 2] No such file or directory:
> '/var/lib/freevo/favorites.pickle'
> 
> 
> What to do ?
> Create a empty favorite.pickle file ?
> 
> Or use the convert_favorite tool ?
> freevo convert_favorites /path/to/old-record_schedule.xml

>From which version did you upgrade from, if it was 1.7.x then use the
"freevo convert_favorites /path/to/old-record_schedule.xml" command.

The /var/lib/freevo/favorites.pickle should be created as this is a
warning message.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Kaa-diplay installation error

2009-05-30 Thread Duncan Webb
publ...@free.fr wrote:
> Thanks, yes it seems to works fine
> 
> 
> Selon Dirk Meyer :
> 
>> publ...@free.fr wrote:
>>> Imlib2 was compiled without X11 support. Therefore Imlib2 for
>> thekaa.display.X11
>>> module is disabled. Please re-compile imlib2 with X11support or add
>>> --disable-imlib2-x11 to the setup.py parameter
>> That is the problem
>>
>>> How can I compile imlib2 with X11 support ?
>> I guess your distro already has imlib2-with-X packages.
>>
>>> What is the incidence of compiling kaa-display with --disable-imlib2-x11
>>> parametre ?
>>> Even with this error freevo seems to be OK, is it normal ?
>>
>> No idea, I guess it does not matter because it is only used for shaped
>> windows.

kaa.display is used for mplayer to display the paused and play icons. In
fact, you lose the audio, subtitle and other mplayer osd messages when
this is active so it may be better to remove kaa.display from your
site-packages.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Trying to load mplayervis

2009-05-27 Thread Duncan Webb
Jim Duda wrote:
> Duncan Webb wrote:
> 
>> When you upgraded, did you remove the build directory and the
>> site-packages/freevo.
> 
> I believe I had deleted both of those directories.
> 
> I saw the 1.9.0 release notice and just used that one.
> 
> Now I just get this:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/idlebar/weather.py", 
> line 74, in run
> pr = rp.ParseReport(rep)
>   File "/usr/lib/python2.5/site-packages/freevo/util/pymetar.py", line 837, 
> in ParseReport
> self.Report.tempf=int(f)
> ValueError: invalid literal for int() with base 10: '53.1'
> ERROR: invalid literal for int() with base 10: '53.1'

Interesting so it look like the data has changed as the code has not
changed for ages.

Index: src/util/pymetar.py
===
--- src/util/pymetar.py (revision 11576)
+++ src/util/pymetar.py (working copy)
@@ -834,7 +834,7 @@

 elif (header == "Temperature"):
 f,i,c,i=data.split(None,3)
-self.Report.tempf=int(f)
+self.Report.tempf=int(float(f))
 # The string we have split is "(NN C)", hence the slice
 self.Report.temp=int(c[1:])

> I appear to be up and running okay with 1.9.0
> 
> Thanks for all your great work Duncan !!

Pleasure

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] [ANNOUNCE] Release 1.9.0 of Freevo

2009-05-26 Thread Duncan Webb
Hi all,

Just to let you know that the release of Freevo-1.9.0 is now available
for download from those nice people at SourceForce:
https://sourceforge.net/project/downloading.php?group_id=46652&filename=freevo-1.9.0.tar.gz&a=70059669

and the MD5 sums are here:
https://sourceforge.net/project/downloading.php?group_id=46652&filename=freevo-1.9.0.tar.gz.MD5&a=16672258

The ChangeLog in all its glory is here: http://doc.freevo.org/ChangeLog

Do have fun with the new release and all its goodies.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Trying to load mplayervis

2009-05-26 Thread Duncan Webb
Jim Duda wrote:
> Duncan Webb wrote:
>> Yes you need 0.2.x, the current version is in contrib/runtime/pygoom-2k4
>> and there are some pre-built binaries pygoom-2k4-0.2.1.linux-i686.tar.gz
>> and pygoom-2k4-0.2.1.linux-x86_64.tar.gz.
>>
>  
> Duncan,
> 
> Thanks for the tip.  Using the 0.2.x version of pygoom corrected the 
> mplayervis 
> startup errors.
> 
>>> 2009-05-25 09:31:29,887 ERRORweather.py (101): invalid literal for 
>>> int() with base 10: '66.0'
>> This looks like a bug and so hopefully this is now fixed.
> 
> 
> I updated to the latest freevo_1.8.4 in svn just now.  I'm getting new errors:
> 
> version: 1.8.4 r11569
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/freevo/plugins/idlebar/weather.py", 
> line 74, in run
> pr = rp.ParseReport(rep)
>   File "/usr/lib/python2.5/site-packages/freevo/util/pymetar.py", line 837, 
> in ParseReport
> self.Report.tempf=int(f)
> ValueError: invalid literal for int() with base 10: '73.0'
> ERROR: invalid literal for int() with base 10: '73.0'
> CRITICAL: Crash!: 'module' object has no attribute 'set_app_context'
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/freevo/main.py", line 554, in 
> 
> MainMenu().getcmd()
>   File "/usr/lib/python2.5/site-packages/freevo/main.py", line 181, in getcmd
> menuw.pushmenu(mainmenu)
>   File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 412, in 
> pushmenu
> self.set_event_context()
>   File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 210, in 
> set_event_context
> rc.set_app_context(self, context)
> AttributeError: 'module' object has no attribute 'set_app_context'

When you upgraded, did you remove the build directory and the
site-packages/freevo.

I ask because the rc module does have set_app_context so this error
should not happen.

The idlebar.weather plug-in should work.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Crash on IMDB search for DVD.

2009-05-25 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/5/25 Meneer Jansen  <mailto:meneerjanse...@gmail.com>>
> 
> 
> 
> 2009/5/25 Duncan Webb mailto:dun...@freevo.org>>
> 
> Meneer Jansen wrote:
> > Dear Freevo users,
> >
> > If I choose "Search IMDB for [my_movie_dvd_title]" in the
> menu: "Watch
> > Movies --> DVD --> "E" (for the "Extra" menu) -->  Search IMDB for
> > [my_movie_title]" then Freevo crashes. DVD's for which I
> searched the
> > imdb before appear with their correct picture in the menu. But
> I cannot
> > access the DVD imdb info anymore (because of Freevo crashing).
> >
> > Is their a patch for this?
> 
> May be this is fixed in svn.
> 
> The main problem is that BeautifulSoup, used for parsing the
> HTML data,
> is not really maintained any more (it is but grudgingly). The last
> version to work correctly is 3.0.7a but still has a few parsing
> errors.
> 
> This means that we will have to find a replacement for
> BeautifulSoup in
> a future release.
> 
> Duncan
> 
> 
> Thank you for your fast reply. Strange thing is that it used to work
> just fine. What might have changed in Freevo in such a way that 
> 'BeautifulSoup' will not to work anymore? Or might a downgrade of
> BeautifulSoup help to find a version of it that will be compatible
> w/ Freevo.
> 
> I'll let you know if the prob. still persists in the svn version. Do
> other Freevo-ers have this problem with searching the IMDB for a DVD?
> 
> 
> P.S. How do I svn the latest version of Freevo?
> [url=http://freevo.sourceforge.net/download/freevo.php]This page[/url]
> still says:
> 
> svn co svn://svn.freevo.org/freevo/branches/rel-1-7
> <http://svn.freevo.org/freevo/branches/rel-1-7> freevo-1.7-svn

Look in the ChangeLog page on the wiki, not always 100% up-to-date but
the link for 1.8.4 is there. Tomorrow it will be released as 1.9.0 due
to dropping Python-2.4 support.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Crash on IMDB search for DVD.

2009-05-25 Thread Duncan Webb
Meneer Jansen wrote:
> 
> 
> 2009/5/25 Duncan Webb mailto:dun...@freevo.org>>
> 
> Meneer Jansen wrote:
> > Dear Freevo users,
> >
> > If I choose "Search IMDB for [my_movie_dvd_title]" in the menu: "Watch
> > Movies --> DVD --> "E" (for the "Extra" menu) -->  Search IMDB for
> > [my_movie_title]" then Freevo crashes. DVD's for which I searched the
> > imdb before appear with their correct picture in the menu. But I
> cannot
> > access the DVD imdb info anymore (because of Freevo crashing).
> >
> > Is their a patch for this?
> 
> May be this is fixed in svn.
> 
> The main problem is that BeautifulSoup, used for parsing the HTML data,
> is not really maintained any more (it is but grudgingly). The last
> version to work correctly is 3.0.7a but still has a few parsing errors.
> 
> This means that we will have to find a replacement for BeautifulSoup in
> a future release.
> 
> Duncan
> 
> 
> Thank you for your fast reply. Strange thing is that it used to work
> just fine. What might have changed in Freevo in such a way that 
> 'BeautifulSoup' will not to work anymore? Or might a downgrade of
> BeautifulSoup help to find a version of it that will be compatible w/
> Freevo.

Not always a problem with Freevo but problems with IMDB are caused by
design changes to the IMDB pages.

BeautifulSoup 3.0.7a is okay but 3.1.0 is bad.

> 
> I'll let you know if the prob. still persists in the svn version. Do
> other Freevo-ers have this problem with searching the IMDB for a DVD?
> 

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Crash on IMDB search for DVD.

2009-05-25 Thread Duncan Webb
Meneer Jansen wrote:
> Dear Freevo users,
> 
> If I choose "Search IMDB for [my_movie_dvd_title]" in the menu: "Watch
> Movies --> DVD --> "E" (for the "Extra" menu) -->  Search IMDB for
> [my_movie_title]" then Freevo crashes. DVD's for which I searched the
> imdb before appear with their correct picture in the menu. But I cannot
> access the DVD imdb info anymore (because of Freevo crashing).
> 
> Is their a patch for this?

May be this is fixed in svn.

The main problem is that BeautifulSoup, used for parsing the HTML data,
is not really maintained any more (it is but grudgingly). The last
version to work correctly is 3.0.7a but still has a few parsing errors.

This means that we will have to find a replacement for BeautifulSoup in
a future release.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Trying to load mplayervis

2009-05-25 Thread Duncan Webb
Jim Duda wrote:
> I want to give mplayervis a try.  I'm new to this.
> 
> I followed the instructions to compile and install both goom2k4-0 and 
> pygoom-2k4
> 
> I result in this:
> lroom# ls -ltr /usr/lib | grep goom
> -rwxr-xr-x  1 root root   399249 May 24 22:34 libgoom2.so.0.0.0
> lrwxrwxrwx  1 root root   17 May 24 22:34 libgoom2.so.0 -> 
> libgoom2.so.0.0.0
> lrwxrwxrwx  1 root root   17 May 24 22:34 libgoom2.so -> libgoom2.so.0.0.0
> -rwxr-xr-x  1 root root  783 May 24 22:34 libgoom2.la
> 
> and this:
> 
> lroom# l /usr/lib/python2.5/site-packages/pygoom*
> -rwxr-xr-x 1 root root 89914 May 24 22:50 
> /usr/lib/python2.5/site-packages/pygoom.so
> -rw-r--r-- 1 root root   205 May 24 22:50 
> /usr/lib/python2.5/site-packages/pygoom_2k4-0.1.1-py2.5.egg-info
> 
> However, when I start freevo I get an error loading mplayervis.  The log is 
> below.
> 
> I used the pygoom from the contrib/runtime directory of freevo_1.8.4 trunk 
> from svn.
> 
> Do I have the wrong pygoom?

Yes you need 0.2.x, the current version is in contrib/runtime/pygoom-2k4
and there are some pre-built binaries pygoom-2k4-0.2.1.linux-i686.tar.gz
and pygoom-2k4-0.2.1.linux-x86_64.tar.gz.

There are two files that you can change to optimise the build, actually
not as important as optimising goom-2k4. and these are config.h and setup.py

> failed to load plugin audio.mplayervis
> start 'freevo plugins -l' to get a list of plugins
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/freevo/plugin.py", line 569, in 
> __load_plugin__
> exec('import %s' % module)
>   File "", line 1, in 
>   File "/usr/lib/python2.5/site-packages/freevo/audio/plugins/mplayervis.py", 
> line 45, in 
> if not hasattr(pygoom, 'HEXVERSION') and pygoom.HEXVERSION < 0x000200f0:
> AttributeError: 'module' object has no attribute 'HEXVERSION'

HEXVERSION didn't exist in 0.1.x

> 2009-05-25 09:31:29,887 ERRORweather.py (101): invalid literal for int() 
> with base 10: '66.0'

This looks like a bug and so hopefully this is now fixed.

Duncan


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Traceback when trying to stop helpers

2009-05-24 Thread Duncan Webb
John Molohan wrote:
> [j...@localhost freevo]$ sudo freevo encodingserver stop
> encodingserver still running, run 'encodingserver --stop' to stop
> [j...@localhost freevo]$ sudo freevo encodingserver --stop
> Traceback (most recent call last):
>   File "/usr/bin/freevo", line 566, in 
> if not stop(name, python + proc):
>   File "/usr/bin/freevo", line 278, in stop
> fname, pid = getpid(name, arg)
>   File "/usr/bin/freevo", line 256, in getpid
> len(proc_arg)>3 and arg[2] != proc_arg[2]):
> IndexError: list index out of range
> [j...@localhost freevo]$

I think that this one got fixed.

BTW svn trouble should be on the freevo-devel list ;-)

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Freevo and FreeBSD...

2009-05-24 Thread Duncan Webb
Anders Trobäck wrote:
> Hi,
> 
> are there any FreeBSD users on this list?
> 
> I'm trying to get my FreeBSD 7.1 box to record with my PVR-350 and was
> hoping that someone have a working config file that I could "borrow"!

Hmm, what bit of configuration do you need to borrow, setting up the
PVR-350 to work with FreeBSD or configuring freevo to use the card?

Can't help with the first one but would be interested in hearing reports
about FreeBSD problems in Freevo.

The second one is easy if you are using a recent(ish) version of Freevo.
Simply type "freevo vg" and copy the output to the local_conf.py.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Bugs appears when upgrade to lenny

2009-05-24 Thread Duncan Webb
Olivier Cherrier wrote:
> Hye, a bug appears when I go from etch to lenny. My version of freevo is 2.1 
> installed from the lenny official repository. Before the upgrade, I have no 
> prolem to manage playlist from freevo, but now, even if I dpkg-reconfigure 
> freevo and add the following lines (indicate from the documentation) to add 
> the playlist plugin: 

I doubt that you version of freevo is 2.1 as this has not yet been released.

> plugin.activate( ‘audio.playlist’, args=( ‘/Path/To/Playlists’, 
> ‘Naming_Scheme %m%d’ ) )
> PLAYLIST_SUFFIX = [ ‘m3u’ ]
> 
> I can't see the my playlists from the correct menu and can't add a file or 
> repository to a playlist.
> 
> The directory where are media file are from a NFS mount but I don't think the 
> error is from this configuration.
> 
> Thanks for any idea.
> 
> Regards
> 
> -> Solution: audio.playlists instead of audio.playlist -> the documentation 
> of audio plugin on the wiki is not up to date.

A better solution would be to run the "freevo convert_config" on your
local_conf.py as this change should have been automatically picked up.
If not let us know.

What mailer are you using, as the text version has single long lines for
a paragraph? If this is thunderbird then the pressing shift key when
clicking write or reply all forces the message to text format.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Fw: Re: Freevo 1.8.3 from source hangs on twisted.web.microdom

2009-05-24 Thread Duncan Webb
Phil Raymond wrote:
> 
> 
> 
> --- On Thu, 4/30/09, Phil Raymond  wrote:
> 
>> From: Phil Raymond 
>> Subject: Re: [Freevo-users] Freevo 1.8.3 from source hangs on 
>> twisted.web.microdom
>> To: dun...@freevo.org
>> Date: Thursday, April 30, 2009, 11:21 AM
>> Thanks, I installed Zope and Freevo 1.8.3 is now installed.
>> However, I'm now having a problem with my local conf.
>> It's telling me I'm using version 5.19. Like I have
>> with previous upgrades, I changed the local conf to match
>> the conf version, in this case 5.26. Is there something else
>> I need to do or change so it recognizes my local conf file?

To see the changes, simply run:
freevo convert_config /path/to/local_conf.py

To update the changes if there are any, run:
freevo convert_config /path/to/local_conf.py -w

If there are none then you can use the above line, it should update the
config version number or update it with an editor.

Sorry I didn't respond earlier, I thought that this was an empty
message. Better to replay again and copy the text from the duff message.
This way keeps the message chain.

Duncan


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] IndexError: list index out of range

2009-05-24 Thread Duncan Webb
J.R. Oldroyd wrote:
> A while back, in bug 2512357, I reported a problem with the favorites
> not being displayed properly prioritized in the web server and attached
> a traceback similar to the one below.  The bug report was closed when
> I was too busy with other stuff to repspond to a comment.
> 
> Since I am now running a recent 1.8.4 svn, and have just had the same
> traceback, it's probably worth discussing this and perhaps re-opening
> that bug.
> 
> The main problem:
>   - the traceback below, ending in:
>   recordserver.py", line 596, in conflictResolution
>   conflictedProgram = conflictedPrograms[0]
>   IndexError: list index out of range

A bit of a difficult problem to reproduce, I gave the conflicted
programs option a quick try and could not easily reproduce the problem.
However I did add a check into svn testing that conflictedPrograms was
not empty; it is possible that this fix simply moved the problem elsewhere.

> Seen when:
>   - this one was during a "freevo tv_grab"; in fact, this one
> is from the tv_grab log file
>   - the TV listings have been downloaded and
>   TV.xml and TV.xml.pickled are new
>   - the schedulefavorites has not completed:
>   schedule.pickle is not current
> 
> Previously, I had also seen this error in the webserver log after
> editing favorites from the web interface when I had also noted that
> the favorites are not listed in the proper order.  (This is still a
> problem, by the way.)  But the IndexError problem appears to be when
> schedulefavorites is run.

I could be a race condition that the schedule is being updated by two
programs at the same time, always difficult to reproduce.

> My TV listings come from ScheduleDirect (tv_grab_na_dd) and are the
> us-bcast ones for my area.
> 
> If I remove TV.xml* and start over, it will complete OK, and it will
> be OK for a few more days, then the problem repeats.
> 
> This was a problem with 1.8.3 also.

If you are able then you might need to debug this problem as it may be
specific to your set-up.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Using usb stick to record

2009-05-24 Thread Duncan Webb
Pirlouwi wrote:
> Hi,
> I need some help.
> I would like to change my TV_RECORD_DIR to make it pointing to the mount
> point of an usb stick, giving me the possibility to pull this usb stick
> out when I want to take the recordings with me on journey.
> Problem is that no file is created when I start a recording, though it
> was ok on an NFS mount point before.
> Is there something special to configure for usb sticks?
> 
> PS: I have tried to start freevo with the stick already mounted, and
> this does not change anything.


I'm not sure that you are doing this the correct way. Recording to a USB
stick can be a bad idea as the transfer rate to the stick may not be
high enough or reliable.

Another way to do this is to use shoppingcart plug-in and move recorded
programs from the hard disk to the usb stick. Of course, it may help to
reencode the video to a different format first.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] How to migrate record schedule and favorites?

2009-05-24 Thread Duncan Webb
Stephen Rowles wrote:
> Hi all,
> 
> Real pain here, hopefully there is a quick and painless solution...
> 
> I've just re-installed my Media Centre machine, which was running a very 
> old Fedora 7, with a slightly more up to date Fedora 10 (possibly I 
> should have waited a week and got Fedora 11.. ah well!).
> 
> I have migrated freevo across and moved from 1.7.something to 1.8.3
> 
> However I cannot get the favourites and scheduled recordings to come 
> across. I've tried copying all sorts of items found in /var/cache/freevo 
> and /var/lib/freevo but to no avail!
> 
> I had lots of favourites setup and many things waiting to be recorded, 
> which files do I need to copy across?

You can run freevo convert_favorites /path/to/old-record_schedule.xml

Should do the trick.

If the schedule of the favuorites get corrupted then there is a tool in
svn to rebuild the favourites from the text file.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Install Issue with latest SVN

2009-05-21 Thread Duncan Webb
Jim Duda wrote:
> Thanks guys.  I guess I need to update my media computers from fedora 9 to 10.

You may prefer just to upgrade Python, a full OS upgrade can be a pain.

> Duncan, does this then not explain why all the fonts on the freevo menus are 
> smaller after upgrade?
> What controls the font size?

Quite a few things, skin, screen size, settings in local_conf.py and the
OSD OVERSCAN settings.

More than likely there are some OSD_FONT* settings that may have changed
a bit. Actually you can now control the scaling.

Duncan

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Install Issue with latest SVN

2009-05-20 Thread Duncan Webb
Jason Tackaberry wrote:
> On Tue, 2009-05-19 at 19:13 -0400, Jim Duda wrote:
>> Exception exceptions.AttributeError: "'NoneType' object has no attribute 
>> 'maxint'" in > 0x832812c>> ignored
> 
> Not a problem with Freevo:
> 
>http://bugs.python.org/issue1704790


Ah thanks Jason, good to know.

It looks like Jim should upgrade his python version to the latest 2.5(.4).

Anyway this is in the destructor of the subprocess object which is
called after setup.py has done its work.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Install Issue with latest SVN

2009-05-19 Thread Duncan Webb
Jim Duda wrote:
> Duncan,
> 
> I was using rel-1 branch, however, the same thing happens with REL-1_8_4 tag.
> 
> lroom# svn info
> Path: .
> URL: svn://svn.freevo.org/freevo/tags/REL-1_8_4/freevo
> Repository Root: svn://svn.freevo.org/freevo
> Repository UUID: cc3e1ea1-1e01-0410-8d68-8b121e83a9d5
> Revision: 11531
> Node Kind: directory
> Schedule: normal
> Last Changed Author: duncan
> Last Changed Rev: 11531
> Last Changed Date: 2009-05-17 14:59:36 -0400 (Sun, 17 May 2009)
> 
> I did autogen.sh, then python setup.py install
> 
> When I run install, I get:
> 
> lroom# python setup.py install
> checking for kaa...found
> checking for kaa.metadata... found
> checking for kaa.imlib2... found
> checking for BeautifulSoup... found
> checking for pygame... found
> checking for Image...  found
> checking for twisted...found
> checking for zope.interface... found
> checking for twisted.web.microdom... found
> running install
> running build
> running build_py
> copying ./src/revision.py -> build/lib/freevo
> running build_scripts
> running install_lib
> copying build/lib/freevo/revision.py -> 
> /usr/lib/python2.5/site-packages/freevo
> byte-compiling /usr/lib/python2.5/site-packages/freevo/revision.py to 
> revision.pyc
> running install_scripts
> changing mode of /usr/bin/freevo to 755
> running install_data
> running install_egg_info
> Removing /usr/lib/python2.5/site-packages/freevo-1.8.4_svn-py2.5.egg-info
> Writing /usr/lib/python2.5/site-packages/freevo-1.8.4_svn-py2.5.egg-info
> Exception exceptions.AttributeError: "'NoneType' object has no attribute 
> 'maxint'" in  0x832834c>> ignored
> 
> What is egg-info?

An egg info is something that was introduced in Python-2.5 and is the
meta data of a package.

If the error is coming from our setup module then I've just committed a
version that will print the traceback, so we may find out what is happening.

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Install Issue with latest SVN

2009-05-17 Thread Duncan Webb
On 18/05/2009 02:57, Jim Duda said the following:
> I updated to the latest svn freevo-1.x today.  I also update kaa.  The
> kaa install went fine.

Hopefully you are using the REL-1_8_4 tag and not the rel-1 branch :-)

> When I attempt to install freevo, I get the errors below:
> 
> Freevo still works, however, all my fonts are smaller.  Does this have
> to do with the install failures below?

Could be.

> lroom# python setup.py clean
> running clean

Not sure if clean does quite what you expect as it may not remove all 
that should be removed. rm -r build && rm -r 
/usr/lib/python2.5/site-packages/freevo is really the only real way to 
clean up an old install.

> lroom# python setup.py install
> checking for kaa...found
> checking for kaa.metadata... found
> checking for kaa.imlib2... found
> checking for BeautifulSoup... found
> checking for pygame... found
> checking for Image...  found
> checking for twisted...found
> checking for zope.interface... found
> checking for twisted.web.microdom... found
> running install
> running build
> running build_py
> copying ./src/revision.py -> build/lib/freevo
> running build_scripts
> running install_lib
> copying build/lib/freevo/revision.py ->
> /usr/lib/python2.5/site-packages/freevo
> byte-compiling /usr/lib/python2.5/site-packages/freevo/revision.py to
> revision.pyc
> running install_scripts
> changing mode of /usr/bin/freevo to 775
> running install_data
> running install_egg_info
> Removing /usr/lib/python2.5/site-packages/freevo-1.8.4_svn-py2.5.egg-info
> Writing /usr/lib/python2.5/site-packages/freevo-1.8.4_svn-py2.5.egg-info
> Exception exceptions.AttributeError: "'NoneType' object has no attribute
> 'maxint'" in  0x832834c>> ignored

Never seen such a problem during a "python setup.py install"

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] [Freevo-devel] PRE-[ANNOUNCE] Release 1.8.4

2009-05-17 Thread Duncan Webb
Jason Tackaberry wrote:
> On Sun, 2009-05-17 at 18:21 +0200, Duncan Webb wrote:
>> Good point, not sure what our strategy is over Python versions. 1.5.4
>> added support for Python-2.4 and 1.3.3 added support for Python-2.3 so
>> it would seem not that important.
> 
> I don't see a problem with _adding_ support during minor revs, but
> removing support during a minor rev seems contrary to what most people
> would expect.

Fine by me. Will do so on the release day.

> For example, if I upgraded from 1.8.3 to 1.8.4 and found that I now need
> to upgrade my distribution, I'd feel a bit deceived. :)

Didn't dischi send a mail out about dropping support for Python-2.4 in
kaa.base and IIRC nobody really objected? May be it is time to make the
jump ;-)

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] [Freevo-devel] PRE-[ANNOUNCE] Release 1.8.4

2009-05-17 Thread Duncan Webb
Jason Tackaberry wrote:
> On Sun, 2009-05-17 at 17:38 +0200, Duncan Webb wrote:
>> For some people the most important change is that Python-2.4 is no
>> longer supported whereas Python-2.6 is now supported.
> 
> I wonder if this change alone warrants a version upgrade to 1.9.0?
> 
> There's an expectation that minor version bumps won't require
> significant platform changes.

Good point, not sure what our strategy is over Python versions. 1.5.4
added support for Python-2.4 and 1.3.3 added support for Python-2.3 so
it would seem not that important.

Does anyone know what the strategy is over minor version bumps?

Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] PRE-[ANNOUNCE] Release 1.8.4

2009-05-17 Thread Duncan Webb
Hello all Freevoers,

Rather than forget or run out of time to do this announcement on the
release day of freevo-1.8.4, planned for 26 May 2009, I will do the
announcement now so that you know what is coming up.

IMPORTANT
=

Most of the translations will need an update as some of the changes to
translatable strings will have broken existing translations.

The release is basically ready to be shipped and the current subversion
revision is available by checking out a copy with:
svn co svn://svn.freevo.org/freevo/tags/REL-1_8_4/freevo freevo-1.8.4

So if you have some time between now and the release date please do a
bit of testing so that the release is as stable as possible. If you like
my was of providing a release candidate.

CONTRIBUTIONS
=
Thanks to you all who have contributed by sending in patches, testing,
reporting problems, updating the translations and keeping the wiki
up-to-date.

Special thanks goes to Adam Charrett for all his work on the user
interface, video overlays and his dvbstreamer.

Also thanks to:
Ian Denton for Icecast and Shoutcast audio plug-ins
Jesper Smith for the torrent plug-in
Helmut Auer for various fixes and updating the German translation
Pascal Schirrmann for ivtv audio levels and the French translation
Andrea Mennucc for the encoding server changes

Belated thanks, as I didn't write a full announcement for 1.8.3 to:
Juan Pablo Soto for some you-tube patches
Alberto González Rodríguez for wikisubtitles video plug-in
Everyone who I have forgotten.

I do hope that nobody has been discouraged to add their bits and pieces
to freevo, sometimes a submitted patch breaks something else and so it
gets rejected. Nothing personal just that the days are not long enough! ;-)

CHANGES
===

For some people the most important change is that Python-2.4 is no
longer supported whereas Python-2.6 is now supported.

The kaa interface has changed so that the latest svn version of kaa is
required until the new kaa packages are released. kaa.display is now
required for the latest video overlays.

The command line syntax has changed, see freevo --help for the details.

DETAILED CHANGES


Here is a list of changes since 1.8.3; these are listed in the order
that Araxis Merge finds the differences.

 - The busy icon has got a bit of animation
 - Some new graphics for albumtree
 - A new OSD dialogue designer
 - Some fixes to the skins, audio date and number of video items
 - A large revision of mplayervis, works much better between tracks and
the visualization can be scaled up so that it will work on low-powered
machines or a HD resolution.
 - Caching has a new crop-detection option what updated the fxd files
 - All the helpers now use optparse for command line processing
 - New images for command.fxd files
 - Weather plug-in oneclick should now get the radar maps
 - New TV categories now has a plug-in to select by category
 - ivtv_xine_tv plug-in has had some major changes
 - recordings_manager has also some significant changes
 - TV channels has had some fixes for numeric channels
 - The dependency of PyXML has now gone
 - The audio container for dvdbackup can now be selected
 - The core modules have also major updates

The full list of changes, that were added to the trackers, is available
here: http://doc.freevo.org/ChangeLog

Cheers,
Duncan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Traceback from manualrecord.rpy

2009-05-14 Thread Duncan Webb
Jonathan Isom wrote:

Same *r*p as in the TV manual record. Should now be fixed in svn. Thanks
for the report.

Duncan
> Hi
> With the latest svn I get this when I try to set a manual record.
>
> Traceback (most recent call last):
>   File "/usr/lib64/python2.6/site-packages/twisted/protocols/basic.py",
> line 231, in dataReceived
> why = self.lineReceived(line)
>   File "/usr/lib64/python2.6/site-packages/twisted/web/http.py", line
> 1067, in lineReceived
> self.allContentReceived()
>   File "/usr/lib64/python2.6/site-packages/twisted/web/http.py", line
> 1108, in allContentReceived
> req.requestReceived(command, path, version)
>   File "/usr/lib64/python2.6/site-packages/twisted/web/http.py", line
> 626, in requestReceived
> self.process()
> ---  ---
>   File "/usr/lib64/python2.6/site-packages/twisted/web/server.py",
> line 150, in process
> self.render(resrc)
>   File "/usr/lib64/python2.6/site-packages/twisted/web/server.py",
> line 157, in render
> body = resrc.render(self)
>   File "/usr/lib64/python2.6/site-packages/freevo/www/web_types.py",
> line 130, in render
> return self._render(request)
>   File "/usr/share/freevo/htdocs/manualrecord.rpy", line 105, in _render
> starttime = time.mktime(strptime.strptime(str(startmonth)+'
> '+str(startday)+' '+str(startyear)+\
> exceptions.AttributeError: 'module' object has no attribute 'strptime'
>
>   


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] schedulefavorites in latest 1.8.4 svn

2009-05-13 Thread Duncan Webb
J.R. Oldroyd wrote:
> On Wed, 13 May 2009 17:51:38 +0200, Duncan Webb  wrote:
>> J.R. Oldroyd wrote:
>>> Hi,
>>>
>>> I just installed the latest svn 1.8.4 version having been running
>>> the 1.8.3 release before.
>>>
>>> Now, when either tv_grab or schedulefavorites is run, the following
>>> error is logged by the recordserver:
>>> ERRORSocket closed before authentication completed
>>> and schedulefavorites reports:
>>> Scheduling favorites for recording:  
>>> TV record server is not available
>>>
>>> Is a config change needed to remedy this, or is this a bug?
>>>
>>> The recordserver IS running, and it is recording programs already
>>> scheduled.
>> This is possibly a problem caused by your version of kaa.base.
>>
> I pulled both freevo and kaa from the svn server:
>   svn://svn.freevo.org/freevo/branches/rel-1/freevo
>   svn://svn.freevo.org/kaa/trunk/base
>   svn://svn.freevo.org/kaa/trunk/imlib2
>   svn://svn.freevo.org/kaa/trunk/metadata
>   
>> What was the command line that you used as is different since 1.8.3
>>
> I used what I've always used:
>   freevo tv_grab
> The listings download as well as the sort/load works fine.  It fails
> when it gets to scheduling the favorites.  Then I tried also with:
>   freevo schedulefavorites
> which also fails.
> 
> What should I be using instead, now?

Should be fixed now, thanks for the report.

Duncan

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] freevo start in 1.8.4 svn version

2009-05-13 Thread Duncan Webb
J.R. Oldroyd wrote:
> On Wed, 13 May 2009 07:48:50 -0500, Jonathan Isom  wrote:
>> On Wed, May 13, 2009 at 5:32 AM, J.R. Oldroyd  wrote:
>>> Having installed the latest svn 1.8.4 version, I notice that the startup
>>> behavior is different from 1.8.3 and earlier.
>>>
>>> Specifically:
>>>freevo recordserver start
>>> does not exit.  The recordserver DOES start, but the command remains
>>> running in the foreground.  Using:
>>>freevo --daemon recordserver start
>>> works instead, but then stopping freevo using:
>>>freevo recordserver stop
>>> no longer works.
>> Hi
>>
>> Try
>> freevo recordserver --stop
>> Later
>>
>> Jonathan
> 
> Ah yes, thanks for the pointer.
> 
> In fact:
>   freevo --daemon recordserver
> and   freevo --stop recordserver
> 
> do what I want.

See the freevo help for more options:
# freevo --help

For helpers, because freevo steals the --help option use:
# freevo  -- --help

And a quick way to get the version information is:
# ./freevo --version
freevo-1.8.4 r11488

Duncan

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] schedulefavorites in latest 1.8.4 svn

2009-05-13 Thread Duncan Webb
J.R. Oldroyd wrote:
> Hi,
> 
> I just installed the latest svn 1.8.4 version having been running
> the 1.8.3 release before.
> 
> Now, when either tv_grab or schedulefavorites is run, the following
> error is logged by the recordserver:
>   ERRORSocket closed before authentication completed
> and schedulefavorites reports:
>   Scheduling favorites for recording:  
>   TV record server is not available
> 
> Is a config change needed to remedy this, or is this a bug?
> 
> The recordserver IS running, and it is recording programs already
> scheduled.

This is possibly a problem caused by your version of kaa.base.

What was the command line that you used as is different since 1.8.3

Please test the tag branch for 1.8.4 as this is what will be released in
two weeks, thanks. svn://svn.freevo.org/freevo/tags/REL-1_8_4/freevo

Duncan

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] No busy icon when entering picture subfolders with current rel-1 svn

2009-05-08 Thread Duncan Webb
John Molohan wrote:
> John Molohan wrote:
>> Hi,
>>
>> Just testing rel-1 svn and I don't a busy icon when entering my 
>> subfolders for pictures. Most of the directories take several seconds to 
>> open but there's no on screen feedback to show anything is happening.

You should have got a busy icon but maybe the animation does not work on
X yet. I'll have to test this but it works quite well with DirectFB.

> Same problem when I choose recursive random play on the root of my music 
> folder.

You don't normally get a busy icon except when entering directories.

I'm not going to release the rel-1 branch as I took a snapshot and
created a tag REL_1_8_4, as you know there is no real difference between
branches and tags in subversion, and I'll apply the fixes to both rel-1
and REL_1_8_4.

The url for the release is:
svn://svn.freevo.org/freevo/tags/REL-1_8_4/freevo so a:
# svn co svn://svn.freevo.org/freevo/tags/REL-1_8_4/freevo rel-184
will give you the code for the actual release.

The main reason for doing this is to freeze the code but allow
additional features into the rel-1 branch.

Duncan

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] python 2.6 popen errorFreevo 1.8.3 ready Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/freevo/main.py", line 299, in eventhandler app.eventhandler(

2009-05-07 Thread Duncan Webb
Phil Raymond wrote:
> Installed 1.8.3 on another machine, and I'm getting this error message, even 
> though Freevo does open. It just won't start recording, here's the error 
> message
> 
> Freevo 1.8.3 ready
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.6/dist-packages/freevo/main.py", line 299, in 
> eventhandler
> app.eventhandler(event)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/util/benchmark.py", 
> line 91, in origfunc
> return func(*args, **kwargs)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/menu.py", line 874, in 
> eventhandler
> self._handle_play_item(menu, event)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/util/benchmark.py", 
> line 91, in origfunc
> return func(*args, **kwargs)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/menu.py", line 683, in 
> _handle_play_item
> action(arg=arg, menuw=self)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/util/benchmark.py", 
> line 91, in origfunc
> return func(*args, **kwargs)
>   File "/usr/local/lib/python2.6/dist-packages/freevo/menu.py", line 111, in 
> select
> self.function(arg=self.arg, menuw=menuw)
>   File 
> "/usr/local/lib/python2.6/dist-packages/freevo/tv/plugins/manual_record.py", 
> line 344, in save_changes
> result = self.check_prog()
>   File 
> "/usr/local/lib/python2.6/dist-packages/freevo/tv/plugins/manual_record.py", 
> line 370, in check_prog
> starttime = time.mktime(strptime.strptime(str(self.start_month)+" 
> "+str(self.start_day)+" "+str(startyear)+" "+str(self.start_time)+":00",'%m 
> %d %Y '+config.TV_TIME_FORMAT+':%S'))
> AttributeError: 'module' object has no attribute 'strptime'
> /usr/local/bin/freevo:36: DeprecationWarning: The popen2 module is 
> deprecated.  Use the subprocess module.
> 
> 
> Any ideas what's going on?

freevo-1.8.3 is Python-2.4 and Python-2.5 compatible, the current svn
(1.8.4) should be Python-2.5 and Python-2.6 compatible.

Having said that this bug may be in svn too.

Duncan

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


  1   2   3   4   5   6   7   8   9   10   >