LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2006, 07:27 AM   #1
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Rep: Reputation: 16
audio over ssh?


Hello

I am trying to play music on remote computer and use ssh to foward audio to my laptop. I know there are much easier ways to do it like using other softwares, of just download the file using sftp. But due to some restriction(I do not have root on remote box), I only want to use ssh. So far this is the idea I have:

me@laptop#ssh user@remote_pc
user@remote_pc$cat musica.mp3 | ssh me@laptop mplayer -

cat throw the file to stdout, which is piped to mplayer, reading from stdin, on me@laptop.

However I get this message:
Code:
Playing -.
Reading from stdin...
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Seek failed
Found plugin: librh_mp3.so (MPEG Layer 1/2/3 Placeholder Plugin).
Found plugin: libadplugxmms.so (AdPlug/XMMS 1.2).
Found plugin: libmodplugxmms.so (ModPlug Player).
Found plugin: libmpc.so (Musepack Audio Plugin 1.2).
Found plugin: libcdaudio.so (CD Audio Player 1.2.10).
Found plugin: libshn.so (SHN Player 2.4.0).
Found plugin: libxmms-flac.so (Reference FLAC Player v1.1.2).
Found plugin: libspeex.so ( Speex plugin 0.9.1).
Found plugin: libmikmod.so (MikMod Player 1.2.10).
Found plugin: libvorbis.so (Ogg Vorbis Player 1.2.10).
Found plugin: libxmmssid.so (XMMS-SID 0.8.0beta15).
XS[src/xmms-sid.c:xs_init:216]: xs_init()
XS[src/xs_config.c:xs_init_configuration:164]: initializing configuration ...
XS[src/xs_config.c:xs_read_configuration:265]: loading from config-file ...
XS[src/xs_config.c:xs_read_configuration:320]: OK
XS[src/xmms-sid.c:xs_reinit:163]: initializing emulator engine #1...
XS[src/xmms-sid.c:xs_reinit:177]: init#1: OK, 1
XS[src/xmms-sid.c:xs_reinit:189]: init#2: OK, 0
XS[src/xmms-sid.c:xs_init:226]: OK
Found plugin: libmpg123.so (MPEG Layer 1/2/3 Player 1.2.10).
Found plugin: libmp4.so (MP4 & MPEG2/4-AAC audio player - 1.2.x).
Found plugin: libwav.so (Wave Player 1.2.10).
Found plugin: libtonegen.so (Tone Generator 1.2.10).
Closing plugin: /usr/lib/xmms/Input/libtonegen.so.
Closing plugin: /usr/lib/xmms/Input/libwav.so.
Closing plugin: /usr/lib/xmms/Input/libmp4.so.
Closing plugin: /usr/lib/xmms/Input/libmpg123.so.
Closing plugin: /usr/lib/xmms/Input/libxmmssid.so.
XS[src/xmms-sid.c:xs_close:235]: xs_close(): shutting down...
XS[src/xmms-sid.c:xs_stop:584]: STOP_REQ
XS[src/xmms-sid.c:xs_close:248]: shutdown finished.
Closing plugin: /usr/lib/xmms/Input/libvorbis.so.
Closing plugin: /usr/lib/xmms/Input/libmikmod.so.
Closing plugin: /usr/lib/xmms/Input/libspeex.so.
Closing plugin: /usr/lib/xmms/Input/libxmms-flac.so.
Closing plugin: /usr/lib/xmms/Input/libshn.so.
Closing plugin: /usr/lib/xmms/Input/libcdaudio.so.
Closing plugin: /usr/lib/xmms/Input/libmpc.so.
Closing plugin: /usr/lib/xmms/Input/libmodplugxmms.so.
Closing plugin: /usr/lib/xmms/Input/libadplugxmms.so.
Closing plugin: /usr/lib/xmms/Input/librh_mp3.so.


Exiting... (End of file)
Any one have idea why this failed? Or maybe you have better idea of doing the job? I appriciate you help in advance!

D
 
Old 10-08-2006, 08:08 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hmm.

I do this sort of thing between my home and work machines:
Code:
ssh user@remotehost "cat music.mp3" | mplayer -
works for me.

Dave
 
  


Reply

Tags
audio, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
playing audio files over ssh connection (linux-linux) martinr Linux - Networking 9 05-18-2014 09:12 PM
AC'97 Conexant audio (aka, AC-Link Audio) (Gateway 7510GX) Vexamus Linux - Hardware 25 10-07-2009 09:15 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
How do I get AmaroK to stream audio over an ssh connection? martinr Linux - Software 2 04-18-2006 10:11 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration