[Freevo-users] External Tuner Plugin for Motorola DCT6400 Set Top Boxes

2008-03-02 Thread Douglas A. Seifert
Probably I am the only person who needs such a thing, but I uploaded a 
new external tuner plugin for Motorola DCT6400 set top boxes on the 
addons section:

http://freevo.sourceforge.net/addons/index.php?action=downloadfile&filename=dct6400.tgz&directory=Plugins

There is a write up here for it:

http://doc.freevo.org/ExternalTunerConfig

and here:

http://www.dseifert.net/code/dct6400/

-Doug Seifert

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Help with Remote

2007-11-27 Thread Douglas A. Seifert


Redzinalds Knipsis wrote:

Hello Doug,

I do not have this remote, but just an idea. After applying your patch
to kaa (see Recordserver crash on rel-1 SVN) my remote stopped working
as well. I had to remove patch to get it back.
Actually Freevo did not respond to keyboard as well while with patch,
so may be it is not the case.

  

Reggie,

No, you were right, the patch was garbage.  Chalk it up to my lack of 
experience in python.  If you need it, attached is a patch that should 
work correctly.


Thanks for the help, my patch was the problem, creating an infinite loop 
that caused the GUI to stop responding to any events at all.


-Doug
Index: base/src/notifier/pynotifier/nf_generic.py
===
--- base/src/notifier/pynotifier/nf_generic.py	(revision 2907)
+++ base/src/notifier/pynotifier/nf_generic.py	(working copy)
@@ -204,9 +204,22 @@
 
 		r = w = e = ()
 		try:
-			r, w, e = select( __sockets[ IO_READ ].keys(),
+			# According to this thread: http://mail.python.org/pipermail/medusa-dev/2000/000586.html
+			# the select call can raise EINTR which is safe to ignore and retry.  Should really
+			# shore this up with a retry counter that raises the EINTR after some number of loops
+			# so we can avoid an infinite loop
+			while 1:
+try:
+	r, w, e = select( __sockets[ IO_READ ].keys(),
 			  __sockets[ IO_WRITE ].keys(),
 			  __sockets[ IO_EXCEPT ].keys(), timeout / 1000.0 )
+	break
+except select_error, v:
+	if v[0] != EINTR:
+		raise
+	else:
+		log.exception("got EINTR exception in select, will RETRY, code: %d" % v[0])
+log.exception("Left select")
 		except ( ValueError, select_error ):
 			log.exception( 'error in select' )
 			sys.exit( 1 )
-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Help with Remote

2007-11-26 Thread Douglas A. Seifert

All,

My Hauppauge WinPVR-250 remote stopped working with my freevo install.  
I am at a loss figuring out what is broken about my config or setup.


Freevo version: rel-1, revision 10157 (head of trunk)

irw session shows this when I press a bunch of buttons:
$ irw
17e1 00 Ch- hauppauge_pvr
17e1 01 Ch- hauppauge_pvr
17e1 00 Ch- hauppauge_pvr
17e1 00 Ch- hauppauge_pvr
17e0 00 Ch+ hauppauge_pvr
17e5 00 Ok hauppauge_pvr
17e5 01 Ok hauppauge_pvr
17e5 00 Ok hauppauge_pvr
17e5 00 Ok hauppauge_pvr
17d1 00 Vol- hauppauge_pvr
17e1 00 Ch- hauppauge_pvr
17e1 01 Ch- hauppauge_pvr
17e1 00 Ch- hauppauge_pvr
17e1 00 Ch- hauppauge_pvr

the freevo daemon.py responds to Back/Exit and starts up the main freevo 
GUI.  When I get into the GUI, however, it does not respond to the 
remote.  Haven't tried the keyboard yet.


local_conf.py and lircrc attached.

Thanks for any ideas, especially how I might debug my pylirc install 
using python in interactive mode ...


-Doug Seifert
begin
prog   = freevo
remote = hauppauge_pvr
button = Power
config = EJECT
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Go
config = GUIDE
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 1
config = 1
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 2
config = 2
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 3
config = 3
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 4
config = 4
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 5
config = 5
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 6
config = 6
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 7
config = 7
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 8
config = 8
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 9
config = 9
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Back/Exit
config = EXIT
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = 0
config = 0
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Menu
config = MENU
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Red
config = ENTER
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Green
config = DISPLAY
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Yellow
config = SUBTITLE
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Blue
config = LANG
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Ch+
config = UP
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Ch-
config = DOWN
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Vol-
config = LEFT
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Vol+
config = RIGHT
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Ok
config = SELECT
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Mute
config = MUTE
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Blank
config = VOL-
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Full
config = VOL+
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Rewind
config = REW
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Play
config = PLAY
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Forward
config = FFWD
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Record
config = REC
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Stop
config = STOP
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Pause
config = PAUSE
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Replay
config = CH-
repeat = 2
end
begin
prog   = freevo
remote = hauppauge_pvr
button = Skip
config = CH+
repeat = 2
end
##
# xine key bindings.
# Automatically generated by xine-ui version 0.99.3.
##

# start playback
begin
button = Play
prog   = xine
remote = hauppauge_pvr
repeat = 2
config = Play
end

Re: [Freevo-users] [PATCH] Recordserver Crash in rel-1 SVN Trunk

2007-11-25 Thread Douglas A. Seifert



There is no rel-1 branch of kaa as it's new and you need the latest svn
of kaa.

The rel-1 branch is using kaa notifier as the event, timer, etc. We use
kaa.rpc along with Twisted for some of the record server calls.

The rel-1-7 branch uses the old stuff and Twisted

It looks like a bug in the kaa.notifier.

Duncan

  
According to this thread: 
http://mail.python.org/pipermail/medusa-dev/2000/000586.html, the select 
call can raise interrupted system call exceptions sporadically in the 
select call.  This must have been what was happening to me because if I 
wrap the select call in a loop that catches and ignores the EINTR 
errors, recordserver stops crashing.


Tried to update the tracker item with the attached patch, but SF seems 
to be having problems today.  Also submitted the attached patch to the 
freevo-devel list.


-Doug Seifert
Index: kaa/base/src/notifier/pynotifier/nf_generic.py
===
--- kaa/base/src/notifier/pynotifier/nf_generic.py	(revision 2907)
+++ kaa/base/src/notifier/pynotifier/nf_generic.py	(working copy)
@@ -204,9 +204,18 @@
 
 		r = w = e = ()
 		try:
-			r, w, e = select( __sockets[ IO_READ ].keys(),
+			# According to this thread: http://mail.python.org/pipermail/medusa-dev/2000/000586.html
+			# the select call can raise EINTR which is safe to ignore and retry.  Should really
+			# shore this up with a retry counter that raises the EINTR after some number of loops
+			# so we can avoid an infinite loop
+			while 1:
+try:
+	r, w, e = select( __sockets[ IO_READ ].keys(),
 			  __sockets[ IO_WRITE ].keys(),
 			  __sockets[ IO_EXCEPT ].keys(), timeout / 1000.0 )
+except select.error, v:
+	if v[0] != EINTR: raise
+	else: break
 		except ( ValueError, select_error ):
 			log.exception( 'error in select' )
 			sys.exit( 1 )
-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Recordserver Crash in rel-1 SVN Trunk

2007-11-23 Thread Douglas A. Seifert
Some more info:

After a fresh start of recordingserver, looks like the first recording 
works, but the second fails.  If anybody wants logs or anything, let me 
know ...

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Recordserver Crash in rel-1 SVN Trunk

2007-11-23 Thread Douglas A. Seifert

Evan Hisey wrote:

Douglas-
  

I am running freevo rel-1 trunk, revision 10153, from svn and I am
getting a crash in the recordserver whenever it starts making a
scheduled recording.  The show is not recorded and the recordserver is
down until I restart it.


Considering that you are running a total bleeder install I would be
asking this one on the developers list. If you know how to handle SVN
I would try regressing a few  versions till you find on that works.
What version of kaa are you running? The bug looks like it is in the
kaa module.

2007-11-22 23:34:03,007 ERRORerror in select
Traceback (most recent call last):
 File
"/home/doug/freevo/dist/lib/python2.5/site-packages/kaa/notifier/pynotifier/nf_generic.py",
line 209, in step
   __sockets[ IO_EXCEPT ].keys(), timeout / 1000.0 )
error: (4, 'Interrupted system call')

Evan

  
At the same time I upgraded rel-1 to trunk, I did the same with kaa, so 
therein lies the problem I guess.  I am on trunk of kaa and that is 
possibly not compatible with freevo rel-1.  I will explore around the 
svn repository and see if there is a rel-1 branch of kaa I should rather 
use or roll back kaa until it works again ...


Thanks,
Doug Seifert

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Recordserver Crash in rel-1 SVN Trunk

2007-11-23 Thread Douglas A. Seifert
All,

I am running freevo rel-1 trunk, revision 10153, from svn and I am 
getting a crash in the recordserver whenever it starts making a 
scheduled recording.  The show is not recorded and the recordserver is 
down until I restart it.

Here is what I see in the recordserver log:

Thanks for any help...

2007-11-22 23:34:00,803 INFO recordserver.py (922): going to record: 
Thu 2007-11-22 23:35->00:37 (23:35)  I10600.labs.zap2it.com The Tonight 
Show With Jay Leno
2007-11-22 23:34:00,886 INFO recordserver.py (940): start recording: 
Thu 2007-11-22 23:35->00:37 (23:35)  I10600.labs.zap2it.com The Tonight 
Show With Jay Leno
2007-11-22 23:34:00,887 INFO ivtv_record.py (86): Recorder::Record: 
Thu 2007-11-22 23:35->00:37 (23:35)  I10600.labs.zap2it.com The Tonight 
Show With Jay Leno
2007-11-22 23:34:01,388 INFO ivtv_record.py (115): 
Record_Thread::run: started recording
2007-11-22 23:34:01,404 INFO recordserver.py (1649): RECORD_START 
Thu 2007-11-22 23:35->00:37 (23:35)  I10600.labs.zap2it.com The Tonight 
Show With Jay Leno
2007-11-22 23:34:03,007 ERRORerror in select
Traceback (most recent call last):
  File 
"/home/doug/freevo/dist/lib/python2.5/site-packages/kaa/notifier/pynotifier/nf_generic.py",
 
line 209, in step
__sockets[ IO_EXCEPT ].keys(), timeout / 1000.0 )
error: (4, 'Interrupted system call')
2007-11-22 23:34:03,010 WARNING  thread loop stopped
2007-11-22 23:34:03,012 INFO stop mainloop
changing channel to [ 3 ] using command [ 
/home/doug/freevo/dist/bin/6200ch -p 0 -n 0 3 ]
Driver: ivtv
Card: Hauppauge WinTV PVR-250
Version: 10.01
Capabilities: 0x01030051
Enumerating supported Standards.
  0: 0xf PAL-BGH
  1: 0xe0 PAL-DK
  2: 0x10 PAL-I
  3: 0x100 PAL-M
  4: 0x200 PAL-N
  5: 0x400 PAL-Nc
  6: 0xd SECAM-BGH
  7: 0x32 SECAM-DK
  8: 0x40 SECAM-L
  9: 0x80 SECAM-L'
  10: 0x1000 NTSC-M
  11: 0x2000 NTSC-J
  12: 0x8000 NTSC-K
Current Standard is: 0xb000
Enumerating supported Inputs.
  0: Tuner 1
  1: S-Video 1
  2: Composite 1
  3: S-Video 2
  4: Composite 2
  5: Composite 3
Input: 1
Width: 720, Height: 480
Read Frequency: 980
CODEC::aspect: 2
CODEC::audio_bitmask: 0x69
CODEC::bframes: 3
CODEC::bitrate_mode: 1
CODEC::bitrate: 400
CODEC::bitrate_peak: 480
CODEC::dnr_mode: 0
CODEC::dnr_spatial: 0
CODEC::dnr_temporal: 0
CODEC::dnr_type: 0
CODEC::framerate: 0
CODEC::framespergop: 15
CODEC::gop_closure: 1
CODEC::pulldown: 0
CODEC::stream_type: 10

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Can't play DVD's with video_ts instead of VIDEO_TS

2007-09-17 Thread Douglas A. Seifert
Duncan Webb wrote:
>
> With the svn version you will need to add:
> LOGGING = logging.DEBUG
> Using CHILDAPP_DEBUG = 9 does no more that CHILDAPP_DEBUG=1
> Generally logging levels > 1 provide too much information that you will
> not be able to see the wood for the trees :)
>   
Well, as I suspected, it was user error.  I must not have had libdvdread 
installed when I build kaa from source.  I was able to determine that 
kaa didn't have DVD support build in by running

$ mminfo -d 2 /dev/hdc
kaa media metadata info
setting to log level 2
DEBUG factory(267): Trying audio/cd
DEBUG factory(267): Trying video/dvd
DEBUG dvd(146): kaa.metadata not compiled with DVD support
DEBUG factory(267): Trying video/vcd
DEBUG factory(267): Trying cd/unknown

/dev/hdc
|   type: CD
|subtype: data
|  media: MEDIA_DISC
|   mime: unknown/unknown
| id: 2006030817250800MY_LITTLE_PONY_DISC_1
|  label: MY_LITTLE_PONY_DISC_1

(No My Little Pony jokes, please, I do all of this for my daughters :)

So, after ensuring I had libdvdread installed, I ire-installed kaa and 
now I can play DVD's.

But I think I know what the OP's problem is: from the Watch a Movie 
menu, you have to use the PLAY function (I press the play button on my 
remote, not sure what the equivalent keyboard key is) on the DVD item, 
not ENTER as before.  If you press ENTER, you get a listing of files on 
the DVD.  I think I remember a thread somewhere mentioning that this 
would be new behavior ...

-Doug Seifert

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Can't play DVD's with video_ts instead of VIDEO_TS

2007-09-17 Thread Douglas A. Seifert
Frank [Antispam account] wrote:
> Hello,
>  
> Just upgraded to the latest svn-version of Freevo. Works 
> great but I thing 'bugged'.
> When I enter a DVD with a video_ts directory, I can play the 
> DVD anymore.
> >From Watch-Movies, I see a entry "MOVIE TITLE HERE". Normally 
> when I press enter, The DVD would play with Xine, but now it 
> goes a level deeper and gives me the Separate files on that 
> DVD. Even pressing enter there doesn't work, because it Gives 
> me a "No action defined".
>
>   

I can confirm this behavior on a fresh install of freevo from svn, 
revision 9881 on an Ubuntu Feisty OS. There is no indication in the log 
that xine is even getting started when using the remote ENTER button on 
the dvd item in the Movie menu, so I'm sure it is some configuration 
item missing, or I am missing a library.  I have CHILDAPP_DEBUG = 9 and 
DEBUG = 9.  no xine logs get created in /var/log/freevo.  xine works 
from the command line if I do 'xine dvd://'.  Poking around now in the 
source to see if I can add some debug, but pointers on where to look 
would be nice.

-Doug Seifert

-
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-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users