Re: [Freevo-users] vlc and remote control

2009-07-11 Thread Mark Nyqvist Hjarding
Jonathan Isom jei...@gmail.com writes:

 2009/7/10 Bernard Mentink bment...@gmail.com:
snip
 Hi
   I have attached an attempt at using vlc's python bindings. The main
 problem is that the
 bindings are only in the repo.  They aren't distributed in the release.
 Also some files (applies to the others interfaces as well) don't seek.
 (mpeg-ts for instance)
 Also I had naming problems( the python binding was named vlc,as was
 plugins in freevo)
 so it wouldn't load load the binding without removing vlc.py plugin
 from the video player.
 I would suggest rc, though the mediacontrolapi is a better approach long term.


 Documented here:
 http://wiki.videolan.org/MediaControlAPI

 Repository here:
 https://trac.videolan.org/vlc/browser/bindings/python

 Later

 Jonathan

I made a fairly simple attempt at getting the remote to work with vlc
using a unix socket. I got some of the simple commands working but I
didn't have time to make it into a proper patch.

If you want to look at a simple way of doing it I think the --rc-unix
parameter is a good option. Then you can send simple commands like play
pause and others using that socket.

I will try over the weekend to see if I can find some of the code I made
back then.

/Mark

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


Re: [Freevo-users] vlc and remote control

2009-07-10 Thread Bernard Mentink
On Thu, Jul 9, 2009 at 8:09 PM, John Molohan john.molo...@gcd.ie wrote:

 Bernard Mentink wrote:
 
 
  On Thu, Jul 9, 2009 at 4:31 AM, John Percival john.perci...@mail.be
  mailto:john.perci...@mail.be wrote:
 
  Hello,
 
  I'm using Freevo 1.8.1, Ubuntu 9.04 and vlc  0.9.9a.
 
  I' ve set 'VIDEO_PREFERED_PLAYER = 'vlc', the video plays fine and
  I can control it via the keyboard.
 
  However, I cannot get the remote control to work (it works
  perfectly with mplayer and xine).
 
  If I press the OK button I get: no event mapping for key 'SELECT'
  in context 'video'. I cannot find a vlc equivalent for e.g.
  Event(VIDEO_SEND_XINE_CMD).
 
  Is there some other configuration file I should be aware of to get
  remote control commands through to vlc?
 
  Thanks.
 
 
  I get the same even on freevo 1.9.0
 
  Cheers,
  Bernie
 Does VLC have a 'slave' mode that supports being passed commands? If not
 then that's the problem, if it does a quick look at the plugin code
 comparing it to the xine plugin will show whether the remote events are
 configured at all or not.

 John


Hi John,

It doesn't look like the plugin supports sending many events at all, all I
see in the code is support for the PAUSE/STOP key, and that is all that
works, there is nothing else supported.
It's a shame really, as of all the players, vlc gives me the nicest looking
TV picture.

I woudn't mind having a go at coding it up if someone can give me pointers
to where to look for help on the plugin format for TV. It looks like VLC
supports various input event methods, I need someone to help me with which
one to target ..

Thanks,
Bernie
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] vlc and remote control

2009-07-10 Thread Jonathan Isom
2009/7/10 Bernard Mentink bment...@gmail.com:


 On Thu, Jul 9, 2009 at 8:09 PM, John Molohan john.molo...@gcd.ie wrote:

 Bernard Mentink wrote:
 
 
  On Thu, Jul 9, 2009 at 4:31 AM, John Percival john.perci...@mail.be
  mailto:john.perci...@mail.be wrote:
 
      Hello,
 
      I'm using Freevo 1.8.1, Ubuntu 9.04 and vlc  0.9.9a.
 
      I' ve set 'VIDEO_PREFERED_PLAYER = 'vlc', the video plays fine and
      I can control it via the keyboard.
 
      However, I cannot get the remote control to work (it works
      perfectly with mplayer and xine).
 
      If I press the OK button I get: no event mapping for key 'SELECT'
      in context 'video'. I cannot find a vlc equivalent for e.g.
      Event(VIDEO_SEND_XINE_CMD).
 
      Is there some other configuration file I should be aware of to get
      remote control commands through to vlc?
 
      Thanks.
 
 
  I get the same even on freevo 1.9.0
 
  Cheers,
  Bernie
 Does VLC have a 'slave' mode that supports being passed commands? If not
 then that's the problem, if it does a quick look at the plugin code
 comparing it to the xine plugin will show whether the remote events are
 configured at all or not.

 John

 Hi John,

 It doesn't look like the plugin supports sending many events at all, all I
 see in the code is support for the PAUSE/STOP key, and that is all that
 works, there is nothing else supported.
 It's a shame really, as of all the players, vlc gives me the nicest looking
 TV picture.

 I woudn't mind having a go at coding it up if someone can give me pointers
 to where to look for help on the plugin format for TV. It looks like VLC
 supports various input event methods, I need someone to help me with which
 one to target ..
