Re: [PD] Pure data controling Videolan

2009-01-14 Thread Max

hi list,

it is possible to control vlc from pd using the py external with the  
rc interface of vlc.

thomas grill made an example in two minutes which i am happy to share.

due to limitations of vlc it seems to be impossible to display video  
under os x because vlc can't open a window if it's in rc mode, but it  
works with linux.



import pyext
import sys
from socket import *

class vlc(pyext._class):
	def __init__(self,host,port):
		self.s = socket(AF_INET, SOCK_STREAM)# create a TCP socket
		self.s.connect((str(host), port)) # connect to server on the port
		
	def list_1(self,*atoms):
		self.s.send(' '.join(map(str,atoms))+\r)
		d = self.s.recv(1024)
		self._outlet(1,d.split())


vlc.pd
Description: Binary data




Am 13.01.2009 um 22:03 schrieb Hans-Christoph Steiner:



People have talked about it in the past, but I haven't seen it
working.  It should be possible using the RC (aka Remote Control)
interface in VLC.  It would be awesome to have a working example of
that.

Or you could do it in Gem or PDP...

.hc

On Jan 13, 2009, at 2:39 PM, Arnaud Tanguy wrote:


Hello,

Do you know a way to control VLC with Pure data?

It seem to work by telnet but I'm a complete newbie for that.
Somebody can help me?

Best regards.


PGP.sig
Description: Signierter Teil der Nachricht
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pure data controling Videolan

2009-01-14 Thread Max

forgot to say that you have to start vlc like this:
vlc -I rc --rc-host=localhost:1234

here is a thread on the videolan forum regarding the video issue under  
os x

http://forum.videolan.org/viewtopic.php?f=2t=53876sid=f353cbd298aad77fd4a1b3407586e0f1

if anyone finds a fix post here please.

also the python code is just a working proof-of-concept and proper  
error handling should be added (if the connection drops for example).


Am 14.01.2009 um 14:49 schrieb Max:


hi list,

it is possible to control vlc from pd using the py external with the  
rc interface of vlc.

thomas grill made an example in two minutes which i am happy to share.

due to limitations of vlc it seems to be impossible to display video  
under os x because vlc can't open a window if it's in rc mode, but  
it works with linux.



vlc.pyvlc.pd


Am 13.01.2009 um 22:03 schrieb Hans-Christoph Steiner:



People have talked about it in the past, but I haven't seen it
working.  It should be possible using the RC (aka Remote Control)
interface in VLC.  It would be awesome to have a working example of
that.

Or you could do it in Gem or PDP...

.hc

On Jan 13, 2009, at 2:39 PM, Arnaud Tanguy wrote:


Hello,

Do you know a way to control VLC with Pure data?

It seem to work by telnet but I'm a complete newbie for that.
Somebody can help me?

Best regards.

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




PGP.sig
Description: Signierter Teil der Nachricht
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Pure data controling Videolan

2009-01-13 Thread Arnaud Tanguy
Hello,

Do you know a way to control VLC with Pure data?

It seem to work by telnet but I'm a complete newbie for that.
Somebody can help me?

Best regards.

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pure data controling Videolan

2009-01-13 Thread Hans-Christoph Steiner

People have talked about it in the past, but I haven't seen it  
working.  It should be possible using the RC (aka Remote Control)  
interface in VLC.  It would be awesome to have a working example of  
that.

Or you could do it in Gem or PDP...

.hc

On Jan 13, 2009, at 2:39 PM, Arnaud Tanguy wrote:

 Hello,

 Do you know a way to control VLC with Pure data?

 It seem to work by telnet but I'm a complete newbie for that.
 Somebody can help me?

 Best regards.

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list




Access to computers should be unlimited and total.  - the hacker ethic



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list