playbin2 plays radio stream with glitches

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

playbin2 plays radio stream with glitches

souvikdatta
This post was updated on .
Hello,
I am trying to play SHOUTcast stream with playbin2 (finally uses souphttpsrc). by issuing : -

gst-launch playbin2 uri=http://81.173.3.254:80


This stream is getting played with noticeable glitches. Some of the other stations are playing OK. I may be wrong but my observation is that for all those stations for which I am able to extract "name" TAG from the stream, I can hear the stream without noise.

The strange part is that , when I am playing the same URL using souphttpsrc as source, I am able to hear the song without any glitches.

Can some one please throw some light on this? Am I missing something here.

Here is the ICY header information for the stream:

ICY 200 OK
icy-notice1:<BR>This stream requires Winamp<BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
icy-name:Pinguin Radio
icy-genre:Alternative
icy-url:http://www.pinguinradio.nl
content-type:audio/mpeg
icy-pub:1
icy-br:128

I thought of adding this too.
What I notice is that for stations with similar behavior, icydemux seems to fail. Here is the output taken from the console:

PLAYBACK FAILS
---------------
root@souvik-L41II3:# gst-launch souphttpsrc iradio-mode=true location=http://scfire-ntc-aa01.stream.aol.com:80/stream/1060 ! icydemux ! mad ! alsasink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2550): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


PLAYS OK:
---------
root@souvik-L41II3:# gst-launch souphttpsrc iradio-mode=false location=http://scfire-ntc-aa01.stream.aol.com:80/stream/1060 ! mad ! alsasink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...RE:
New clock: GstAudioSinkClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 138280224259 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root@souvik-L41II3:

Are these streams having malformed metadata?

Thanks and Best Regards,
Souvik