Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am interested in using a UNIX-Domain Socket to control VLC playback. This functionality is outlined in the VideoLan documentation for using oldrc.

So what I need to is startup vlc with a command such as:

cvlc <path to media> -I oldrc --rc-unix /some/socket

And then I should be able to send vlc commands to /some/socket to control the playback.

Are there any general-purpose sockets floating around somewhere on my Kubuntu 12.10 system that I could use for this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

No, there are no spare sockets just floating around, But they are easy to make, so easy that you may have done so if the directory you were creating them in existed and you had write permission. To make your example work you probably need mkdir /some; chown vlc_user.rmt_grp /some; chmod 0775 /some. and it is easier if the remote control and the player run as the same user.

share|improve this answer
    
Yes! You are right, vlc creates a socket if it doesn't exist. The trouble was that the module rc has been renamed to oldrc! That help page is out of date. Also, is it appropriate to use netcat to send messages to the socket after it's opened by vlc? –  Lombard Jan 19 '14 at 13:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.