Since a couple of days I tried to play sound and stream radio with gstreamer on my raspi B2
It seems to be a perfect solution for my project as i plan to listen to the microphone (like siri, alex, google, etc.) in the next step
Unfortunatey I stocked with the internet radio!
Saving the radio stations mp3 is successfull
--> gst-launch-1.0 -v souphttpsrc location=http://wdr-wdr2-rheinland.icecast.wdr.de/wdr/wdr2/rheinland/mp3/128/stream.mp3 ! filesink buffer-size=1024 location=./radio.mp3
Playing the mp3 file is successfull, too:
--> gst-launch-1.0 -v filesrc location='./radio.mp3' ! mad ! audioconvert ! volume volume=0.1 ! alsasink
But the combination fails in every combination of parameters
--> gst-launch-1.0 -v souphttpsrc location=http://wdr-wdr2-rheinland.icecast.wdr.de/wdr/wdr2/rheinland/mp3/128/stream.mp3 ! mad ! audioconvert ! volume volume=0.1 ! alsasink
"souphttpsrc" and "mad" failed to connect with the message
streaming task paused, reason not-negotiated (-4)
Does anyone has a clue?
Thanks in advance,
Piet
The (german) message ist:
Leitung wird auf PAUSIERT gesetzt ...
Leitung läuft vor …
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "application/x-icy\,\ metadata-interval\=\(int\)16000"
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "application/x-icy\,\ metadata-interval\=\(int\)16000\,\ content-type\=\(string\)audio/mpeg"
FEHLER: Von Element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Interner Fehler im Datenfluss.
Zusätzliche Fehlerdiagnoseinformation:
gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
streaming task paused, reason not-negotiated (-4)
FEHLER: Leitung läuft nicht vor.
Leitung wird auf NULL gesetzt ...
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "NULL"
Leitung wird geleert ...
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "application/x-icy\,\ metadata-interval\=\(int\)16000"
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "application/x-icy\,\ metadata-interval\=\(int\)16000\,\ content-type\=\(string\)audio/mpeg"
FEHLER: Von Element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Interner Fehler im Datenfluss.
Zusätzliche Fehlerdiagnoseinformation:
gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
streaming task paused, reason not-negotiated (-4)
FEHLER: Leitung läuft nicht vor.
Leitung wird auf NULL gesetzt ...
/GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0.GstPad:src: caps = "NULL"
Leitung wird geleert ...
_______________________________________________ gstreamer-embedded mailing list gstreamer-embedded@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded