You are not logged in.

#1 2010-04-06 01:56:16

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

[SOLVED] possible to control a movie over ssh?

I would like to play a movie on my desktop and control it from my laptop since my bed is far from my bed/speakers/hard drive. 

I use ncmpcpp via "ssh -X" to control mpd (I like watching ncmpcpp and alsamixer react almost instantly on my desktop)...so I would believe it if someone told me it's possible.  However, mpd is hardly similar to mplayer, so I'm not optimistic. 

Possible w/o buying a remote?

Last edited by pw_f100_220 (2010-04-08 04:35:21)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#2 2010-04-06 01:59:49

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] possible to control a movie over ssh?

mkfifo and rejoice.

//blue/0/~/ grep fifo .mplayer/config 
# input fifo: mplayer will accept commands
# echo'd into a fifo
input = file=/home/patrick/.mplayer_fifo
//blue/0/~/ echo pause > .mplayer_fifo

smile.

Offline

#3 2010-04-06 01:59:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] possible to control a movie over ssh?

A remote / cordless mouse / kbd would be easier ;P

Edit: Back in the day we didn't even have remotes for an ordinary TV and just 20 years later - look ...

Last edited by karol (2010-04-06 02:01:42)

Offline

#4 2010-04-06 02:04:57

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [SOLVED] possible to control a movie over ssh?

You only cite mplayer but dont say what player you use, I'm gonna assume that you use mplayer

Yes it is possible to control mplayer via ssh, read the mplayer man, look for the input option, using the file= you can use a fifo to pass mplayer commands

Read the documentation for more info

EDIT: brisbin33 beat me

Last edited by kazuo (2010-04-06 02:06:20)

Offline

#5 2010-04-06 03:12:28

1LordAnubis
Member
Registered: 2008-10-10
Posts: 253
Website

Re: [SOLVED] possible to control a movie over ssh?

A bit offtopic... but with vlc you can set up a web interface, and granted you have the same file on two computers located anywhere, you can watch the same movie at the same time.


Any society that would give up a little liberty to gain a little security will deserve neither and lose both.
-Benjamin Franklin
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
-George Bernard Shaw

Offline

#6 2010-04-07 18:10:00

codl
Member
From: France
Registered: 2009-09-19
Posts: 18

Re: [SOLVED] possible to control a movie over ssh?

Easy.
Through SSH:

export DISPLAY=":0"
mplayer ---

Offline

#7 2010-04-08 04:34:35

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [SOLVED] possible to control a movie over ssh?

haven't gotten around to trying mkfifo, but codl's solution works exactly as I want!  Quick and clean! 

(Mplayer is what I use, typically from terminal)

Thanks everyone!


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#8 2011-01-13 23:23:52

ifyhoco
Member
Registered: 2011-01-13
Posts: 1

Re: [SOLVED] possible to control a movie over ssh?

For those that end up here, there is a new Android project that uses an SSH connection to control MPlayer. The " export DISPLAY=":0" " is handled directly by the app. If anyone is interested it can be downloaded here:

http://www.zokama.com/sshmote_-_the_ssh … te_control

Offline

#9 2011-01-15 02:38:09

corstar
Member
From: Perth, Western Australia
Registered: 2008-05-05
Posts: 27
Website

Re: [SOLVED] possible to control a movie over ssh?

codl wrote:

Easy.
Through SSH:

export DISPLAY=":0"
mplayer ---

This suits my needs too. Simple and to the point, thanks.
(sorry for bumping an old thread)

Last edited by corstar (2011-01-15 02:42:07)

Offline

Board footer

Powered by FluxBB