Page 1 of 1

let rc send status codes to processing

Posted: 23 Jun 2009 12:00
by valquire
hi there,

I'm controlling vlc with processing (processing.org) via RC interface and it works pretty flawlessly (with release candidate 1.0, for many reasons I have to use that one). however I need to get the status of the videos being played as I want to stop the program in processing after the playlist has been played.

Is the RC capable of sending status messages over telnet? Timestamps etc would be nice too..

Thanks in advance for your help.
Best,
Chris

Re: let rc send status codes to processing

Posted: 23 Jun 2009 12:46
by valquire
ok, got a stepping stone by myself:

you can read the console output easily with processing via client.readString or something. the thing is to find something interesting in the console. i didn't find a solution to display video stats in realtime in the console or at least a "movie stops now" message..

:roll:

Re: let rc send status codes to processing

Posted: 12 Jul 2009 23:18
by tamiro44
You can ask every X seconds "is_playing"

Re: let rc send status codes to processing

Posted: 13 Jul 2009 15:13
by valquire
thanks for the idea. the problem is that i need a really acurate "timecode". best would be a millisecond accurate output. it's really hard doing video stuff with processing with good performance but with vlc it was quite ok.

cheers,
chris

Re: let rc send status codes to processing

Posted: 13 Jul 2009 19:11
by Rémi Denis-Courmont
I think you're trying to stretch RC a bit too far. For precise control, you really need to use the native C APIs.

Re: let rc send status codes to processing

Posted: 14 Jul 2009 08:20
by tamiro44
Remi hi,
Do you think i can get from RC the video resolution?
I must find a way to adjust my form to video resolution.
Thanks,
Tamir.

Re: let rc send status codes to processing

Posted: 15 Jul 2009 17:09
by Rémi Denis-Courmont
No ideas.