Re: [Freevo-devel] Saving a pygame.Surface as a PNG

2008-03-11 Thread Rob Shortt
Hi Adam,

Adam Charrett wrote:
 Right annoyingly I thought pygame could do this, although it appears it
 will only be able to do it from the next release (1.8).

I ran into that also.


 So my question is what is the best way to take a pygame.Surface and save
 it as an 8bit paletised/indexed PNG?
 
 It needs to be an index PNG as Vlc won't load anything else for its logo
 filter which I am going to use to display an OSD.
 
 Any help would be much appreciated, I've had a look a kaa.imlib2 but its
 not clear to me whether I can specify the format of the PNG. I haven't had
 a look at PIL yet, but I was hoping to keep the dependencies the same as
 freevo 1.

My first thought was PIL, but kaa.imlib2 should work fine as well.  Take
a look at some of the mevas code in the kaa SVN.  You'll likely need to
use the pygame Surface fromstring()/whatever and create in imlib2 or PIL
image with that data (both libraries have that ability).  I think you
can specify the image format in imlib2, or create it as raw and then
convert it to the PNG you need.

-Rob





signature.asc
Description: OpenPGP digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Kaa notifier traceback

2008-01-11 Thread Rob Shortt
Duncan Webb wrote:
 |# catch SIGTERM and SIGINT if possible for a clean shutdown
 |if threading.enumerate()[0] == threading.currentThread():
 |def signal_handler(*args):
 |#sys.exit(0)
 |pass
 |signal.signal(signal.SIGTERM, signal_handler)
 |signal.signal(signal.SIGINT, signal_handler)
 |else:
 |log.info('kaa imported from thread, disable SIGTERM handler')

Duncan, instead of commenting out the sts.exit(0), can you
raise SystemExit instead?

-Rob



signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Kaa notifier traceback

2008-01-10 Thread Rob Shortt
John Molohan wrote:
 When shutting down rel-1 with up to date kaa svn I get:
..
 type 'exceptions.SystemExit': 0
 
 It shows in then web server and encoding server logs and gets printed to 
 screen but doesn't make it into main.log.

John, does this only happen when webserver and encodingserver are
shutting down?  I'm dealing with pretty much the same thing using the
twisted_experimental notifier.

-Rob



signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Kaa r2963 - trunk/base/src/notifier/pynotifier

2008-01-09 Thread Rob Shortt
Dirk Meyer wrote:
 What happens if you call setp without ever calling loop before?

This is what's happening in our case, we don't run the loop() in
nf_twisted.py.  These extra bits, and also what's in _init(), are what
reactor.run() and it's loop does.  This way we can just init the
notifier and use kaa.notifier's loop() which just calls step() over and
over (twisted doesn't have a real step()-like method).  This way we're
doing exactly what reactor.run() does without using the twisted loop
directly.

-Rob



signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] new twisted based notifier

2008-01-09 Thread Rob Shortt
Duncan Webb wrote:
 I have seen some problems shutting down, but didn't investigate the cause.

I've committed another change which is working better for me on Linux
and Win32 (not that recordserver runs there).  Please update.

Thanks!
-Rob



signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] new twisted based notifier

2008-01-08 Thread Rob Shortt
Duncan Webb wrote:
 I'll test it over the next few days before committing the change, the 
 recordserver needs an extended period of testing to be fairly sure it is 
 correctly working.

Thanks, Duncan.  Just let me know if there are any problems.  I checked
in a few improvements earlier today, not sure if you are up to date there.

I have some local changes as well, to improve shutting down, so you may
see some problems there I'm not sure.

Thanks,
-Rob





signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] new twisted based notifier

2008-01-07 Thread Rob Shortt
Hi!

Some of you already know that I've committed a notifier loop based on
twisted.  This one doesn't use threads to run the notifier and twisted
loops separately but actually uses the default twisted rector
(selectrector) as the main loop.

Since twisted and kaa/pynotifier handle sockets and timers in a similar
way (and both are asynchronous main loops) I was able to hook them
together pretty well.  The file of interest is
kaa/trunk/base/src/notifier/pynotifier/nf_twisted.py.  To use this
notifier you must call kaa.notifier.init('twisted_experimental').  Once
this is deemed bug free I think we'll rename it 'twisted' and move that
one to 'twisted_threaded' (or remove one of the threaded ones?).

This one could use some more testing.  I think recordserver is a good
candidate (1.x branch).  Attached is a quick patch.

Duncan, can you test this out?  Everyone else is welcome to test as
well, the more feedback the better.  If it works we can make it the
default for recordserver.

Thanks,
-Rob



Index: src/helpers/recordserver.py
===
--- src/helpers/recordserver.py	(revision 10268)
+++ src/helpers/recordserver.py	(working copy)
@@ -1714,7 +1714,7 @@
 
 
 def main():
-kaa.notifier.init('twisted')
+kaa.notifier.init('twisted_experimental')
 
 socket = (config.RECORDSERVER_IP, config.RECORDSERVER_PORT2)
 secret = config.RECORDSERVER_SECRET
@@ -1730,9 +1730,7 @@
 
 reactor.listenTCP(config.RECORDSERVER_PORT, server.Site(rs))
 rs.startMinuteCheck()
-reactor.run()
-_debug_('reactor stopped.')
-kaa.notifier.shutdown()
+kaa.main()
 _debug_('kaa.notifier stopped.')
 
 #kaa.notifier.AtTimer(rs.handleTimer).start(sec=45)


signature.asc
Description: OpenPGP digital signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Planned releases, 1.7.5 and 1.8.0rc1

2007-12-19 Thread Rob Shortt
Rob Shortt wrote:
 self._screen.gui.event(e)

Oops, nevermind that call.  That's me using PGU [1] for GUI controls
(nice, I might add).

-Rob

[1]: Phil's pyGame Utilities: http://www.imitationpickles.org/pgu/wiki/index
http://libregamewiki.org/Phil's_pyGame_Utilities



signature.asc
Description: OpenPGP digital signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Planned releases, 1.7.5 and 1.8.0rc1

2007-12-19 Thread Rob Shortt
Duncan Webb wrote:
 I wonder if it is possible to incorporate the pygame event loop into
 notifier or may be another way to get mouse events.

Sure, here's an example:

def step_event(self):
for e in pygame.event.get():
if e.type is QUIT:
sys.exit(0)
if e.type is KEYDOWN:
if e.key == K_ESCAPE or e.key == K_q:
sys.exit(0)
elif e.key == K_f:
pygame.display.toggle_fullscreen()

self._screen.gui.event(e)
return True


kaa.notifier.Timer(self.step_event).start(1.0/10)


This empties the pygme event queue 10 times per second, which seems to
be enough for me.  For Freevo, inside that for loop you could access
some dict / mapping to translate specific pygame events to Freevo events
and fire them off.

I hope that helps.  It just so happens that I've been writing some
kaa+pygame code.

-Rob



signature.asc
Description: OpenPGP digital signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] kaa SVN browsing

2007-11-28 Thread Rob Shortt
John Molohan wrote:
 Good to see you're still popping in :) Any chance this could be listed 
 under http://tvcentric.com/viewvc/ then I could just link to that page?

Hi!  Yeah, I still read the ml at least once a week orso, sometimes more
often.  I am super busy at work, with my family (my baby girl is over 5
months old now!), with home improvements, and teaching kickboxing on the
side.  LOL... so I don't have much time for hacking.  Luckily I'm still
doing python and something nearly Freevo related at work.

About the viewvc, it is there, but under the dropdown box for repository.

-Rob





signature.asc
Description: OpenPGP digital signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] kaa SVN browsing

2007-11-27 Thread Rob Shortt
Evan Hisey wrote:
 Sounds great to me, every extra hand helps. There is Rob's svn browser
 but I don't think that includes kaa.

It does. :)

http://tvcentric.com/viewvc/kaa/?root=kaa

It's just under a different root.

Chow.
-Rob





signature.asc
Description: OpenPGP digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Weekly 2.0 SVN Update

2007-02-10 Thread Rob Shortt
Dirk Meyer wrote:
   - input.event_device
 I can't test the plugin. It would be nice if someone could port
 this plugin to the new config code (see x11.py or lirc.py as
 example). Note: the config itself is in input/config.cxml and
 input/plugins/config.cxml.
 
   - input.dfbevents
 I can't test it and it needs to be activated when dfb is working
 again. We need someone to take over the dfb port of freevo. Please
 contact us.

I will port those two, since I wrote them, and have no problem 
continuing to maintain them.

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Kaa Installation [xine?]

2007-02-08 Thread Rob Shortt
Dirk Meyer wrote:
 mike lewis wrote:
 On 2/8/07, Jason Tackaberry [EMAIL PROTECTED] wrote:
 On Wed, 2007-02-07 at 20:44 +0100, Dirk Meyer wrote:
 That is odd. The code should not be compiled unless you have directfb
 installed. Do you have directfb-config or directfb can be found using
 pkgconfig? See setup.py in kaa.xine for details.
 The fact that the first error is not a missing directfb.h but error:
 'IDirectFBScreen' has no member named 'GetSize' suggests instead he may
 be using an older directfb.  (Or perhaps a new one than Rob had when he
 hacked on kaa.xine.)

 Mike, what version of directfb do you have?

 Hmm.  I didn't think that I had it.  I'm not running it.  But I may
 have apt-get'd it without thingking!  I do that alot ;-).  That is the
 most likely scenario.  In fact.  I think thats exactly what happened
 ;-).  I'll check tonight..
 
 In case you don't read svn log, dfb is dissabled now until someone
 fixes it. 

I've upped the version requirement to 1.0.0, that should do it.

-Rob



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-cvslog] Kaa r2401 - trunk/canvas/test/data

2007-01-16 Thread Rob Shortt
Dirk Meyer wrote:
 Arial is not a free font and does not belong into our svn.
 We should define Vera as default font and it it.

I had a funny feeling you were going to say that. :)

-Rob

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] working on evas directfb

2007-01-15 Thread Rob Shortt

Hey guys,

Some of you know that I am trying to get directfb on evas working. 
Attached is my evas patch in case anyone wants to hack around and help 
out.  Right now I am testing it by playing with kaa.canvas and am 
running into some problems.  Also, I had problems building evas's 
directfb suport into kaa.evas and had to remove some defines (maybe I 
should see why now).


In case anyone is feeling like fixing broken code here's my patch.  The 
latest segfault is actually occurring in imlib2.  Here's the backtrace 
from dfbtest.py in kaa.canvas:


#0  0xb7e3d060 in free () from /lib/tls/libc.so.6
#1  0xb7e3ec4f in malloc () from /lib/tls/libc.so.6
#2  0xb784e383 in __imlib_ProduceImage () at image.c:145
#3  0xb784f2fb in __imlib_CreateImage (w=976, h=976, data=0x3d0) at 
image.c:952
#4  0xb784797d in imlib_render_str (im=0x829f3d8, fn=0x829aee8, drx=0, 
dry=0, text=0xb73b77b4 H , r=255 '', g=255 '',
b=255 '', a=255 '', dir=0 '\0', angle=0, retw=0xbf943e44, 
reth=0xbf943e48, blur=0, nextx=0xbf943e4c, nexty=0xbf943e50,

op=OP_COPY, clx=0, cly=0, clw=0, clh=0) at font_draw.c:89
#5  0xb7836781 in imlib_text_draw_with_return_metrics (x=0, y=0, 
text=0xb73b77b4 H , width_return=0x0, height_return=0x0,
horizontal_advance_return=0x0, vertical_advance_return=0x0) at 
api.c:3131
#6  0xb78c90b4 in Image_PyObject__draw_text (self=0x0, args=0x0) at 
src/image.c:430

#7  0x080b9485 in PyEval_EvalFrame ()


I don't know where that w=976, h=976 is comming from, we only have an 
800x600 surface and background heree - could be why it's crashing.


Any help is welcome. :)
-Rob

Index: src/modules/engines/directfb/evas_engine_dfb.c
===
RCS file: 
/var/cvs/e/e17/libs/evas/src/modules/engines/directfb/evas_engine_dfb.c,v
retrieving revision 1.8
diff -u -r1.8 evas_engine_dfb.c
--- src/modules/engines/directfb/evas_engine_dfb.c  17 Oct 2006 10:36:36 
-  1.8
+++ src/modules/engines/directfb/evas_engine_dfb.c  16 Jan 2007 04:36:55 
-
@@ -80,6 +80,10 @@
evas_engine_directfb_image_draw,
evas_engine_directfb_image_comment_get,
evas_engine_directfb_image_format_get,
+   evas_engine_directfb_image_colorspace_set,
+   evas_engine_directfb_image_colorspace_get,
+   evas_engine_directfb_image_native_set,
+   evas_engine_directfb_image_native_get,
 
evas_engine_directfb_image_cache_flush,
evas_engine_directfb_image_cache_set,
@@ -771,7 +775,7 @@
  *
  * */
 void *
-eng_gradient_new(void *data)
+evas_engine_directfb_gradient_new(void *data)
 {
return evas_common_gradient_new();
 }
@@ -914,10 +918,10 @@
re = (Render_Engine *)data;
if (!context || !gradient)  return 0;
return 1;
- }
+}
 
-static void
-eng_gradient_render_pre(void *data, void *context, void *gradient)
+void
+evas_engine_directfb_gradient_render_pre(void *data, void *context, void 
*gradient)
 {
int  len;
Render_Engine *re;
@@ -930,8 +934,8 @@
evas_common_gradient_map(context, gradient, len);
 }
 
-static void
-eng_gradient_render_post(void *data, void *gradient)
+void
+evas_engine_directfb_gradient_render_post(void *data, void *gradient)
 {
 }
 
@@ -965,7 +969,7 @@
  * */
 
 void*
-evas_engine_directfb_font_load(void *data, char *name, int size)
+evas_engine_directfb_font_load(void *data, const char *name, int size)
 {
Render_Engine  *re;
 
@@ -983,7 +987,7 @@
 }
 
 void *
-evas_engine_directfb_font_add(void *data, void *font, char *name, int size)
+evas_engine_directfb_font_add(void *data, void *font, const char *name, int 
size)
 {
Render_Engine *re;
 
@@ -1047,7 +1051,7 @@
 }
 
 void
-evas_engine_directfb_font_string_size_get(void *data, void *font, char *text,
+evas_engine_directfb_font_string_size_get(void *data, void *font, const char 
*text,
  int *w, int *h)
 {
Render_Engine  *re;
@@ -1057,7 +1061,7 @@
 }
 
 int
-evas_engine_directfb_font_inset_get(void *data, void *font, char *text)
+evas_engine_directfb_font_inset_get(void *data, void *font, const char *text)
 {
Render_Engine  *re;
 
@@ -1066,7 +1070,7 @@
 }
 
 int
-evas_engine_directfb_font_h_advance_get(void *data, void *font, char *text)
+evas_engine_directfb_font_h_advance_get(void *data, void *font, const char 
*text)
 {
Render_Engine  *re;
int h, v;
@@ -1077,7 +1081,7 @@
 }
 
 int
-evas_engine_directfb_font_v_advance_get(void *data, void *font, char *text)
+evas_engine_directfb_font_v_advance_get(void *data, void *font, const char 
*text)
 {
Render_Engine  *re;
int h, v;
@@ -1088,7 +1092,7 @@
 }
 
 int
-evas_engine_directfb_font_char_coords_get(void *data, void *font, char *text,
+evas_engine_directfb_font_char_coords_get(void *data, void *font, const char 
*text,
  int pos, int *cx, int *cy, int *cw,
  int *ch)
 {
@@ -1099,7 +1103,7 @@
 }
 
 int

Re: [Freevo-devel] working on evas directfb

2007-01-15 Thread Rob Shortt
I think it's time for bed... too many replies,

Rob Shortt wrote:
 Rob Shortt wrote:
 #3  0xb784f2fb in __imlib_CreateImage (w=976, h=976, data=0x3d0) at 
 ...
 
 I don't know where that w=976, h=976 is comming from, we only have an 
 800x600 surface and background heree - could be why it's crashing.
 
 I just did a cvs update and rebuild / install of imlib2 and now it looks 
 saner but still crashing in the same place:
 
 #0  0xb7ed0060 in free () from /lib/tls/libc.so.6
 #1  0xb7ed1c4f in malloc () from /lib/tls/libc.so.6
 #2  0xb78e2b53 in __imlib_ProduceImage () at image.c:145

Line 145 is:

im = malloc(sizeof(ImlibImage));

in this context:

/* create an image data struct and fill it in */
ImlibImage *
__imlib_ProduceImage(void)
{
ImlibImage *im;

im = malloc(sizeof(ImlibImage));
memset(im, 0, sizeof(ImlibImage));
im-data = NULL;
im-file = NULL;
im-real_file = NULL;
im-key = NULL;
im-flags = F_FORMAT_IRRELEVANT | F_BORDER_IRRELEVANT | 
F_ALPHA_IRRELEVANT;
im-loader = NULL;
im-next = NULL;
im-tags = NULL;
return im;
}

What could be wrong there??  I don't think it's trying to allocate too 
much memory (16x22 image).

I will hit this again in the morning, comments welcome.

-Rob

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] beacon logfile question

2006-12-31 Thread Rob Shortt
Jason Tackaberry wrote:
 On Sat, 2006-12-30 at 21:17 +0100, Dirk Meyer wrote:
 4. Create a special logger for the helper that does not rotate itself
but checks if the main proc has rotated and adjust the file. I
don't know if that is possible.
 
 5. Log everything through the main process, and have the child use rpc
 to log.

I just woke up so this might be stupid, but:

6.  Like it is now but have the logger check to see if there's a newer 
log file it can write to before every write.

-Rob

P.S. - Hi :)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] www.freevo.org issue

2006-12-20 Thread Rob Shortt
mike lewis wrote:
 Just discovered the link off www.freevo.org to Browse Source goes to
 the old cvs; which is dead' not the new svn..
 
 Is there a web front end to the new SVN?  If so, I'd like to know where it is.

You may use: http://tvcentric.com/viewvc/freevo/

-Rob


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] www.freevo.org issue

2006-12-20 Thread Rob Shortt
Jason Tackaberry wrote:
 On Wed, 2006-12-20 at 21:01 -0400, Rob Shortt wrote:
 You may use: http://tvcentric.com/viewvc/freevo/
 
 Nice.  Can you add kaa as well?

Already there. :)  http://tvcentric.com/viewvc/kaa/?root=kaa

-Rob

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-users] Browse Freevo Subversion Repository

2006-11-29 Thread Rob Shortt
naudefj wrote:
 Hi,

Hi,


 Some sourceforge projects allow users to browse through the code with a Web 
 Browser. Here is an example:
 
   http://interix-wgcc.svn.sourceforge.net/viewvc/interix-wgcc/
 
 Can this also be enabled for freevo?

Actually, I have a ViewVC setup for Freevo and Kaa that I haven't told
anyone about yet. :)  It is running on an svk mirror of the subversion
repository and potentially an hour behind (which shouldn't be a big
deal).  There are a couple of other minor issues that I need to fix as well.

go to:  http://tvcentric.com/viewvc/freevo/

-Rob



signature.asc
Description: OpenPGP digital signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-users] Browse Freevo Subversion Repository

2006-11-29 Thread Rob Shortt
naudefj wrote:
 Hi,
 
 On Wednesday 29 November 2006 22:11, Benjamin Zores wrote:
 (but maybe sf.net don't allow much to be done).

 Ben
 
 Looks like a setting the project admnistrator can enable. Look at this page 
 (Code-SVN Browse menu): 
 
   http://sourceforge.net/projects/interix-wgcc

The Freevo repository moved from CVS on Sourceforge to SVN on 
svn.freevo.org.  Due to security concerns no ViewVC or similar app has 
been setup there.

-Rob

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Integration of Freevo in GeeXboX distro and Freevo2 perspective.

2006-11-14 Thread Rob Shortt
Rob Shortt wrote:
 Benjamin Zores wrote:
 [EMAIL PROTECTED]:~/freevo2$ ./bin/freevo
 WARNING __init__(1072): TV_RECORD_DIR not set
   Please set TV_RECORD_DIR to the directory, where recordings
   should be stored or remove the tv plugin. Autoset variable
   to /home/ben.
 ERROR __init__(1072): Crash!
 Traceback (most recent call last):
   File ./bin/freevo, line 270, in ?
 gui.displays.create()
   File /home/ben/freevo2/lib/python2.4/site-packages/freevo/ui/gui/dis
 nit__.py, line 62, in get
 display = Display(size, True)
   File /home/ben/freevo2/lib/python2.4/site-packages/freevo/ui/gui/dis
 ib2.py, line 50, in __init__
 Imlib2Canvas.__init__(self, size)
   File /home/ben/freevo2/lib/python2.4/site-packages/kaa/mevas/display
 anvas.py, line 49, in __init__
 self._window = display.X11Window(size = size, title = title)
 AttributeError: 'module' object has no attribute 'X11Window'
 
 Are you intending to use X for output in this case?  Again.. no X here 
 so I've never seen that message...

Actually it looks like X11 support wasn't built in mevas...  If you 
don't want X at all take a look at /etc/freevo/freevo.conf for display = 
or also in /etc/freevo/local_conf.py for GUI_DISPLAY.

I hope that helps...

-Rob



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Integration of Freevo in GeeXboX distro and Freevo2 perspective.

2006-11-14 Thread Rob Shortt
Benjamin Zores wrote:
 Hi,

Hi Ben,


 Although knowing Freevo for quite a while, I've just subscribed to this list 
 a few days ago.
 Let me introduce ... I'm MPlayer developer and team leader from GeeXboX 
 distribution.
 After having reached our 1.0 goal, we're now facing towards a complete rework 
 of our GUI
 and after several months of studies and start-stop development of various 
 solutions
 I've decided for our project to completely re-use Freevo code.

Awesome. :)


 I've been playing with nearly the same toys Jason did with MeBox project and 
 started
 using Evas for our GUI (but in C while he did in Python with Kaa) but after 
 all,
 Freevo2 seems to be much more usable and advanced than our software ever will 
 be.
 
 What I'd like to do for GeeXboX 2.0 release is to have a complete inclusion of
 Freevo 2.0 in our distribution. Even if I can only wishes so, I'd like to 
 propose your team
 some kind of partnership, being some official Freevo LiveCD or distribution,
 whatever you may call the result ;-)
 How does such an idea sounds to you guys ?

I can't speak for the others but to me that sounds wonderful.  I have 
been longing to build a Freevo live CD myself but find myself with a 
lack of free time.  I have been following morphix for a bit now but I 
think I will switch my attention to geexbox!  I have seen your project 
before and it looks good.  I'll dig into your docs and fiddle around a bit.


 Currently I'm trying to integrate Freevo 1.6 to our distribution to be a 
 first step made.
 As for now, GeeXboX does only works in console mode (i.e. no X server, though 
 it may change)
 and I'd like to know if some of you already had a try to a non X based Freevo 
 (i.e. framebuffer
 for Freevo, vesa or vidix output for mplayer/xine) and what potential 
 problems we may encounter.

I am totally X free (pardon the pun) on my Freevo machines, using 
DirectFB on both.  I have used vesafb, vidix, mga_vid, and friends 
before as well.  So there are no likely problems there.


 As for Freevo2, this is of course our goal to be reached (once released) and 
 we'll try to help
 you finalize/test it the best way we can, but currently i'm not even managing 
 to have a try at it
 under my regular distro. In the same way, I can help you pushing some MPlayer 
 patches/features upstream to help with Freevo2 development.

I'm sure Jason will be happy to hear that.


 I'm currently facing the following error, which you may help me deals with:
 
 [EMAIL PROTECTED]:~/freevo2$ ./bin/freevo
 WARNING __init__(1072): TV_RECORD_DIR not set
   Please set TV_RECORD_DIR to the directory, where recordings
   should be stored or remove the tv plugin. Autoset variable
   to /home/ben.
 ERROR __init__(1072): Crash!
 Traceback (most recent call last):
   File ./bin/freevo, line 270, in ?
 gui.displays.create()
   File /home/ben/freevo2/lib/python2.4/site-packages/freevo/ui/gui/dis
 nit__.py, line 62, in get
 display = Display(size, True)
   File /home/ben/freevo2/lib/python2.4/site-packages/freevo/ui/gui/dis
 ib2.py, line 50, in __init__
 Imlib2Canvas.__init__(self, size)
   File /home/ben/freevo2/lib/python2.4/site-packages/kaa/mevas/display
 anvas.py, line 49, in __init__
 self._window = display.X11Window(size = size, title = title)
 AttributeError: 'module' object has no attribute 'X11Window'

Are you intending to use X for output in this case?  Again.. no X here 
so I've never seen that message...


 Another point about Freevo internals.
 If I understood correctly, Freevo 1.x only makes use of Pygame (and so SDL) 
 and it's up to us
 to make SDL support any VO we'd like.

Correct, and make sure mplayer or xine can output with the same VO, etc.


 Freevo 2.x seems to only uses Evas to trigger this, which also will dependant 
 on how it has been compiled to be started under several VO drivers.
 Or is X absolutely mandatory ?

X is not neccessary, nor does Freevo 2 use evas... yet.  Right now it's 
using mevas for its output.

Re: GeexBox, it looks interesting to me for sure.  Maybe I could also 
help out on that front.

-Rob

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo 2.0 Status

2006-10-29 Thread Rob Shortt
Hi,

Hans-Jürgen Ficker wrote:
   * Old program info doesn't seem to be thrown away. On freevo-epg
   search I get lots of old data, epg.sqlite grew to 45MB (after
   deletion and new insertion of program info it is only 4.5 MB)

I think sqlite keeps the space allocated unless you specify a flag on 
startup.

 o Rewrite kaa.record (Soenke)
 
 I saw in fp_filewriter.cc, line 122, that files are created with mode
 0660 (which will of course be modified by umask). Is there a reason for
 it? If I want to restrict access to a specific group, I could use
 umask myself...

That file mode drives me nuts too. :)

-Rob


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [PATCH] Linux event device support

2006-10-21 Thread Rob Shortt
Pierre Ossman wrote:
 Duncan Webb wrote:
 Pierre Ossman wrote:
 News to me, but I'm no lirc expert. Still, that's one extra dependency
 for something we can do directly.
 No extra dependency as lirc is already supported

 
 It is for the user as he could (with this patch) have his evdev device
 supported with just the stuff packaged in freevo.

Lirc drives me nuts and I'd rather not use it at all. :)

On my main Freevo box running 2.0 I use DirectFB for input, but used to 
use the event device plugin before that.  On one box here I am forced to 
use lirc since that is the only thing that supports my serial IR receiver.

Ever since Gerd Knorr et al added remotes to the event device layer I 
just do not see the point of lirc.  From then on I think the lirc 
drivers should have been ported to the kernel.  At that time lirc was in 
an aweful state.  Instead of things going into the kernel, development 
on lirc continued and I guess got a little better (correct me if I'm wrong).

Anyhow, it's nice to have the choice of using the event device.  Maybe 
once 2.0 is a bit better you can improve the evdev input plugin there.

-Rob



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [PATCH] Linux event device support

2006-10-21 Thread Rob Shortt
Jason Tackaberry wrote:
 On Sat, 2006-10-21 at 20:26 -0300, Rob Shortt wrote:
 an aweful state.  Instead of things going into the kernel, development 
 on lirc continued and I guess got a little better (correct me if I'm wrong).
 
 I can say that with multiple IR devices, lirc has improved
 significantly.  Before I had to do horrendous hacks.

Same here, the old copy source code, change names and node numbers trick 
to get multiple devices.  *cringe*

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [PATCH] Linux event device support

2006-10-21 Thread Rob Shortt
TC Wan wrote:
 The problem I'm having right now is that the event driver enumeration
 seems to have changed for 2.6.18 (in 2.6.18, the PC speaker has become a
 new input source??! What's this?). I usually get my IR remote as input3,
 sometimes as input2. This breaks lirc and probably will affect Freevo as
 well unless it is more intelligent in determining which is the actual IR
 Remote input number).

In Freevo 2 we are trying to autodetect as much as possible for hardware 
and user settings and this is no exception.  Iterating over each 
available event device and determining which is which is no big deal.

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Website addons page needs attention

2006-10-18 Thread Rob Shortt
I have just moved the addons section outside of htdocs (to OLD/).  Oh
my, what a gaping security hole.  Duncan, if you need anything from the
addons page you should login to freevo.sourceforge.net vie ssh and get
it that way, then we should rm it all.

If you guys want something similar maybe I can setup a site on my server.

-Rob

The Hog wrote:
 Duncan,
 
 Hmm, the file r57.php contains some code to compile and execute arbitrary
 uploaded files (backdoors?). Please remove this stuff asap! You might want to
 notify the admin of the sourceforge server. Not sure if the system could be
 compromised this way.
 
 Richard.
 
 - Oorspronkelijk bericht -
 From: Jason Tackaberry [EMAIL PROTECTED]
 To: freevo-devel@lists.sourceforge.net
 Date: 18-Oct-2006 16:18
 Subject: [Freevo-devel] Website addons page needs attention
 
 http://freevo.sourceforge.net/addons/

 Perhaps we should be approving all uploads.


 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Freevo-devel mailing list
 Freevo-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freevo-devel



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [PATCH] Linux event device support

2006-10-17 Thread Rob Shortt
Hi,

Pierre Ossman wrote:
 As I recently bought an ATI remote control, I felt that Freevo really
 lacked good support for Linux event devices. So I decided to add it. :)
 
 Included is a patch that adds that support, relevant configuration
 options and a default key map that should handle most devices out there.

This is for Freevo 1.x right?  There is basic evdev support on the 2.0 
trunk in SVN in the form of an input plugin.

I agree, using the event device is great, thanks for the patch.

-Rob


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Does anybody have the source for pygphoto.so?

2006-10-15 Thread Rob Shortt
Duncan Webb wrote:
 Does anybody have the source for pygphoto.so, it seems to have been lost.

Look in Freevo SVN under trunk/WIP/Thomas/pygphoto/.  If not then I will 
send you my copy.


 Does anybody use this plug-in?

I think most people use mass-storage but I think there are still users 
of the gphoto plugin.

-Rob



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Does anybody have the source for pygphoto.so?

2006-10-15 Thread Rob Shortt
Duncan Webb wrote:
 Rob Shortt wrote:
 Duncan Webb wrote:
 Does anybody have the source for pygphoto.so, it seems to have been lost.
 Look in Freevo SVN under trunk/WIP/Thomas/pygphoto/.  If not then I will 
 send you my copy.
 
 Thanks Rob,

No prob,

 Does swig generate pygphoto_wrap.c from pygphoto.i? Having never used
 swig I wouldn't know. If it does then the source is complete if not then
 pygphoto_wrap.c is missing.

That's correct the .c is generated.

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Multi-tuner support in freevo [Moved from Users]

2006-10-06 Thread Rob Shortt
Duncan Webb wrote:
 It's easy that one tuner is dedicated to recording and one to watching
 and this may be enough for most people. Simultaneous recording would be
 a nice to have but not essential. This may be a bigger change than I
 would like to make because in the code there is some priority given to
 which program is recorded.

That would be easiest to impliment.  You could just specify one group
for recording and the other for viewing, make sure each plugin uses the
right one and be done with it.


 Can you tell me what the rules are to determine which program is
 recorded when two programs are scheduled at the same time? I would
 expect highest priority is given to manual recording, next to scheduled
 recording and last to favourites in priority order.

There are no rules or priority.

It will simply try to start recording the later program and mess up the
first.  You will need to add code there to check for the lockfile(s) and
decide which tuner/video group to use.

 So here are the questions:
 How is the video device (/dev/video0) determined by the record server
 1) when no video groups have been configured

It defaults to video0 from another config item.

 2) when there is a video group with more than one entry.

Please elaborate.  A group with more than one entry of what?  A group
can only have one video device.


 I know that TV_CHANNELS has a video group number, is this used by the
 record server?

Yes, to determine which group has that channel.  The code is in one of
the supporting modules inside Freevo (channels.py IIRC).


 PS I had already posted the question in the development list, in a bug
 report. Something gives me the impression that nobody reads the comment.

Myself and most of the other developers don't bother with the
sourceforge bug tracker.  IMO it's a bad interface for several reasons
and hard to read.

-Rob

PS - Please add line breaks around your inline comments so they're
easier to follow. :)




signature.asc
Description: OpenPGP digital signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Multi-tuner support in freevo

2006-10-06 Thread Rob Shortt
Duncan Webb wrote:
 Rob Shortt wrote:
 Duncan Webb wrote:
 It's easy that one tuner is dedicated to recording and one to watching
 and this may be enough for most people. Simultaneous recording would be
 a nice to have but not essential. This may be a bigger change than I
 would like to make because in the code there is some priority given to
 which program is recorded.
 That would be easiest to implement.  You could just specify one group
 for recording and the other for viewing, make sure each plugin uses the
 right one and be done with it.

 Can you tell me what the rules are to determine which program is
 recorded when two programs are scheduled at the same time? I would
 expect highest priority is given to manual recording, next to scheduled
 recording and last to favourites in priority order.
 There are no rules or priority.
 
 so the stuff on the web page is not used.

Nope, just forward thinking and not fully implimented before we moved on
to the 2.0 efforts.


 It will simply try to start recording the later program and mess up the
 first.  You will need to add code there to check for the lockfile(s) and
 decide which tuner/video group to use.

 So here are the questions:
 How is the video device (/dev/video0) determined by the record server
 1) when no video groups have been configured
 It defaults to video0 from another config item.
 
 I think that I've fixed this, by using the same logic as in the players
 to get the videogroup.

The default gets filled in the config code somewhere, creating the first
 video group and filling in as many attributes as it can.  I will try to
dig through the code for you later.

 What I've done, in checkToRecord, is:
   self.vg = self.fc.getVideoGroup(rec_prog.channel_id)
   suffix=self.vg.vdev.split('/')[-1]
   self.tv_lock_file = config.FREEVO_CACHEDIR + '/record.'+suffix
 
 One *very* important question is do I need to use a critical section
 around this logic?
 
 What's the best way to implement a critical section in python?

What is a critical section? :)


-Rob



signature.asc
Description: OpenPGP digital signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Multi-tuner support in freevo

2006-10-06 Thread Rob Shortt
Duncan Webb wrote:
 Is it possible for the recordserver to call functions in freevo main
 using XML-RPC?

Nope.


 I know it's possible the other way around, clients calling functions in
 the recordserver. This is what I have done with the upsoon plug-in.
 
 The changes to the recordserver seem cause some async errors when the
 recordserver calls getVideoGroup. A typical race condition.

Can you paste me the errors and under what circumstances it is
happening?  I should also take a look at the current code.

-Rob





signature.asc
Description: OpenPGP digital signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-cvslog] Kaa r1894 - in trunk: WIP/player

2006-09-22 Thread Rob Shortt
Dirk Meyer wrote:
 Log:
 move new kaa.player from WIP to tree as kaa.popcorn

Awesome. :)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] server.py channel differences

2006-08-11 Thread Rob Shortt
Justin Wetherell wrote:
 Just to be safe, I did it with another two channels and the same pattern 
 is holding up.
 
 from tvepg-0:
 2006-08-10 23:53:20,564 INFO [   epg] server.py 245: add channel 
 [u'24'] ESPN ESPN
 2006-08-10 23:53:20,676 INFO [   epg] server.py 245: add channel 
 [u'52'] TLC The Learning Channel
 2006-08-10 23:53:49,901 INFO [   epg] server.py 245: add channel 
 [68] G4 G4-video game television
 2006-08-10 23:53:49,836 INFO [   epg] server.py 245: add channel 
 [42] ESPN2 ESPN2

Can you send your old and new channels.conf files?

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-cvslog] Kaa r1851 - trunk/beacon

2006-08-09 Thread Rob Shortt
Jason Tackaberry wrote:
 On Wed, 2006-08-09 at 15:13 +0200, Rob Shortt wrote:
 Author: rshortt
 
 dischi, looks like subversion has some bug, it is making up random
 author names.

Ha, ha. :)



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] tvserver / epg problem

2006-08-09 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
 When starting freevo-tvserver, which also starts the epg server, this
 happens:

   File /usr/lib/python2.4/site-packages/kaa/rpc.py, line 516, in __init__
 raise ConnectError(e)
 ConnectError: (111, 'Connection refused')
 [...]
 2006-08-09 10:47:30,002 INFO [   epg] server.py 53: start epg server
 with database /var/lib/freevo/epg.sqlite
 2006-08-09 10:47:30,082 INFO [   rpc] rpc.py 123: remove socket from
 dead server
 
 Very strange. Try the following two solutions:
 
 1. Delete the epg database. The latest changes to kaa.epg also made
problems for me which were solved by deleting the db once.

Already tried that.


 2. Add some debug to kaa.rpc (not kaa.ipc) to find out if client and
server are using the same sockets.

Maybe next...

 # freevo-tvserver
 INFO server(164): answer from scheduler
 INFO server(204): calling self.schedule
 INFO server(144): recordings:

 INFO server(148): favorites:

 Traceback (most recent call last):
   File /usr/bin/freevo-tvserver, line 89, in ?
 guide = kaa.epg.Server(str(config.epg.database))
   File /usr/lib/python2.4/site-packages/kaa/epg/server.py, line 82, in
 __init__
 s = kaa.rpc.Server('epg')
   File /usr/lib/python2.4/site-packages/kaa/rpc.py, line 129, in __init__
 raise IOError('server already running')
 IOError: server already running
 INFO server(297): save fxd file
 
 So it works on second try? I added a small fix, try again.


It seems to be better, only takes a while to start.

/var/log/freevo/tvepg-0:

2006-08-09 13:05:27,325 INFO [   epg] server.py 53: start epg server
with database /var/lib/freevo/epg.sqlite
2006-08-09 13:05:27,762 INFO [   rpc] rpc.py 123: remove socket from
dead server
2006-08-09 13:05:27,870 INFO [   rpc] rpc.py 157: New connection
socket._socketobject object at 0xb7765a7c
2006-08-09 13:05:27,877 INFO [   rpc] rpc.py 353: delay packet CALL
2006-08-09 13:05:46,323 INFO [   epg] server.py 105: listening on
address 172.16.1.7:32786


What's up with the remove socket from dead server?  It looks like now
it retried and was successfull.

Next, running freevo-epg channels to test:

2006-08-09 13:07:58,252 INFO [   rpc] rpc.py 157: New connection
socket._socketobject object at 0xb7765d4c
2006-08-09 13:07:58,255 INFO [   rpc] rpc.py 353: delay packet CALL
2006-08-09 13:07:58,266 INFO [   rpc] rpc.py 273: no data received
2006-08-09 13:07:58,267 INFO [   rpc] rpc.py 240: close socket for
kaa.rpc.server.channel 8
2006-08-09 13:07:58,267 WARNING  [   epg] server.py 148: disconnect
client kaa.rpc.server.channel - disconnected

It returned the channel list successfully.

So, the epg and tvserver are running now, but normally?

-Rob



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] freevo-epg update bug

2006-08-09 Thread Rob Shortt
Justin Wetherell wrote:
 Here is the tvepg-0 log file after calling freevo-epg update

...

   File /usr/lib/python2.4/site-packages/kaa/epg/source_xmltv.py, line
 203, in parse_programme
 attr['date'] = int(time.mktime(time.strptime(child.content, fmt)))
   File /usr/lib/python2.4/_strptime.py, line 292, in strptime
 raise ValueError(time data did not match format:  data=%s  fmt=%s %
 ValueError: time data did not match format:  data=20060808  fmt=%Y-%m-%d


Can you check your TV.xml?  Maybe there is a problem with your XMLTV
version or the data you're getting from zap2it.

Here's a random program from my TV.xml:

  programme start=2006031200 -0300 stop=2006031201 -0300
channel=C70aptn.zap2it.com
title lang=enRez Bluez/title
sub-title lang=enGeorge Leach/sub-title
desc lang=enGeorge Leach./desc
date2005-11-26/date
category lang=enMusic/category
category lang=enComedy/category
category lang=enLimited Series/category
episode-num system=dd_progidEP775474.0003/episode-num
  /programme

Here 2005-11-26 matches that format.  Some of my programs only have the
year portion though (ie: date1994/date) and it doesn't error.

-Rob



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo-epg search bug (plus fix)

2006-08-09 Thread Rob Shortt
Justin Wetherell wrote:
 when I run freevo search X-Play to search for all occurances of X-Play
 is crashes and hangs.
 [EMAIL PROTECTED]:/usr/local/src/freevo/bin# ./freevo-epg search X-Play
 INFO server(373): send list for 2 recordings
 Results for 'X-Play':
 ERROR callback(473): signal.emit
 Traceback (most recent call last):
   File ../base/build/lib.linux-i686-2.4/kaa/notifier/callback.py, line
 468, in emit
   File ./freevo-epg, line 100, in search
 print - Queried %d programs; %s results; %.04f seconds % \
 AttributeError: 'Client' object has no attribute 'get_num_programs'
 ERROR client(78): kaa.epg client disconnected
 INFO client(81): delete server link

I saw that as well, but didn't get around to debugging it.  Thanks.


 Looks like some info from client.py was public, so I attempted to fix
 it. **Hopefully this is a little less ugly**
 
 diff client.py client.org http://client.org

Can you do diff -u?  It's way more readable and the preferred patch format.

thanks,
-Rob





signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo-epg search bug (plus fix)

2006-08-09 Thread Rob Shortt
Rob Shortt wrote:
 Can you do diff -u?  It's way more readable and the preferred patch format.

Also, if you're making the changes to your SVN checkout, you can run
svn diff as well, so no need to copy the original to another file.

-Rob



signature.asc
Description: OpenPGP digital signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] All Favorite Recordings are Conflicts

2006-08-09 Thread Rob Shortt
Justin Wetherell wrote:
 I am currently working on resolving this bug which doesn't let me 
 record favorites.
 
 freevo-tvserver
 
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 DEBUG epg(152): found recording: X-Play
 INFO server(164): answer from scheduler
 INFO server(182): send update for 8 recordings
 INFO server(204): calling self.schedule
 INFO server(144): recordings:
   0 G4 X-Play50 0809.16:00-16:30 
 1  5 conflict
   1 G4 X-Play50 0809.16:30-17:00 
 1  5 conflict
   2 G4 X-Play50 0809.18:00-18:30 
 1  5 conflict
   3 G4 X-Play50 0809.18:30-19:00 
 1  5 conflict
   4 G4 X-Play50 0810.04:00-04:30 
 1  5 conflict
   5 G4 X-Play50 0810.04:30-05:00 
 1  5 conflict
   6 G4 X-Play50 0810.12:00-12:30 
 1  5 conflict
   7 G4 X-Play50 0810.12:30-13:00 
 1  5 conflict
 
 INFO server(148): favorites:
   0 X-Play  50  (exact matching)
 
 INFO control(108): list request
 INFO recorder(113): add Recorder for [EMAIL PROTECTED]:ivtv0
 INFO server(164): answer from scheduler
 INFO server(204): calling self.schedule
 INFO server(144): recordings:
   0 G4 X-Play50 0809.16:00-16:30 
 1  5 conflict
   1 G4 X-Play50 0809.16:30-17:00 
 1  5 conflict
   2 G4 X-Play50 0809.18:00-18:30 
 1  5 conflict
   3 G4 X-Play50 0809.18:30-19:00 
 1  5 conflict
   4 G4 X-Play50 0810.04:00-04:30 
 1  5 conflict
   5 G4 X-Play50 0810.04:30-05:00 
 1  5 conflict
   6 G4 X-Play50 0810.12:00-12:30 
 1  5 conflict
   7 G4 X-Play50 0810.12:30-13:00 
 1  5 conflict
 
 INFO server(148): favorites:
   0 X-Play  50  (exact matching)
 
 INFO server(297): save fxd file

I see that this list is of pairs of back to back shows.  Perhaps they 
are incorrectly conflicting with each other because of the pre/post 
record padding.  Can you test that theory with favorites that don't 
occur so closely?


 I believe it comes down to this; p.current_bouquets is empty. If anyone 
 can help, let me know.

I will have to read over the code to refresh my memory but I can offer 
you this.  In the case of analoge / v4l and ivtv devices you can think 
of each channel as belonging to it's own unique bouquets.  In DVB 
bouquets are used to group channels together that are on the same 
transponder and frequency.  Channels in the same bouquet can be recorded 
at the same time as one another without conflict.  That is why we track 
them here to sort conflicts.  The ivtv device in the tvdev process 
should report bouquets correctly (one bouquet for each channel).


-Rob


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] beacon question and request

2006-08-08 Thread Rob Shortt

Hi,

I've just svn updated my kaa and freevo.  Now, some questions...

I see freevo starts beacon as:

/usr/bin/python /usr/bin/beacon --start --verbose=all --autoshutdown

from beacon help:

--verbose modules   comma separated list of modules which should be more
 verbose. Possible modules are db, crawler, monitor,
 parser, server. Use 'all' to increase every module.

Should the args be --verbose all (ie: space instead of =?)

Also, I'd like to run beacon from init using /etc/inittab and have it 
monitor the process.  To do this I'd need to use the --fg switch for 
beacon but the problem with that is that nothing gets written to the 
server.log.  Can you change it to do both?

Thanks,
-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] beacon question and request

2006-08-08 Thread Rob Shortt
Jason Tackaberry wrote:
 On Tue, 2006-08-08 at 21:28 -0300, Rob Shortt wrote:
 Hi,
 
 Hi stranger!

Lol, tel me about it.


 Should the args be --verbose all (ie: space instead of =?)
 
 Either or.  beacon is using getopt.

Ahh, of course.  Silly me.


 Also, I'd like to run beacon from init using /etc/inittab and have it 
 monitor the process.  To do this I'd need to use the --fg switch for 
 beacon but the problem with that is that nothing gets written to the 
 server.log.  Can you change it to do both?
 
 Also include --logfile /path/to/server.log on the command line when
 you start beacon.

Right on, works like a charm.  Here's my inittab line:

BI1:2345:respawn:/usr/bin/beacon --start --fg --db /var/beacon --verbose 
all --logfile /var/beacon/server.log

-Rob

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] [Freevo-users] Sponsoring work for Freevo

2006-07-13 Thread Rob Shortt
John Molohan wrote:
 isn't the most important). I guess Dischi, Jason  Rob (if your still 
 around) are the best people to decide this.

Hi. :)  FYI I am still around, just not much free time and not a lot of
motivation.  I haven't been writing any code lately though (maybe that
will change now that I have a new laptop) but I still keep up with the
mailing lists, etc.  I still have plenty of ideas and dreams that I'd
like to impliment...

later,
-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: EPG changes

2006-03-18 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
well.  I also forgot to mention the need to support diskless clients -
no disk to store local db.
 
 
 Define diskless. I have a very dump box here, unable to start anything
 except mpeg2. For that kind of box I want to have remote access in the
 future. I powerfull pc somewhere that streams the display to that box
 and does on-the-fly encoding of the videos.
 
 But I guess you want to boot from the network and run freevo localy,
 video comes from network filesystems. Well, this can be a problem. I'm
 rewriting kaa.vfs (in freevo it is a mix of vfs and mediadb). It is
 similar to kaa.epg but the clients also access the db read only. It's
 a choice of speed. Yes, kaa.ipc is fast, but it is faster if we do the
 reading part in the client itself. That means, kaa.vfs needs a local
 database right now. I'm not sure this is a problem. Yes, sqlite is not
 designed to work on network filesystems because you can't do atomic
 operations, but if all clients are from the same machine, it should
 work. Maybe for a diskless client we need some sync support. Give
 Freevo a dir to save in RAM and sync it to the server. On boot, copy
 the data back.

Sure, that may be possible, there may not be much memory though (take
Hauppauge Media MVP for example).


Sometime I can do some more tests with the EPG and mbus.  With epg1
architecture it seemed to take too many resources disassembling objects
into mbus messages, then reassembling on the client.  Maybe this will be
better in epg2 since it may be hooked into the GuideClient _load()
easily.  DB rows are a lot like mbus messages.
 
 
 Yes, mbus is slower than kaa.ipc. Kaa.ipc just takes the data and
 pickles it while mbus transforms it into strings being independed of
 the programming language. So that costs some more time. For kaa.vfs it
 may be too much time, but for kaa.epg we have to see. 
 
 1. The tvserver has the epg internal, so no need to use mbus at this
point. 
 
 2. The webserver also is no problem, an overhead of 200ms won't be a
problem. 
 
 3. The freevo ui. The current code does the epg lookup when needed,
e.g. you go to the left and it fetches the data. An overhead of
200ms will be bad. But I don't like the current tv guide, it is
very hard to navigate. Maybe a different kind of tv kind solves
that problem and mbus is ok for us.

I was thinking the same.


 I would like to have one epg server part in the system. And IMHO it
 should be part of tvserver. The tvserver without epg makes no sense
 and why do you need an epg if you don't have a tvserver. So I think we
 should merge them.

This makes sense too.  For now it can be a combination of mbus and ipc.
 The only thing that would have to change (right away) is the use of
ipc.launch.


I have added a ping() to the guide client, and now when
connect()/guide() is called it checks for an already instantiated client
and calls ping() making sure it's there.  If not, just start a new one,
log errors.  I know not all users check logs but I think it is important
for things to keep running.


Maybe stuff like that should be part of kaa.ipc in general. But IIRC
there is a callback somewhere for lost connections.

This callback exists on the server side, I'm not sure about the client
side.  There is a ping() in kaa.ipc, and that is what I hooked up to
GuideClient.  On the disconnected exception it (kaa.ipc) returns False.
 
 
 See mail from Tack.

Yep, saw that.


IDEA:  We can create a Freevo messaging service that can send messages
and alerts to UIs like the TV and webserver.  Something could look for
errors and notify you.


Like mbus messages? Sure there could be a display or message event on
mbus. 

Yes.  I guess what I meant was a process that watches for error then
sends a message / event over mbus.  We could even do this from the
logging module.
 
 
 The logging module  yes, we could send all log.error over the
 mbus. But I don't think it will be clear to the user what the problem
 is. I would prefer an extra mbus.logging module and the ui can
 register to the log message to display and the webserver can register
 to it to show the error messages from the last day.

OK, sounds good.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: EPG changes

2006-03-17 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
In an effort to simplify thing's a bit I've removed the old channel_id
from the EPG.  Instead, a channel will be uniquely identified by its
name only.  
 
 
 What is the name if not the channel id?

The name is the actual channel name like ZDF or PRO 7.  The idea
here is to keep things as simple as possible.  I don't think it is worth
using the XMLTV ID internally, it is only something needed by the XMLTV
data structure to match programs to channels.  We have our own internal
ID in the database to do that job.  Besides, different XMLTV sources,
and also non-XMLTV sources will use different IDs.  We know about a
channel based on its name.


The database also has fields for long_name (not used by any
Freevo UI yet) that is more verbose, and a field for tuner_id.  The
tuner_id is a list that holds possible ids for tuning a channel.  A
tuner_id is something the tuner/recorder uses to identify and tune a
channel.  For analog tv this is used to map a frequency, for DVB is can
be a service id, or sometimes a name.  Because the tuner_id is not
always right for you depending on where you get your guide data
(different XMLTV sources, etc), and sometimes not present at all, this
field is only used to help programs/users match channels in the EPG to
channels their devices provide acess to.
 
 
 How do you know the difference between tuner id and name? I have a
 channel called N3, looks similar to the tuner id C50. And xmltv only
 has display names and tuner ids are part of it.

When a channel gets added to the guide it will, at the very least, have
a name.  If the guide data source can only provide one thing saying what
the channel is, it will be used as the name.  Even though the database
schema doesn't enforce it, right now the channels col is unique on the name.

As for XMLTV, the XMLTV parser can (and does) worry about parsing the
display-name field and deciding what may be a tuner id.


 So maybe a channel has no real name in the db and only a list of

I think we need a difinative name in the db, this way it has already
decided what will be used as the name in any potential UI, making
display less complicated.


 possible names. When updating from different sources, try to find at
 least one match to merge the sources. 

Right now merging sources works by name only.  If you have two sources
with different channel names they are most likely different channels.
However, I do have channels from different sources that have different
names.  Right now these are also seen and listed as different channels.
 This is one thing that a user defined channel_aliases would take care
of.  There is no way of telling this without user input.  We could get
all complicated and compare all of the program entries for different
channels and decide that if there's a 95% match then the channels are
the same, etc.  Maybe in the future, but for now I think this is the
best way.


 And if freevo-tvdev says
 something about a possible channel S50, try to find that name in the
 db. 

Yes, this is basicly how tvserver / tvdev interaction works now.  When
EPG client loads it makes a dict of all channels keyed by tuner_id.
When tvserver gets a list of channels from tvdev it will first check the
config (epg mapping) for user override.  If there is nothing specified
by the user it tries to get the channel based on tuner_id key.  If that
part fails then it tried to get it by name.  In your case you will only
have the name field in the guide - many of your channels will be found
this way.  If this part fails, there's a simple guess using the
normalize funtion, and if all cases fail it creates an empty epg mapping
for this channel so the user knows to override.

Effectively this does what you're suggesting, only that that name is
left from the tuner_id list.


The epg2 server.py can be run on the command line to start a server
instance which will listen on a local unix socket and optionally on an
inet socket (but be careful with your network). 
 
 
 As I wrote before, I don't like the idea of making a pickle ipc
 interface public. 

I know.  This is disabled by default for this reason.  I (and many
others) run Freevo on an internal network with a firewall.  I'm not
worried about someone on my network trying to do nasty things.


 IMHO the best way would be to use kaa.ipc for
 internal communication when we move stuff out of a lib and mbus for
 global communication between programs.
 
 So we have two choices here:
 
 1. Use kaa.epg has interface and do not care that it is a different
process. This is done by kaa.vfs and kaa.vfs will start a server if
needed and stop it when you are done. Communication is kaa.ipc, but
you don't see it.
 
 2. Define that we have an epg server. Communication is mbus and you
have to start the server on your own.

I would prefer something more like 2, but I don't think mbus is suitable
for EPG data is it?  I really like the behaviour of kaa.ipc right now,
the only

Re: [Freevo-devel] Re: EPG changes

2006-03-17 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
 
What is the name if not the channel id?

The name is the actual channel name like ZDF or PRO 7.  The idea
here is to keep things as simple as possible.  I don't think it is worth
using the XMLTV ID internally, it is only something needed by the XMLTV
data structure to match programs to channels.  We have our own internal
ID in the database to do that job.  Besides, different XMLTV sources,
and also non-XMLTV sources will use different IDs.  We know about a
channel based on its name.
 
 
 But maybe I don't know the real name. You guess the name for xmltv by
 using the display-name I try to find out the name and the tuner
 id. But we will see

Right, it is posible data source doesn't have the name quite right, or
how you like it.  WIP I guess.


So maybe a channel has no real name in the db and only a list of

I think we need a difinative name in the db, this way it has already
decided what will be used as the name in any potential UI, making
display less complicated.
 
 
 Is it complicated for the ui to just take a look at the current
 display names in the db for each channel to detect what the real name

This is kind of what happens when the channel is added to the guide.


 is? I mean, based on my sources what you think is the display name may
 be wrong. Maybe the user wants to set his own name. So maybe a unique
 id (integer) is the primary key and the name can change.

Possibly.  Maybe the user setting should be kept in config so it won't
be lost with db changes, or if db must be removed.


possible names. When updating from different sources, try to find at
least one match to merge the sources. 

Right now merging sources works by name only.  If you have two sources
with different channel names they are most likely different
channels.
 
 
 OK, maybe add a way to set some extra mapping logic by the user.

Yes, that's what I meant by using channel_aliases or epg.mapping.  Maybe
there could be a config object to represent some aspects of user defined
channel information.


However, I do have channels from different sources that have different
names.  Right now these are also seen and listed as different channels.
This is one thing that a user defined channel_aliases would take care
of. 
 
 
 What is the difference between your tuner ids from the xml file and
 aliases from the user? They are there for the same reason. So a
 channel should have a unique id, a name that can be changed by the
 user and a list of access ids (all display-names from xmltv, alias,
 etc). 

I guess they are pretty much the same but I prefer to use the name (as
guessed by the source_.py / parser) as the unique key for db channels.


There is no way of telling this without user input.  We could get
all complicated and compare all of the program entries for different
channels and decide that if there's a 95% match then the channels are
the same, etc.  Maybe in the future, but for now I think this is the
best way.
 
 
 Trying to guess based on current data sounds like the way to go. But
 for now the manual stuff is ok.

agreed


The epg2 server.py can be run on the command line to start a server
instance which will listen on a local unix socket and optionally on an
inet socket (but be careful with your network). 


As I wrote before, I don't like the idea of making a pickle ipc
interface public. 

I know.  This is disabled by default for this reason.  I (and many
others) run Freevo on an internal network with a firewall.  I'm not
worried about someone on my network trying to do nasty things.
 
 
 Well, it may be ok for you, but I don't want a public 2.0 release out
 there with a huge security risk. You know what you are doing by
 choosing this kind of communication, others don't.

OK, I can respect that.  I still need a networked EPG that performs
well.  I also forgot to mention the need to support diskless clients -
no disk to store local db.


IMHO the best way would be to use kaa.ipc for
internal communication when we move stuff out of a lib and mbus for
global communication between programs.

So we have two choices here:

1. Use kaa.epg has interface and do not care that it is a different
   process. This is done by kaa.vfs and kaa.vfs will start a server if
   needed and stop it when you are done. Communication is kaa.ipc, but
   you don't see it.

2. Define that we have an epg server. Communication is mbus and you
   have to start the server on your own.

I would prefer something more like 2, but I don't think mbus is suitable
for EPG data is it? 
 
 
 Yes and no. Right now mbus has the limitation that the message has to
 fit into one UDP packet. That may not work when you try to get the epg
 for the whole day on all channels.

Sometime I can do some more tests with the EPG and mbus.  With epg1
architecture it seemed to take too many resources disassembling objects
into mbus messages, then reassembling on the client.  Maybe this will be
better in epg2 since it may be hooked

[Freevo-devel] EPG changes

2006-03-13 Thread Rob Shortt
Hi,

I am about to commit my recent EPG changes (using kaa.epg2 from
kaa/trunk/WIP/epg2) so this email is to inform everyone where we're at.


Changes in a nutshell:
--

kaa.epg2:

In an effort to simplify thing's a bit I've removed the old channel_id
from the EPG.  Instead, a channel will be uniquely identified by its
name only.  The database also has fields for long_name (not used by any
Freevo UI yet) that is more verbose, and a field for tuner_id.  The
tuner_id is a list that holds possible ids for tuning a channel.  A
tuner_id is something the tuner/recorder uses to identify and tune a
channel.  For analog tv this is used to map a frequency, for DVB is can
be a service id, or sometimes a name.  Because the tuner_id is not
always right for you depending on where you get your guide data
(different XMLTV sources, etc), and sometimes not present at all, this
field is only used to help programs/users match channels in the EPG to
channels their devices provide acess to.

Also, when updating the EPG from different sources, channels that have
tha same name are merged instead of duplicated.  The same thing happens
for programs but more work needs to be done there.

The epg2 server.py can be run on the command line to start a server
instance which will listen on a local unix socket and optionally on an
inet socket (but be careful with your network).  If run in this manner
it will shutdown after 5 secons with no client connected.  Included in
__init__.py is a connect() to hide this from the library user.  This
stuff is taken from the WIP/vfs that Dischi is working on.  Good idea,
thanks. :)


freevo-core:

I added src/ipc/epg.py.  As discussed, this may move to a new location
but for now is at least in a common place.  This module will use it's
own config file (/etc/freevo/epg.conf) so we don't have to repeat EPG
config items in every other config file.  If the plain freevo.conf ever
becomes shared by all processes maybe we can move items to there.  This
module also has a connect() that pulls in some Freevo config items to
pass to the EPG server.  I may rename that function to guide() because
kaa.epg2.__init__ maintains a copy that gets returned.  By using
guide().get_channels() (etc) we can avoid problems with the server going
away.

freevo-tvserver:

Of course, changes here reflect the kaa.epg2 changes.  These changes let
us match channels reported by freevo-tvdev to those in the EPG easier,
and the only ones written to the epg.mapping in the config file are
those it can't find.  The user can also add ones to the mapping to
override potentially bad guesses.

There's a new script, freevo-epg, that can be used as a client to update
the EPG information based on config options, and search the guide.
Right now there's a bug with using multiple guide sources at the same
time, I need to make them run in serial.  This process can also be used
to run the EPG as a server (that will NOT auto shutdown) in case you
have clients that run on a different machine.


freevo-webserver:

I know this is being overhauled but changes here made it easier for me
to test.  I added the ability to search by channel as well.


TODO:
-

kaa.epg2:

-Merge programs better and detect shifts in the schedule.  Right now
there may be problems when adding a program that just moved by a few
minutes.
-there's an exclude_channels variable you can pass but it's not used
yet.  Make this work, ignoring (don't add to DB) matching channels.
-Maybe add a channel_aliases variable in case we have a channel from two
devices or EPG sources that name the smae channel slightly different.


freevo-tvserver:

-test favorites, this may need more work
-add an mbus call to return a list of channels that have been reported
by freevo-dev.  The UIs can use this information to only display
channels that you can use.
-add channel_aliases?
-fix freevo-epg update for multiple sources, which should run in serial.


freevo-ui:

I didn't touch this yet so I need to make it use epg2 as well.  I think
I can do this today still.


There are also some TODO comments in the code.

In case something is not clear, please ask.  There may be a few bugs or
something that doesn't look quite right, and maybe I left something out.
 I have a pretty good testing grounds because I have multiple EPG data
sources and multiple tvdev devices.  Many of the channels on each are
exclusive to themselves but there are some that are the same but have
different tuner_id, some are the same but have different name, some even
have conflicting ids.

For a starting point just svn update, install kaa/trunk/WIP/epg2 and
Freevo, then run freevo-epg, kill it, then edit /etc/freevo/epg.conf.
You can use freevo-webserver to test.  Please report anomolies.

That's all for now, I think.
-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP

[Freevo-devel] Re: [Freevo-cvslog] r8084 - trunk/core/src/ipc

2006-03-13 Thread Rob Shortt
Rob Shortt wrote:
 Log:
 Put cmp_channel function here for now but there may be a better place.

Could I just give the Channel class a def __cmp__(self, other)?

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] Kaa r1230 - trunk/WIP/epg2/test

2006-03-10 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
 
Log:
Unicode fixes.

+print   %s (%s): %s % (program.channel.channel, start_time, 
program.title.encode('latin-1'))
 
 
 You don't like the logger, don't you? Using print is a bad idea in
 general, it won't be in the log files if it runs as a daemon. So you
 should use

Yes, I like the logger. :)


 | log.info('  %s (%s): %s, program.channel.channel, start_time, 
 program.title)
 
 As you can see, no unicode handling anymore. I fixed the global
 logging code to auto convert string and unicode. IMHO this is a much
 cleaner way.

Since you told me logger handles unicode I've been using it exclusively,
just hadn't gotten around to changing this one yet.  It's funny, this is
what I was doing when you told me logger did that.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] r7957 - in trunk/ui/src/input: .

2006-03-10 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
Log:
Add DIRECTFB_MAP.  I would like to move this into the plugin's config() but 
until we get to do more work on integrating plugin configs into the new 
config format this will lead to problem.
 
 
 When we move to kaa.canvas, maybe this needs to go into
 kaa.display. Or maybe this whole code needs to be in
 kaa.base.input. But since it is not that special to freevo, I guess it
 should be in kaa. A nice idea would be to have a unique key mapping,
 both x11 and dfb should return the same values.

I haven't really looked at kaa.base.input but I think this code should
probably go there.  I also don't like the idea of different keymaps from
a user's perspective so I'll revisit that at the same time.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


[Freevo-devel] Re: [Freevo-cvslog] r8059 - trunk/tvdev/src

2006-03-10 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
 
Author: rshortt
Date: Wed Mar  8 17:59:22 2006
New Revision: 8059

Modified:
   trunk/tvdev/src/base.py

Log:
Bugfix, need join, not isfile.

-return os.path.isfile('/etc/freevo/channels-%s.conf' % 
self.device)
+return os.path.join('/etc/freevo/channels-%s.conf' % self.device)
 
 
 Why?

Because the function this is in returns the path to the channels.conf
but in this case only returned True or False.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] r8059 - trunk/tvdev/src

2006-03-10 Thread Rob Shortt
Hans Meine wrote:
 On Friday 10 March 2006 12:58, Rob Shortt wrote:
 
-return os.path.isfile('/etc/freevo/channels-%s.conf' %
self.device) +return
os.path.join('/etc/freevo/channels-%s.conf' % self.device)

Hmm... brain fart... don't need join here, nothing to join, we can just
return the string.  heh.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Freevo 2.0 build/install error

2006-03-08 Thread Rob Shortt
Justin Wetherell wrote:
 Today's SVN
 

...

 /usr/local/src/freevo/lib/python2.3/site-packages/freevo/ui/plugins/mbus.py,
 line 61
 @freevo.ipc.expose('home-theatre.play')
 ^
 SyntaxError: invalid syntax

Freevo 2/SVN now requires python 2.4.  These @ tags are a new feature in
2.4.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] r8049 - trunk/WIP/RobShortt/webserver-epg2/src/pages

2006-03-07 Thread Rob Shortt
Dirk Meyer wrote:
 Did you look at WIP/webserver2? I'm working on a new webserver module
 without our own ugly hacks. It uses cherrypy and cheetah. So the guide
 could be a cheetah template to avoid ugly html in python.

Yes, I've been following that.


 rowdata.append(u'tr class=chanrow')
-rowdata.append(u'td class=channel%s/td' % chan.title)
+rowdata.append(u'td class=channel%s %s/td' % 
(chan.tuner_id, chan.short_name))
 
 
 Just to prove my point, it is hard to read that.

I totally agree.  I'm really only modifying this webserver so I can work
on the EPG.  After CeBIT maybe we can work on a guide for the new
webserver, this one is sooo ugly inside.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] r8052 - trunk/core/src/ipc

2006-03-07 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
Modified: trunk/core/src/ipc/epg.py
 
 I'm not sure ipc/epg.py is the correct filename. I guess I need to
 write some more docs about how I think the structure should be. Maybe
 epg.py in core/src is the way to go, but I'm not sure yet. I will take
 a look at the code after the CeBIT (and we can replace epg with epg2
 by that time, too)

I have the same thoughts as you here, since core.ipc is really for mbus
and there's even some mbus code in ipc/__init__.py.  I wasn't going to
bug you about it until after CeBIT :P.

I have some local tvserver changes too, and should have it all working
with epg2 really soon.  I've simplified somethings and it looks like it
will work out well but I need to finish some changes and do some
testing.  By the time you're done with CeBIT and have time to relax
everything should be in working order and we can do the switch.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: Democracy

2006-02-23 Thread Rob Shortt
Dirk Meyer wrote:
 That's great. I have no time for that, but it looks nice. Subscribe to
 channels, download in the background and add an item in the movies dir
 and watch the videos with mplayer/xine.

Exactly.  I have a seperate freevo process to manage the feeds and
torrents in the background and the results get moved into the apropriate
directory once complete.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: Democracy

2006-02-23 Thread Rob Shortt
Aleksey Sudakov wrote:
 So did anyone figured out already how to plug-in Democracy's channel
 guide into freevo?

I am aproaching it a bit differently.  I'm not using any code from
democracy, except for parts of the rss parser which I've added to
kaa.webinfo.  What I'm doing is parsing channel's rss feeds for the
torrents or media enclosures to download, thumbnails to display, info,
etc, and displaying it Freevo's way.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] SDL Question

2006-02-22 Thread Rob Shortt
Dirk Meyer wrote:
 Hi,

Hi Dischi,

 stupid question to someone who knows SDL: is it possible to create an
 external output lib? Or do I need to patch the source? I need a way to
 make SDL output into _memory_. Why? I want to make it possible to run
 SDL apps like ScummVM on a canvas layer. Are there SDL experts here?

Good idea for an output plugin!

I think you have to patch the source because all outputs seem to be
compiled into the libSDL:

# ldd /usr/lib/libSDL-1.2.so.0.7.2
linux-gate.so.1 =  (0xe000)
libm.so.6 = /lib/tls/libm.so.6 (0xb7e96000)
libdl.so.2 = /lib/tls/libdl.so.2 (0xb7e92000)
libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0xb7dc7000)
libXext.so.6 = /usr/lib/libXext.so.6 (0xb7db9000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb7da7000)
libc.so.6 = /lib/tls/libc.so.6 (0xb7c7)
/lib/ld-linux.so.2 (0x8000)

# ls /usr/lib/libSDL
libSDL-1.2.so.0libSDL_image-1.2.so.0
libSDL_ttf-1.2.so.0.2.0
libSDL-1.2.so.0.7.2libSDL_image-1.2.so.0.1.3  libSDL_ttf-2.0.so.0
libSDL.a   libSDL_mixer-1.2.so.0
libSDL_ttf-2.0.so.0.6.1
libSDL.la  libSDL_mixer-1.2.so.0.2.4  libSDLmain.a
libSDL.so  libSDL_ttf-1.2.so.0

I would rather see a directory structure like DirectFB with all the
drivers and plugins in one dir.  So, I think you will have to patch the
source and build the output plugin as part of the lib.  Damn, that sucks.

Just FYI, you can see the output plugins here:

http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Democracy

2006-02-22 Thread Rob Shortt
Cyril wrote:
 Hi all,

Hi,


 I don't know if you guys are familiar with democracy, but it is an
 awesome webtv project!

Indeed it is, formerly DTV, I haev been following it closely. :)


 Since the player is written in python ... how about a plugin for that?

I guess you can say I'm already working on it.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] handling VIDEO_GROUPS

2006-02-07 Thread Rob Shortt
TheHog wrote:
 Hi,

Hi,


 I'm rewriting a plugin for xine/ivtv/tv. Now I'm fighting with the video
 groups config setting. With the method FreevoChannles.getVideoGroup(chan) I
 get the video group the selected channel belongs to. But what if my plugin
 cannot handle its group_type ? What should it do then?

You would do something like:

grp = freevochannels.getVideoGroup(chan)
if grp.group_type not in [ 'tv', 'ivtv' ]:
  log error
  send popup to user
  return


Good luck,
-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] handling VIDEO_GROUPS

2006-02-07 Thread Rob Shortt
Richard van Paasen wrote:
 
TheHog wrote:
I'm rewriting a plugin for xine/ivtv/tv. Now I'm fighting with the video
groups config setting. With the method
 
 FreevoChannles.getVideoGroup(chan) I
 
get the video group the selected channel belongs to. But what if my
 
 plugin
 
cannot handle its group_type ? What should it do then?

You would do something like:

grp = freevochannels.getVideoGroup(chan)
if grp.group_type not in [ 'tv', 'ivtv' ]:
  log error
  send popup to user
  return

 
 
 Hmm, sounds like I don't fully understand the concept Video Group. I though
 it was meant to seperate channels in groups such that one could have (e.g.)
 dvb channels in addition to (e.g.) regular cable channels. Both channels are
 provided by different devices and thus different drivers.

Right,


 Now, my plugin starts xine with the ivtv driver and hardware MPEG
 accelleration. Channel switching works, as long as the new channel is part of
 the ivtv group. But what if the user switches to a channel that belongs to
 another group? Preferably I'd hand over control to another plugin (or back to
 freevo). If I'd popup an error box then the particular channel group isn't
 needed at all.

I think there's an example in one of the TV plugins on how to do that,
maybe one of the mplayer ones.  I used to have my setup doing this
somewhat ok - I had 3 groups, one for my ivtv tuner input, one for
composite (sat receiver input), and a webcam.  I could switch between
them without problems.  One thing I didn't do though was to say one
channel was provided by two groups for redundancy.  I think you'll need
to dig a bit more and add some logic.

It's been so long since I've looked at the 1.5.x code, and we don't
really care to since 2.0 is close.  BTW Freevo 2.0 can / will be able
to do what you're trying.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Recordserver crash after upgrade to ivtv-0.4.0

2006-01-05 Thread Rob Shortt
Hi,

John Molohan wrote:
 Duncan Webb wrote:
 
 John Molohan wrote:

 Hi,

 I'm running freevo 1.5.3 patched for python2.4, with a pvr-150. This
 setup had been running nicely until I upgraded from ivtv-0.3.3k to
 ivtv-0.4.0 drivers (I wanted to check out Duncans vbi2srt). I can
 still watch TV with freevo but recording gives the following crash.



 I think that you should use freevo-1.5.4 with Python-2.4. Somewhere I
 read that freevo-1.5.4 had fixes for Python-2.4.

 Personally I use Python-2.3, freevo-1.5.4 and ivtv-0.4.0 without any
 problems. Robert Winder reports that ivtv-0.4.1 also works.

Does that mean some people running 0.4.1 don't have this problem?


 confirm, as I really want to try out your code. I think Rob did most of
 the ivtv work, maybe he can shed some light?

Yep.


 /usr/lib/python2.4/site-packages/freevo/tv/v4l2.py, line 249, in
 getfmt
 2006/01/04 18:12 GMT [*RecordServer*] r =
 fcntl.ioctl(self.device,i32(GET_FMT_NO),val)
 2006/01/04 18:12 GMT [*RecordServer*] IOError: [Errno 22] Invalid
 argument

Strange, the ivtv guys are working towards v4l2 compatability but it
looks like a driver change broke something.  I don't have 0.4.1 running
here yet though, but maybe I'll have a chance to update soon.  In the
meantime just comment out  line 160 in
/usr/lib/python2.4/site-packages/freevo/tv/plugins/ivtv_record.py (if
DEBUG: v.print_settings()).  You also may like to try the 0.5.x driver.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


[Freevo-devel] epg2

2005-12-22 Thread Rob Shortt
Hi,

I've been looking at the Freevo 2.0 status and wondering what I could do
to help move things along.  This past week I got IVTV recording and
watching working again (and also a URL record feature).

I know we're planning on moving to epg2 in kaa WIP dir, with a
client/server model.  So, epg2 needs some features added from kaa.epg
before we can use it.  I would like to use this email thread to gather a
list of these features and build a TODO.  Then, I would like to start
work on it since I will have one or two weeks off. :)

epg2 TODO:

-add more fields in the DB for programs and channels
-review the API
-add missing source_ grabbers


Please add items.  For now in no particular order.

Thanks!
-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: epg2

2005-12-22 Thread Rob Shortt
Dirk Meyer wrote:
  I guess you can find the needed functions when you try to integrate
 epg2 into freevo :)

Yeah I'm sure that ots of issues will arise then.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: [Freevo-cvslog] Kaa r996 - trunk/epg/src

2005-12-19 Thread Rob Shortt
Dirk Meyer wrote:
 Why is title not unicode? Your grabber should take care of that. IIRC
 our xmltv parser always provides unicode, so your grabber should do
 that, too. There should be no normal strings in kaa and Freevo except
 filenames. 

Ok, I'll go through vdrpylib and make sure everything is unicode there.

-Rob

-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


[Freevo-devel] Re: [Freevo-users] [ANNOUNCE] freevo-vdr-0.5 for Freevo-1.5.4

2005-11-08 Thread Rob Shortt
Lucian Muresan wrote:
 - migrated to use http://sourceforge.net/projects/vdrpylib and therefore

I hope you're using the CVS version of this. :)  If you're using a
recent VDR then it is required to work properly.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: TV Changes

2005-10-18 Thread Rob Shortt
Hi Dischi, I've had a chance to do an update and check some things out.

Dirk Meyer wrote:
 Dirk Meyer wrote:
 
Only DVB is working right now, Rob needs to update ivtv
to the new style. Rob: to do that, I guess you need to integrate some
sort of scanner so you know what channels you have. Freevo-tvdev

Ok, scanning analog channels may become a problem in some parts of the
world or there may be problems with some drivers implimenting the ioctl
calls we use.  The current scanning produces an error on my ATI
TV-Wonder and finds no channels on my ivtv card.  I am pretty sure that
the vbi calls in the ivtv driver don't conform to what's expected, and I
will be looking into this issue on the ivtv list.

I would like to be able to fall back to using the regular chanlist
(us-cable, europe-west, etc) if scanning fails.  So, limiting the
channels to those known by the epg or a conf file is important.  I guess
what I'm saying is that it shouldn't be totally on tvdev to provide a
concrete list of channels upstream because in that case in the analog
world it would always say it has channels that it doesn't (when scanning
fails, which it will).


doesn't know about unified channel names, the mapping to the epg is
done by freevo-tvserver.

How are channels named in your analog scan?


 OK, you can now call 'freevo-tvdev tv0 scan' to scan a device. If ivtv
 is working again, it should also work there without changes. Whats
 missing is writing the channels.conf file after a scan, so right now
 it is useless. Rob: can you add channels.conf writer and reader after
 you fixed ivtv? And we should find a way to handle an external tuner.

I'm not convinced that a channels.conf is required for tv and ivtv
devices, but maybe if scanning was reliable.  Scanning for analog
channels is not a frequent practice (probably for that reason).  I will
look into this more.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: The future of freevo record

2005-10-14 Thread Rob Shortt
Lucian Muresan wrote:
 Hi folks!

Hi,


 Dirk Meyer wrote:
 
Damit, my mail yesterday got lost :(

Rob Shortt wrote:
 
 [...]
 
Also, have you looked at using a different channels.conf format?  The
one you're using now relies on the DVB name as the defining factor which
isn't that reliable IMO.  The VDR 1.3.x format is consistent accross
DVB-C/S/T I think, and exposes the channels Service ID (SID).


I was thinking about creating our own channels.conf format, including
dvb and analog settings. 

In that case I was going to suggest the same thing as Lucian here.


 This is getting in the same old direction, re-invent everything. You're
 not to blame for this, as there isn't any universal format for TV
 channels yet, every application has it's own (xawtv, tvtime, xine,
 mplayer, freevo, etc...), and that's a pity. VDR's channel.conf also
 support analogue channels (just by the usge of the present fields, VDR
 itself isn't aware of analog channels), as described in the analogtv
 plugin's documentation.
 http://www.linuxtv.org/vdrwiki/index.php/Syntax_of_channels.conf
 http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf
 http://www.vdr-wiki.de/wiki/index.php/Channels.conf_analog
 I couldn't setup analogtv myself, but there is another similar plugin
 only targeted at Hauppauge PVR and compatible cards, pvrinput, which was
 a snap to install and use, as it just takes the MPEG2 stream from the
 PVR's hardware encoder and feeds VDR's MPEG2 decoder, whatever that is,
 hardware or software. Pvrinput also uses the same format as analogtv
 does, for VDR's channels.conf analogue channels entries. So VDR's
 channel.conf basically has all this. I have to agree, it lacks
 information about the language of the EPG for a specific channel for
 example, which is not necessarily the same like the language of audio
 pids, but Freevo is using UTF-8 already anyway and maybe will deal with
 this better.
 
...

 I don't know if you guys followed the linuxdvb ML, but there where
 efforts to unify channel configuration data in a library (I guess at the
 moment it's just in CVS): libdvbcfg, just ahave a look
 http://www.linuxtv.org/cgi-bin/viewcvs.cgi/dvb-apps/libs/ . They
 enherited lots of things from VDR 1.3.x. Maybe it is a good moment to
 try to unify all this channel format chaos, then applications could just
 use libdvbcfg and then channel configs may be shared between such
 frameworks of more apps like freevo is, easier. I think libdvbcfg might
 even be able to accomodate analog channels the way it's done in VDR,
 because it's just up to the application (like in VDR's case, to the
 anlogplugin or pvrinput) to use those channels masked by a special CA-ID
 which normal DVB-targeted apps ignore due to the fact that those look
 encrypted to them.

I had this library in mind too (or a pure python equivalent) and think
that we should look into it.  AFAIK it defines an ini style config file
that's easy to manage.  This format could support all of our channel types.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: The future of freevo record

2005-10-14 Thread Rob Shortt
Dirk Meyer wrote:
 Rob Shortt wrote:
 
I had this library in mind too (or a pure python equivalent) and think
that we should look into it.  
 
 
 Pure Python

That's my preference too.


AFAIK it defines an ini style config file that's easy to manage.
 
 
 Ini style? The VDR channels.conf doesn't look like an ini file to
 me. Do you have more docs (== not reading the source)?

This lib isn't used by VDR (yet) and is the result of several
discussions on the DVB and VDR lists.  I think this one is ini style.
I'll have to go back and refresh my memory on the specifics though.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: The future of freevo record

2005-10-14 Thread Rob Shortt


Rob Shortt wrote:
 Dirk Meyer wrote:
Ini style? The VDR channels.conf doesn't look like an ini file to
me. Do you have more docs (== not reading the source)?
 
 
 This lib isn't used by VDR (yet) and is the result of several
 discussions on the DVB and VDR lists.  I think this one is ini style.
 I'll have to go back and refresh my memory on the specifics though.

Ok, I may be completely confused here.  I know I saw discussions about
an ini style conf and thought they were implimenting it...

Let me just let this coffee take effect and I'll do some more poking around.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: The future of freevo record

2005-10-14 Thread Rob Shortt
Dirk Meyer wrote:
 BTW, I will start a freevo-record dir for the recorder tomorrow. It
 will be next to freevo in the svn, not in it. The same for freevo-tv
 containing the recordserver. And a kaa/WIP/record with changes to fit
 the new needs. Since freevo-record and freevo-tv are such bad names,
 I'm open for suggestions. Freevo-record could be named fred (Freevo
 Recording Daemon or Device), but I'm not sure I like that name. Maybe
 we can adapt the kaa naming scheme to name the freevo parts after
 figures of the jungle book. But why should the recordserver be named
 baloo? I guess it is also a bad idea.

Will there be a freevo-base similar to kaa, to hold the common code?

How about fredi (Freevo Device Interface)?  I think using the word
record has certain implications that aren't always true.  You can
stream tv to clients without recording.

I have no ideas right now for a freevo-tv alternative.  This suffers
similarly because you don't neccessarily need freevo-tv to watch tv,
since that could be done from another computer with an alternative UI or
potentially through the web interface.  This is more like freevo-tvui.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] The future of freevo record

2005-10-13 Thread Rob Shortt
Dirk Meyer wrote:
 Hi,

Hi Dischi,


 I played with the new analog card (thanks to the donators btw) to make
 configuration easier. How can Freevo know on what frequence a channel
 is. After some playing using libzvbi I found the following results.
 
 1. In Europe channels have a unique id. To test it, install libzvbi
and current kaa.record and run the scan test app of kaa.record.
Doing scan will show a) all frequencenies where channels are and in
most cases b) what channels are on the freq. As example, I can find
'ARD' with unique id 60 (I don't know the current id right now, 60
is wrong) and S50 == frequency .
 
 2. DVB channels have a name. So the same ARD channel from obove is
named 'Das Erste RB' for DVB-T in Bremen.
 
 So now we need a way to tell Freevo that analog id 60 is identical to
 DVB channel 'Das Erste RB' and identical to the xmltv id ard.de.

Yes, back to your DVB:XMLTV mapping problem.  Since no channels as
defined by the DVB stream have anything in common with your XMLTV source.

So far, the only solution to this problem that I have found is that
users that are in this situation MUST define these channels in
TV_CHANNELS with the access id being the DVB name (for DVB-T at least)
or service ID.


 I started a file called channels.py for this information. As a result,
 the user only needs to start the scan and Freevo will know
 
 a) what channels you can receive
 b) where they are (analog/dvb and freq)
 c) a unique name to search xmltv files
 
 Based on this, kaa.epg should only contain informations about stuff
 you can receive.
 
 Now the problem: this works great for Europe, but what about the US,
 Canada, Asia, etc. Since I live in Europe, I can't test. So I need
 some information:
 
 1. Where can you get channel-frequency mappings for analog cards. For
the US, you can use the xmltv file to get that mapping.

channel- frequency comes from the chanlists defined in
v4l_frequencies.py, and the XMLTV data defines the channel (tuner id).

A chanlist is just a broad range of possible channels for a particular
area.  I am using the us-cable chanlist and it defines way more channels
than I have but that doesn't matter, nor is it the point.  It's just a
mapping, in case I want to tune to channel 50 we know what frequency
to set the analoge tuner to.  The channels that I want to use are
defined by my XMLTV data, which I have the privalege of configuring for
my own use (I don't think all grabbers or providers support that).


 2. Where can you get the channel-dvb-name mapping. I know no source
at all with that kind of data, but we could start such a db.

So, channels.py is this db?  I will check it out when I have some time.
 I guess maintaining such a database will solve the problem but the DVB
name depends on what your provider has set and any change will result in
breakage.  There are other deffinitions in the DVB stream / tables that
you should be able to use more reliably.

Also, have you looked at using a different channels.conf format?  The
one you're using now relies on the DVB name as the defining factor which
isn't that reliable IMO.  The VDR 1.3.x format is consistent accross
DVB-C/S/T I think, and exposes the channels Service ID (SID).

Now, in the past, it is this SID (just like a numeric tuner ID) that
made the correlation to my XMLTV data, for example channel 203 in my
XMLTV data was the same as the DVB channel defined by SID 203 - and in
almost every case the XMLTV display name and the DVB name were different.


 Comments / better suggestions / help ???

Can you check if your DVB provider broadcasts a Service ID for your
channels?  Also, have you looked into the VDR 1.3.x channels.conf format?

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: kaa.epg sucks

2005-10-12 Thread Rob Shortt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Jason Tackaberry wrote:
 On Wed, 2005-10-12 at 11:21 +0200, Dirk Meyer wrote:
 
BTW, one major problem may be the parser. But the other thing is that
you need to check every program if it is already in the db or if it is
updating something. 
 
 
 In the case of xmltv files, at least, you're not dealing with partial
 updates but complete datasets.  It makes sense to just wipe the database
 clean and start over when updating from xmltv.  (I don't know about
 dvb.)

But, we need to have the ability to subsidize existing data with
alternate sources, and also the database may likely consist of data from
multiple sources for different channels.  DVB data, if taken from the
stream, may be updated in patches too.

- -Rob


- --
- ---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTQvrJ+LOBHZ1wCsRAnkwAKDof+mTh4bUyA07zWK0Uk/yU5d0aACfZHCm
hdCtBgrAyxvYRo/8IZtW5E4=
=C97b
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: kaa.epg sucks

2005-10-12 Thread Rob Shortt
Jason Tackaberry wrote:
 P.S. Any reason you're using inline pgp instead of pgp-mime?

I just noticed that myself.  I was set to allow PGP/MIME, not use
always.  This is a test. :)

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


signature.asc
Description: OpenPGP digital signature


Re: [Freevo-devel] Re: kaa.epg sucks

2005-10-11 Thread Rob Shortt
 seems to be the way to
 go.

I also agree that fetching the data before trying to show the EPG is
best.  What I'd like to avoid is a problem we're having right now.  The
local cached EPG data will be incorrect if the EPG changes in the
database / server.  Will we use some callbacks for when the server updates?

Ideally I'd like to see everything done realtime, from the client, to
the server, to the database, but I'm not sure we can get the performance
there that we really want.  Is it bad to dream?  A small buffer on the
client and prefetching could hide potential lag.


Back to client / server. When we want to add data to the epg, we spawn
a child. First we check if a write child is already running (try to
connect to the ipc, if it doesn't work, start child, I have some test
code for that). Same for kaa.vfs. One reading thread in each app, one
writing app on each machine. 

Again I'd prefer a single point of entry...


 I think I need to change my opinion a bit about kaa.base.ipc.  My
 original thinking was that you don't need to write a client API.  You
 just grab a proxy to a remote object and use it as if it's local.  This
 works in terms of functionality, but in practice, things aren't so
 clear.  For example, in the epg example, you do a query and return a
 list of 2000 Program objects.  Since objects get proxied by default, all
 those Program objects are proxies.  So if we assume epg is a proxied,
 remote object:
 
 for prog in epg.search(keywords=simpsons):
prog.description
 
 That would be fairly slow, because since 'prog' is a proxied Program
 object, each access of the description attribute goes over the wire.
 Alternatively you could do this:
 
for prog in epg.search(keywords=simpsons, __ipc_copy_result =
 True):
   prog.description
 
 That'd be fast, because each Program object is pickled (rather than just
 a reference to it), so all those objects are local.  But if Program
 object holds a reference to the epg (prog._epg in my case), if you use
 __ipc_copy_result, the epg Guide object also gets pickled.  That's not
 good.
 
 Ideally you'd want Program objects to get pickled (so that attribute
 accesses are local), but the epg reference is to a remote object.  This
 isn't something kaa.base.ipc can do automatically.  It needs some
 supporting logic.
 
 So in reality, we'll need a client API that uses IPC and does
 intelligent things for the API its wrapping.  This isn't really a
 problem, it just means that kaa ipc isn't magic pixie dust like I
 claimed it was. :)
 
 
And kaa.epg has different sources. One is
xmltv, a new one could be sync-from-other-db. 
 
 
 As I mentioned on IRC, unless this is just a straight copy of the sqlite
 file, this probably isn't worth it.  Syncing individual rows means
 accessing the db through pysqlite in which case we're not really saving
 anything.  With libxml2, parsing the xml file is very quick.  Almost all
 the time is due to db accesses, so we're not saving much by syncing at
 the row level from another db.
 
 Copying the epgdb.sqlite file straight over would be a big win, of
 course.  We could implement that eventually.

I don't like the idea of syncing the databases.  I'd rather that there
was one database, one controlling process with a client/server interface
(for reads AND writes (including large writes like tv_grab results)).

I would be happy with something like this:

  +-+
  |epg_server.py+
  +-+
  |   kaa.epg   +---+
  | | DB|
  |-+---+
  |object interface/IPC |
  +-+
  /\
 /  \
/\
UNIX or TCP/IP sockets
  /\
 /  \
 +--++--+
 |epg_client.py ||epg_client.py |
 +--++--+
 |  client 1||  client n|
 +--++--+
 | cached OR|
 | realtime view|
 +--+

Where epg_server.py would be the server process and singular interface
to the real EPG / DB.  epg_client.py would be the required wrapper /
glue that is imported by the client process (tv/webserver/tv_grab) and
accessed like a local object in that respect, and juggles the server
interface.  Ideally the only cache that should exist at all would be on
the client, and NOT in the server (db results in Program/Channels array
for example) because then there'd be multiple layers of cache, which we
would have today if we did this with the current kaa.epg.

- -Rob


- --
- ---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird

Re: [Freevo-devel] Re: kaa.epg sucks

2005-10-07 Thread Rob Shortt
Dirk Meyer wrote:
 Hi,

Hi guys,


 Jason Tackaberry wrote:
 
Well, I started kaa.epg parsing my xmltv file.  Now it's not small --
17M -- but that's not exactly huge either.  (27000 programs or so.)
After I saw the process grow to 410M I was not very impressed.  This
isn't any improvement over 1.5.x.  After the thing ran for 12 minutes
and still wasn't finished, I got impatient and aborted it.
 
 
 Well, the xmltv parser sucks, I know. It is still the old one from
 Freevo 1.5.
 
 
So I wrote my own.
 
 
 :)

:)  Someone needs to write a zap2it datadirect parser too...


I use libxml2.  For database, since I wanted to take advantage of
keyword searching, I use kaa.vfs.  So my version uses 130M and takes 160
seconds.  Still not awesome, but at least it's tolerable.  And it works
how I want it:

[EMAIL PROTECTED] ~]$ python epg.py simpsons
WORD: simpsons (5525), freq=125/27604, idf_t=7.398163
Program found:
Title: The Simpsons
 Desc: Bart and Homer join a big brother program to
spite each other.
 Chan: 625 COMEDC
Query took 0.0109269618988

I think this is a neat use of kaa.vfs.  When you think about kaa.vfs's
design (at the db level), it's pretty flexible.  You can specify
arbitrary objects with any parent/child relationship.  So I define a
channel object, and a program object which is a child of a channel.
 
 
 Yea, but kaa.epg also does nice stuff like getting programs between
 time x and y and has nice objects around everything. Maybe instead of
 moving kaa.epg into kaa.vfs, we should move some logic from kaa.vfs
 into kaa.epg. We need to improve two things in kaa.epg:
 
 1. Better use of the database. I guess we need to copy some stuff from
kaa.vfs. 

We could definately use keyword parse / search in kaa.epg.


 2. Better xmltv parser. You never used the database, you stopped the
program while reading the xmltv file. So your parser needs to moved
into the kaa.epg xmltv parser.
 
 
Maybe kaa.epg can use kaa.vfs for database access.  Maybe kaa.epg can
use libxml2, because god knows, whatever it's using now is brutally,
brutally slow.

Yeah the old parser is a total hog.

I wonder... if we used kaa.vfs in kaa.epg, would it be easier to wrap it
up with ipc or mbus?  I still have a strong feeling that the EPG should
be client / server oriented.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] problem with directfb

2005-10-06 Thread Rob Shortt
[EMAIL PROTECTED] wrote:
 First, I have progressed since yesterday. I replaced vesafb by viafb.
 So I remove vga=791 in my kernel line of boot. Then I put in /etc/modules:
 viafb mode=1024x768 refresh=75
 Then reboot.
 I wanted to apply the viafb_03.diff patch to my kernel (2.6.12.3) but there is
 an error:
 patching file drivers/video/Makefile
 Hunk #1 FAILED at 34
 Do you know what is this?

You will have to look at the .rej file it created and resolve it
manually.  That patch was made for 2.6.10 so this is not a big surprise.


 Secondly, If I want freevo not to stop when it arrives on the main menu, I 
 have
 to put in freevo.conf : 800x600 and not 1024x768. But curiously, it starts in
 1024x768 (I don't know why).

Also try this line in /etc/directfbrc:

mode=800x600

Why not also boot up in 800x600?


 Thirdly I have still this problem:
 
 
[EMAIL PROTECTED] wrote:

I can't move in the main menu (I can only

...

I'll need to see debug logs for that.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] problem with directfb

2005-10-04 Thread Rob Shortt
[EMAIL PROTECTED] wrote:
 Hi,

Hi,


 When I run freevo, I can see the loading of freevo but after that it stops.
 This is the debug information:
 
-- DirectFB v0.9.23 -
  (c) 2000-2002  convergence integrated media GmbH
  (c) 2002-2004  convergence GmbH
 ---
 
 (*) DirectFB/Core: Single Application Core. (2005-10-03 17:21)
 (*) Direct/Memcpy: Using MMXEXT optimized memcpy()
 (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 4551)...
 (*) Direct/Thread: Running 'LiRC Input' (INPUT, 4552)...
  (!!!)  *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:797]
 (*) DirectFB/Input: LIRC Device 0.2 (convergence integrated media GmbH)
 (*) Direct/Thread: Running 'Linux Input' (INPUT, 4553)...
 (*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (convergence 
 integrated
 media GmbH)
 (*) Direct/Thread: Running 'Linux Input' (INPUT, 4554)...
 (*) DirectFB/Input: PC Speaker (2) 0.1 (convergence integrated media GmbH)
 (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 4555)...
 (*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
 (*) DirectFB/Genefx: MMX detected and enabled
 (*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence integrated 
 media
 GmbH)
 (*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
 (!) DirectFB/FBDev: Panning display failed!
 -- Invalid argument
 (!) DirectFB/FBDev: Panning display failed!
 -- Invalid argument
 DirectFB layer config:
   buffermode:  4
   goemetry: 1024x768
   pixelformat: DSPF_RGB32
 (!) [ 4540:0.000] -- Caught signal 11 (at 0x83fc8432, invalid address) 
 --
 
 
 I don't know what means the error Panning display failed. If it's the cause 
 of
 my problem, how can I fix it?

Which framebuffer driver are you using, and what is your video card?  If
you're using vesafb I think you need to enable panning (ypan kernel
option or something).

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] problem with directfb

2005-10-03 Thread Rob Shortt
bardinov wrote:
 Hello,

Hi,


 I try to install freevo 2 with directfb.
 When I run freevo, I have this error and I don't find how to solve it.
 
 ERROR main(273): Crash!
 Traceback (most recent call last):
...

 from directfb import *
 ImportError: No module named directfb
 
 I have installed the last version of DirectFB (0.9.22)

But you also need pydirectfb, the python module, from CVS:

http://sourceforge.net/cvs/?group_id=99494

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] problem with directfb

2005-10-03 Thread Rob Shortt
bardinov wrote:
 Thanks for your very quick reply.

No prob.


 I've downloaded the cvs version of pydirectfb but when I do python setup.py
 install, this error appears:
 
 building 'directfb' extension
 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
 -fPIC -I/usr/include/directfb -I/usr/include/python2.3 -c directfb.c -o
 build/temp.linux-i686-2.3/directfb.o
 directfb.c: Dans la fonction « DirectFB_GetCardCapabilities »:
 directfb.c:300: error: `DFBGraphicsDeviceDescription' undeclared (first use in
 this function)
 directfb.c:300: error: (Each undeclared identifier is reported only once
 directfb.c:300: error: for each function it appears in.)
 directfb.c:300: error: erreur de syntaxe before caps
 directfb.c:301: error: structure has no member named `GetDeviceDescription'
 directfb.c:301: error: `caps' undeclared (first use in this function)
 directfb.c: Dans la fonction « DirectFB_GetDeviceDescription »:
 directfb.c:311: error: `DFBGraphicsDeviceDescription' undeclared (first use in
 this function)
 directfb.c:311: error: erreur de syntaxe before desc
 directfb.c:312: error: structure has no member named `GetDeviceDescription'
 directfb.c:312: error: `desc' undeclared (first use in this function)
 directfb.c: Hors de toute fonction :
 directfb.c:417: attention : `enumvidmodecb' defined but not used
 error: command 'gcc' failed with exit status 1
 
 Do you know where my error is?

Yes.  I thought I had a version check in there for that.  The DirectFB
API changed slightly since the 0.9.22 release (CardCapabilities changed
to GraphicsDeviceDescription).  I guess pydirectfb relies on the CVS
version of DirectFB.

Could you try to build DirectFB from CVS as well?  The CVS version has
been working well for me.  If you have problems there I can give you a
patch to make pydirectfb work with DirectFB 0.9.22.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] website themes

2005-09-28 Thread Rob Shortt
Karl Lattimer wrote:
 Hi there,

Hi,


   I'm gonna get to work this weekend on the website layouts and maybe a
 couple of the components like the theme browsers/plugin browsers etc... 
 
 Attached is the logo i did for Dirk, I hope you all like it as this is a
 style i'm going to try and adhere to.

Wow, that's very nice.  It's certainly not easy (for me at least) to
come up with unique logos and designs.  I really like it.


 In the mean time I'm also working on a new theme for freevo along the
 same lines, I just wanted to know if themes from freevo 1.5.x were
 compatible with freevo 2.0 themes.

I think they're really close if not the same.  Dischi would have the
difinitive answer.

-Rob


-- 
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Moving from CVS to SVN

2005-09-16 Thread Rob Shortt

Dirk Meyer wrote:

Comments (for people who know svn better than I do)?


Can you setup ViewCVS too please?

Also, I'm going to have a find an SVN how-to for people who know CVS well.

-Rob

--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: Moving from CVS to SVN

2005-09-16 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:

Can you setup ViewCVS too please?


Something like it. Also some sort of mailer for changes. 


ViewCVS works with SVN too BTW (I've set it up for both).  And yes, 
changelogs are a must.


-Rob

PS - let me know if you need help with anything

--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] kaa/record/src v4l_tuner.py,1.6,1.7

2005-09-16 Thread Rob Shortt

Dirk Meyer wrote:
  FDSplitter now also takes a filename as argument and opens/closes to

file is needed. Maybe you can use it.


Yeah, I tried that when you made the change but it didn't work out 
because the driver was locking out one of the open files (same device is 
used for ioctl and reading).


The warning is only issued once, as soon as recording starts, probably 
because there's no data yet (ok that makes no sense because notifier 
wouldn't tell us) or the device is still busy with one of the ioctls or 
something else internally.


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo crash when trying to access epg

2005-09-16 Thread Rob Shortt

Peter Andersson wrote:

  File /mythtv/freevo/freevo2/freevo/site-packages/freevo/tv/tvguide.py,
line 84, in start
self.channel  = kaa.epg.channels[0]
IndexError: list index out of range


It looks like your EPG has no data.  Did you run freevo tv_grab to 
populate its database with your listings?


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: [Freevo-cvslog] freevo/src/helpers recorder.py,1.8,1.9

2005-09-15 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


+ def start_recording(self, channel, output):
+ 
+ Start a recording, create the filter chain and add the filters we care
+ about.
+ 
+ log.info('we wish to record channel %s' % channel)
+ chain = kaa.record.Chain()
+ chain.append(output)
+ return kaa.record.IVTVDevice.start_recording(self, channel, chain)



Where do you convert internal channel id to frequency?


I moved the frequency tables into kaa.record, but I think you're 
referring to the channel's tunind id (access_id).  Well, I don't need to 
convert anything since that is what's passed to this function. :)


I took a look at what you're doing here and think that might not be 
neccessary either.  In my local copy (I just remembered) I have a couple 
modifications to external.py to deal with a dvbism that's there too, and 
perhaps allow me to do what I do.


Also, I see that you refer to kaa.epg.channels in recorder, but wouldn't 
it be better to look at card.channels and do anything special at 
config/detect time (like is already done)?


When I get IVTV working better I will spend some time looking at all the 
channel/id translation stuff for a generic answer.  The main problem 
we're working around here is that for you (and of course many other 
people)  the TV guide information you're getting in XMLTV format doesn't 
have an (tuning/access) id to match that of TV_CHANNELS and kaa.epg.


Anyhow, I do have some things to try, so I wouldn't worry much about it 
for the next little bit.


-Rob

--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: [Freevo-cvslog] freevo/src/helpers recorder.py,1.8,1.9

2005-09-15 Thread Rob Shortt



Rob Shortt wrote:
The main problem 
we're working around here is that for you (and of course many other 
people)  the TV guide information you're getting in XMLTV format doesn't 
have an (tuning/access) id to match that of TV_CHANNELS and kaa.epg.


I don't think that came out right. :)  Of course, your XMLTV data has 
all the information that you need.


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] freevo freevo_config.py,1.403,1.404

2005-09-13 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


+ # Example:
+ #
+ # IVTV0_CODEC['bitrate'] = 500
+ # IVTV0_CODEC['bitrate_peak'] = 600
+ #



Why not IVTV0_CODEC_BITRATE? This would avoid defining all the default
dicts in config. And I hope to create a simpler config file for
recordings in ini format later, similar to

...


[ivtv0]
codec_bitrate = 500
codec_bitrate_peak = 600


In that case it would make more sense to have a seperate variable for 
each key, and will be way easier to port the config properties to this 
new format.  Originally I prefered grouping them together as to not 
clutter things but I see good reason to do it this way now.


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] freevo freevo_config.py,1.403,1.404

2005-09-13 Thread Rob Shortt

Dirk Meyer wrote:

And I hope to create a simpler config file for
recordings in ini format later, similar to

[general]
general_variables_for_recorder = 1

[dvb0]
channels_conf = /home/dmeyer/channels.conf

[dvb1]
priority = 10

[ivtv0]
codec_bitrate = 500
codec_bitrate_peak = 600


I'm not sure if you've seen this before but I did a quick search and 
found something which is already in the python libraries.


http://www.python.org/doc/2.3.5/lib/module-ConfigParser.html

There's some examples here:

http://www.oreilly.com/catalog/pythonsl/chapter/ch05.html

-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: [Freevo-cvslog] freevo freevo_config.py,1.403,1.404

2005-09-13 Thread Rob Shortt

Dirk Meyer wrote:

Keep it as it is for now. The recorder needs not much from
Freevo. Only card detection and a channel name - id mapping. The
first one is only needed for this module, so we can move all tv stuff
to a config file for a recorder.


Ok, it will be easy to change when we need to.



But how to handle the mapping problem? I'm still not happy with the
current CHANNELS solution.


I have some ideas that I'll play with when I can start using IVTV with 
kaa.record.  Still thinking though.


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Small bug in v4l2.py

2005-09-13 Thread Rob Shortt

Duncan Webb wrote:

You may find that these patches will help with the ivtv driver:

ivtv-0.3.7k-r1.patch fixes a bug with the querymenu ioctl command (not 
relevant for setfmt)
ivtv-0.3.7k-debug.patch adds printk messages showing how the ioctl is 
being called. ivtv_debug=16 (bitmapped so ivtv_debug=255 prints everything.
v4l-test.tar.bz2 contains a small test program hacked from xawtv's 
v4l-info program.


Thanks, these will help debug ioctl related problems.

-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: [Freevo-cvslog] freevo freevo_config.py,1.404,1.405

2005-09-13 Thread Rob Shortt

Hans Meine wrote:

On Tuesday 13 September 2005 10:38, Dirk Meyer wrote:


Won't work. The priority is important for the calculation which card
too choose. The best card you can have is DVB-C, that's why it has a
priority of 10. A priority of 0 is a very very bad card (not much
better than dropping the recording).

I suggest ivtv cards to use a priority of 6 or 7 (set a default for
all cards to 7 and the user can adjust it) and for normal analog cards
to 4 or 5.



Just as a side note, I found my ivtv recordings from cable TV to be of much 
better quality than (lower bitrate) terrestrial DVB.  Most people seem to be 
thinking that digital TV is always better.


I have had the same experience with IVTV vs DVB-S.  The companies 
marketting digital cable and satellite are always saying how the quality 
is better because it's all digital.  The truth is that they broadcast 
most channels with the lowest bitrate they can get away with, and use 
higher bitrates for movie channels and special events (and of course 
HDTV channels).  With IVTV even though the incomming signal is analog I 
can still set the mpeg bitrate to DVD quality and the results are superb.



(That doesn't mean that I want different default priorities - I could still 
change them for me personally.)


Agreed.  I'm setting the default priorities to 5 for v4l TV and 7 for IVTV.

-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] kaa/record/src ivtv_tuner.py,1.1,1.2

2005-09-12 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


! # python imports
! import logging
! import string
! import struct
! import time
 
! # kaa imports

! from kaa.base.ioctl import ioctl, IOR, IOW, IOWR
! from v4l_tuner import V4L



Please also make an extra comment for stuff in this module. It is
easier to find dependencies by that.

# kaa imports
From kaa.base.ioctl import ioctl, IOR, IOW, IOWR

# record imports
From v4l_tuner import V4L


Sure, no prob.

-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] kaa/record/src __init__.py,1.5,1.6 device.py,1.7,1.8

2005-09-12 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


+ class IVTVDevice(IVTV):
+ 
+ Class for IVTV devices.
+ I'm still contemplating weather to keep this object extending IVTV
+ or to use a _device line DvbDevice.
+ 
+ def __init__(self, device, norm, chanlist=None, card_input=4,
+  custom_frequencies=None, resolution=None, aspect=2,
+  audio_bitmask=None, bframes=None, bitrate_mode=1,
+  bitrate=450, bitrate_peak=450, dnr_mode=None,
+  dnr_spatial=None, dnr_temporal=None, dnr_type=None, 
framerate=None,
+  framespergop=None, gop_closure=1, pulldown=None, 
stream_type=14):
+ 
+ IVTV.__init__(self, device, norm, chanlist, card_input,

+   custom_frequencies, resolution, aspect,
+   audio_bitmask, bframes, bitrate_mode,
+   bitrate, bitrate_peak, dnr_mode, dnr_spatial, 
+   dnr_temporal, dnr_type, framerate, framespergop, 
+   gop_closure, pulldown, stream_type)
+ 



Wow, that's a lot of stuff you need in __init__. Most of it is
auto-detected? Maybe we should move the detection code to kaa.


Yeah, it's a lot of stuff but you only need device/norm/chanlist to 
work.  Freevo will only be passing the options that the users overrides 
anyhow.  This stuff isn't autodetected by our code but by the driver, so 
unless they specificly want to change something for their card they will 
likely not be overriding anything but bitrate.  Well, we can detect our 
current driver settings but this is here if we'd like to change 
something. :)


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Small bug in v4l2.py

2005-09-12 Thread Rob Shortt

Duncan Webb wrote:

Hi all


Hi,


Been trying to get freevo 1.5.3 working with a bttv card on /dev/video0 
and an ivtv card on /dev/video1


The record server kept on crashing when trying to record anything and 
discovered the problem is in src/tv/v42l.py. The same bug is in the 
current cvs version.


def getfmt(self):
   val = struct.pack( FMT_ST, 0,0,0,0,0,0,0,0)

This is trying go get the format of an incorrect v4l2_buf_type it should be

def getfmt(self):
   val = struct.pack( FMT_ST, 1L,0,0,0,0,0,0,0)

If the capabilities returned from VIDIOC_QUERYCAP say that it implements 
V4L2_CAP_VIDEO_CAPTURE then this call should never fail, so the try 
block in the cvs version could be removed.


Hope this helps


Thanks Duncan.  I was looking at a very similar problem last night, 
using the set format ioctl.  This was silently killing the driver, 
resulting in 0 byte captures on every attempt after the call until the 
driver was reloaded.  It drove me nuts tracking it down to the setfmt() 
call.  I'll fix getfmt() and see if the two problems are related.


-Rob


---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] freevo/src/record/plugins ivtv.py,1.9,1.10

2005-09-12 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


 def config(self):
! return [ ( 'IVTV_ENCODER', '/usr/local/bin/ivtv-encoder', 
'Location of the encoder utility.' ), ]



Didn't you wrote you only need some python code to tune?


In the CVS recordserver plugin implimenation of ivtv recording there's 
no python involved becasue the encoder utility (comes frmo ivtv project) 
 does it all as a seperate process.  This way is almost identical to 
using the generic / mencoder plugin but with ivtv options of course.


The ivtv stuff in kaa.record won't be using this utility at all.

-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: Small bug in v4l2.py

2005-09-12 Thread Rob Shortt

Dirk Meyer wrote:

Rob Shortt wrote:


Thanks Duncan.  I was looking at a very similar problem last night,
using the set format ioctl.  This was silently killing the driver,
resulting in 0 byte captures on every attempt after the call until the
driver was reloaded.  It drove me nuts tracking it down to the
setfmt() call.  I'll fix getfmt() and see if the two problems are
related.



Can you aslo try to fix the 1.5 branch in cvs? I hope to release 1.5.4
in September.


Done.


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Re: podcasting

2005-09-07 Thread Rob Shortt


Dirk Meyer wrote:

Jason Tackaberry wrote:

Now, I wouldn't advocate that you go code up bt support because your
time is better spent elsewhere.  But I definitely take exception with
the statement that supporting bt necessarily means Freevo supports
illegal downloads.



As long as I don't see many legal downloads, I won't put it into
Freevo cvs. I'm not paranoia, I know these people are sick and only
want to make money. When podcasting with video gets more and more
public, legal stuff would increase and I would include it. But even if
not, a plugin like this can be external.


Incidentally, to go along with the rss/podcasting/video/demotv stuff 
I've been working on, I have a bittorrent backend for Freevo.  I 
understand the complications that this could bring us (as maintainers of 
Freevo) and will be releasing it as a seperate plugin on my website. :)


-Rob


--
---
Rob Shortt| http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel


  1   2   3   4   5   >