listen to http audio stream

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

listen to http audio stream

Mark
Hello! I'm using gstreamer 1.8.2 and I want to listen a webradio.
I have an http link (i.e. http://110.77.213.250:8019) that works in VLC.

Could you help me to build the right pipeline to listen to that http stream?
I don't understand what is the correct source I need to use.

Thanks!
Marco

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Tim Müller
On Sat, 2016-07-16 at 12:53 +0200, Marco Trapanese wrote:

Hi Marco,

> Hello! I'm using gstreamer 1.8.2 and I want to listen a webradio.
> I have an http link (i.e. http://110.77.213.250:8019) that works in
> VLC.
>
> Could you help me to build the right pipeline to listen to that http
> stream? I don't understand what is the correct source I need to use.

Have you tried playbin?

 gst-launch-1.0 playbin uri=http://110.77.213.250:8019/

or

 gst-play-1.0 http://110.77.213.250:8019/

appears to work just fine for me.

Cheers
-Tim

--

Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Mark
Il 16/07/2016 14:12, Tim Müller ha scritto:

> Have you tried playbin?
>
>   gst-launch-1.0 playbin uri=http://110.77.213.250:8019/
>
> or
>
>   gst-play-1.0 http://110.77.213.250:8019/

They doesn't work for me. The error is:

> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0:
> ring-buffer-max-size = 0
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri =
> http://176.35.165.18:8000
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
> ERROR: the pipeline doesn't want to pause
> Missing element: Source HTTP protocol
> ERROR: from element /GstURIDecodeBin:uridecodebin0: no URI manager for
> «http».
> Further debug information:
> gsturidecodebin.c(1427): gen_source_element ():
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0

Some words are translated from Italian, so they might not be as in the
standard message.
I understand a plugin is missing, but I cannot understand which!


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Mark

After some searches it seems souphttpsrc is missing. I'm recompiling
plugins-good.
I will write back to report the results.

--

Il 16/07/2016 16:10, Marco Trapanese ha scritto:

> Il 16/07/2016 14:12, Tim Müller ha scritto:
>
>> Have you tried playbin?
>>
>>   gst-launch-1.0 playbin uri=http://110.77.213.250:8019/
>>
>> or
>>
>>   gst-play-1.0 http://110.77.213.250:8019/
>
> They doesn't work for me. The error is:
>
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0:
>> ring-buffer-max-size = 0
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering =
>> false
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri =
>> http://176.35.165.18:8000
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
>> ERROR: the pipeline doesn't want to pause
>> Missing element: Source HTTP protocol
>> ERROR: from element /GstURIDecodeBin:uridecodebin0: no URI manager
>> for «http».
>> Further debug information:
>> gsturidecodebin.c(1427): gen_source_element ():
>> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
>
> Some words are translated from Italian, so they might not be as in the
> standard message.
> I understand a plugin is missing, but I cannot understand which!
>
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Tim Müller
In reply to this post by Mark
On Sat, 2016-07-16 at 16:10 +0200, Marco Trapanese wrote:

Hi,

> They doesn't work for me. The error is:
>
> > ERROR: from element /GstURIDecodeBin:uridecodebin0: no URI manager
> > for «http».
> > Further debug information:
> > gsturidecodebin.c(1427): gen_source_element (): 
> > /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
>

Install the souphttpsrc element/plugin from gst-plugins-good.

Cheers
 -Tim

--

Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Tim Müller
In reply to this post by Mark
On Sat, 2016-07-16 at 16:19 +0200, Marco Trapanese wrote:

> After some searches it seems souphttpsrc is missing. I'm recompiling 
> plugins-good. I will write back to report the results.

It's a plugin with external dependencies.

If you're compiling gst-plugins-good yourself, make sure that you have
the required external libraries for those plugins installed (both the
library package and the -dev/devel package with the headers and pkg-
config file). In case of souphttpsrc that's libsoup.

Cheers
 -Tim

--

Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: listen to http audio stream

Mark
In reply to this post by Mark
Il 16/07/2016 16:19, Marco Trapanese ha scritto:
>
> After some searches it seems souphttpsrc is missing. I'm recompiling
> plugins-good.
> I will write back to report the results.


I confirm it works!
It would be nicer if gstreamer suggests which plugins are missing!


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel