Friday, June 1, 2012

Playing movies and music over SSH

If you want to remotely access your SSH account (e.g. NAS in home) and listen to the music or watch some movies without downloading them in the first place, you can use the following command:

ssh user@your.host.com cat mediaFile.avi | mplayer -

It will connect to your.host.com, log into the user account, invoke the cat command on the given mediaFile.avi and transfer the output (stream of bytes) to your local mplayer.

The mplayer - says that it should read the data from the standard input — which in this case is the result of the cat command.
When you finish watching or listening — just break the connection and no traces are left on your local device.

Alternatively, you can also mount your remote ssh location using the sshfs.

3 comments:

Biti said...
This comment has been removed by the author.
Biti said...

Good, i like playing movies and music online, but i play over SSH now.






________
d3 gold | diablo 3 items

April Sun said...

Why do many people like to play games to help them relax. I think that one of the most important reason is that it is full of challenges and fun. It is complicated to design I game. It should have story lines, and all kinds of rules, and all kinds of balance to keep. If you want the game to be attracting, it should have beautiful design of the pictures as well. You should not make it too hard, but not too easily as well to play. Diablo 3 is one of the best examples. It is easy to operate as you can lead your role in the game buy just clicking on the mouse but not using compliceted direction keys. You can have fun there by just taking down the foes or winning awesome diablo 3 arms and d3 gold. Now, the PVP is about to come, new challenges is around the corner. Are you ready to ehjoy the game?