We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

Stream online radio from terminal

asked 2017-01-29 18:32:15 +0300

Eds gravatar image

Hi, I was trying to use gstreamer to stream some online radio from the command line.

However, neither

gst-launch-0.10 -v playbin2 uri=http://www.deutschlandradio.de/streaming/dlf.m3u

nor

gst-launch-0.10 souphttpsrc location=http://www.deutschlandradio.de/streaming/dlf.m3u alsasink

or any combination thereof appeared to work. There does not appear to be any element capable of establishing http pipelines. In fact

gst-inspect-0.10 | grep http

yields nothing.

I also tried replacing the link to the m3u file with the more explicit

http://stream.dradio.de/7/249/142684/v1/gnl.akacast.akamaistream.net/dradio_mp3_dlf_m

but without success.

Question: How can we use gstreamer to stream a remote m3u file from the command line?

edit retag flag offensive close delete

Comments

The *-0.10 commands are all that I have available on my phone (Sailfish OS 2.0.5.6 Haapajoki).

Eds ( 2017-01-29 20:34:01 +0300 )edit

just install gstreamer1.0-tools and do not try to connect gstreamer-0.10 to internet...

lpr ( 2017-01-30 14:32:17 +0300 )edit
1

> gst-inspect-1.0 | grep http -> curl: curlhttpsink: Curl http sink soup: souphttpsrc: HTTP client source soup: souphttpclientsink: HTTP client sink

lpr ( 2017-01-30 14:35:18 +0300 )edit
1

I just tried on my JollaC (with gstreamer 1.0), got it working using the command:

gst-launch-1.0 playbin uri=http://stream.dradio.de/7/249/142684/v1/gnl.akacast.akamaistream.net/dradio_mp3_dlf_m

Also, it's strange that you got the old gstreamer 0.10 installed, maybe you installed it from openrepos.net.

ced117 ( 2017-01-30 19:54:23 +0300 )edit

Thanks, installing gstreamer1.0 solved the problem.

Eds ( 2017-01-31 00:20:39 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2017-01-29 19:14:30 +0300

lpr gravatar image

I suggest using the -1.0 commands and in no way connect gstreamer-0.10 to internet as it is not fixed anymore...

edit flag offensive delete publish link more
1

answered 2017-01-29 23:07:55 +0300

h.berd gravatar image

the app quickradio can stream online radio, altough its not over the terminal

edit flag offensive delete publish link more

Comments

Thanks. Yes, so does Allradio, which I currently use.

Eds ( 2017-01-30 00:54:54 +0300 )edit

No need for a extra app, the built-in mediaplayer can stream online radio as well. Just build a playlist with all you radios and transfer that file to your phone.

max ( 2017-01-30 22:34:41 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2017-01-29 18:32:15 +0300

Seen: 1,416 times

Last updated: Jan 29 '17