Hi
  I have attached an attempt at using vlc's python bindings. The main
problem is that the
bindings are only in the repo.  They aren't distributed in the release.
Also some files (applies to the others interfaces as well) don't seek.
(mpeg-ts for instance)
Also I had naming problems( the python binding was named vlc,as was
plugins in freevo)
so it wouldn't load load the binding without removing vlc.py plugin
from the video player.
I would suggest rc, though the mediacontrolapi is a better approach long term.


Documented here:
http://wiki.videolan.org/MediaControlAPI

Repository here:
https://trac.videolan.org/vlc/browser/bindings/python

Later

Jonathan
 Thanks,
 Bernie



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





-- 

ASUS m3a78 mothorboard
AMD Athlon64 X2 Dual Core Processor 6000+ 3.1Ghz
4 Gigabytes of memory
Gigabyte NVidia 9400gt  Graphics adapter
Kworld ATSC 110 TV Capture Card
Kworld ATSC 115 TV Capture Card
# -*- coding: iso-8859-1 -*-
# ---
# vlc.py - the Freevo VLC module for video
# ---
# $Id: vlc.py 10258 2008-01-03 21:27:20Z duncan $
#
# Notes:
#
# Activate this plugin by putting plugin.activate('video.vlc') in your
# local_conf.py. Than vlc will be used for DVDs when you SELECT the item.
# When you select a title directly in the menu, this plugin won't be used
# and the default player (mplayer) will be used. You need vlc-ui = 0.9.22
# to use this.
#
# Todo:
#
#
# ---
# Freevo - A Home Theater PC framework
# Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ---


import time, os, re
import subprocess
import copy
import vlc

import config # Configuration handler. reads config file.
import childapp   # Handle child applications
import rc # The 

Re: [Freevo-users] vlc and remote control

2009-07-09 Thread John Molohan
Bernard Mentink wrote:


 On Thu, Jul 9, 2009 at 4:31 AM, John Percival john.perci...@mail.be 
 mailto:john.perci...@mail.be wrote:

 Hello,

 I'm using Freevo 1.8.1, Ubuntu 9.04 and vlc  0.9.9a.

 I' ve set 'VIDEO_PREFERED_PLAYER = 'vlc', the video plays fine and
 I can control it via the keyboard.

 However, I cannot get the remote control to work (it works
 perfectly with mplayer and xine).

 If I press the OK button I get: no event mapping for key 'SELECT'
 in context 'video'. I cannot find a vlc equivalent for e.g.
 Event(VIDEO_SEND_XINE_CMD).

 Is there some other configuration file I should be aware of to get
 remote control commands through to vlc?

 Thanks.


 I get the same even on freevo 1.9.0

 Cheers,
 Bernie
Does VLC have a 'slave' mode that supports being passed commands? If not 
then that's the problem, if it does a quick look at the plugin code 
comparing it to the xine plugin will show whether the remote events are 
configured at all or not.

John

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


[Freevo-users] vlc and remote control

2009-07-08 Thread John Percival
Hello,

I'm using Freevo 1.8.1, Ubuntu 9.04 and vlc  0.9.9a.

I' ve set 'VIDEO_PREFERED_PLAYER = 'vlc', the video plays fine and I can 
control it via the keyboard.

However, I cannot get the remote control to work (it works perfectly with 
mplayer and xine).

If I press the OK button I get: no event mapping for key 'SELECT' in context 
'video'. I cannot find a vlc equivalent for e.g. Event(VIDEO_SEND_XINE_CMD).

Is there some other configuration file I should be aware of to get remote 
control commands through to vlc?

Thanks.


John.
-
Mail.be, WebMail and Virtual Office
http://www.mail.be

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


Re: [Freevo-users] vlc and remote control

2009-07-08 Thread Bernard Mentink
On Thu, Jul 9, 2009 at 4:31 AM, John Percival john.perci...@mail.be wrote:

 Hello,

 I'm using Freevo 1.8.1, Ubuntu 9.04 and vlc  0.9.9a.

 I' ve set 'VIDEO_PREFERED_PLAYER = 'vlc', the video plays fine and I can
 control it via the keyboard.

 However, I cannot get the remote control to work (it works perfectly with
 mplayer and xine).

 If I press the OK button I get: no event mapping for key 'SELECT' in
 context 'video'. I cannot find a vlc equivalent for e.g.
 Event(VIDEO_SEND_XINE_CMD).

 Is there some other configuration file I should be aware of to get remote
 control commands through to vlc?

 Thanks.


I get the same even on freevo 1.9.0

Cheers,
Bernie
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users