How to start mplayer with radio (.pls) url over ssh and have it play?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



All,

I know little about audio, but I'm trying to help my kids configure a radio stream. I normally use this media box via X desktop, but wanted to just play the stream via mplayer starting it over ssh -- that didn't work no matter what -ao I specify.

However, if I open an x-term on the box from the desktop and enter the same url there - presto, the sound plays, and everything works.

Since I normally use this box headless, how do I start mplayer over ssh and have the sound play on the remote box?

  Entering the following through the x-term from the desktop works just fine:

mplayer -loop 0 -playlist http://playerservices.streamtheworld.com/pls/KDAQHD2.pls

(it's classical)

Is there a config somewhere where I can tell it to start mplayer the same from ssh as it does when started from the desktop?

Following troubleshooting from the Sound Wiki, running 'pactl list sinks' over ssh while the desktop is playing the audio stream, I get:

$ pactl list sinks
Sink #1
        State: RUNNING
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 19
        Mute: no
Volume: front-left: 41944 / 64% / -11.63 dB, front-right: 41944 / 64% / -11.63 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Latency: 29816 usec, configured 31247 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                <snip>

Can I use this information when starting mplayer over ssh to have it play sound through that boxes (the remotes) speakers? I've tried '-ao alsa' when starting over ssh, but still no sound.

  If I missed something in the wiki -- I missed it. Any help appreciated.

--
David C. Rankin, J.D.,P.E.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux