LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   audio over ssh? (http://www.linuxquestions.org/questions/linux-software-2/audio-over-ssh-490551/)

diego_cn 10-08-2006 07:27 AM

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

ilikejam 10-08-2006 08:08 AM

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


All times are GMT -5. The time now is 02:06 PM.