Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I played a video over ssh but could not get the audio to stream over the same.
To experiment I connected to a pc (local lan) running openssh server, when I tried to play a video in the client, the audio was played in the server though i could see the video in the client side.
Hm, apparently this is pretty standard, I guess I've just never tried. Apparently all of the times I've run mplayer on a remote system through ssh the file hasn't had any sound anyway, and all of the times I've played a remote file with sound I've used mplayer locally and opened the file through NFS or similar.
I played a video over ssh but could not get the audio to stream over the same.
To experiment I connected to a pc (local lan) running openssh server, when I tried to play a video in the client, the audio was played in the server though i could see the video in the client side.
Your best bet is to setup a DLNA server and a DLNA client. Plex, Kodi (formerly known as XBMC) and VLC are a few examples for streaming media.
I installed MPlayer 1.1-4.8 on ubuntu 14.04 server and ssh'ed (openssh) to the server.
Issued the following command on the client,
$ mplayer <video_name>
and couldn't stream audio in the client.
mplayer controls the audio interface on the computer where it runs. Audio has nothing to do with the shell, thus it's not transferred to the ssh client.
On the other hand there must be ways to do that, using an audio server like Jack perhaps. Also, maybe X can be made to control audio, thus permitting to transfer it via X forwarding.
suicidaleggroll, that worked like a charm. I mounted the remote directory over ssh
and was able to play video (along with audio). Though I would try to set up a DLNA server
as pointed out by MEINKS and see if that works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.