Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Beginners • Re: play audio from url without X11

$
0
0
Hi,
Can anyone recommend a terminal based audio player that can play a stream from web radio ?
vlc/mpv etc and some other terminal based audio players , require too many dependencies , including X11
mplayer
Here's a shell script I use to play streamed audio and show a terminal window with the metadata displayed:

Code:

#!/bin/bashPATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/gamesexport DISPLAY=:0.0lxterminal --geometry=70x7 -e mplayer -cache 512 -volume 100 -playlist http://playerservices.streamtheworld.com/pls/KDFCFMAAC.pls
Hi, unfortunately mplayer , like vlc,mpv requires X11 and tones of unneeded packages

Statistics: Posted by korakios — Sat Mar 16, 2024 11:51 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles