gstreamer hls player

Sebastian Dröge sebastian at centricular.com
Thu Nov 20 00:59:26 PST 2014


On Do, 2014-11-20 at 13:45 +0530, Mayank Agarwal wrote:
> Hi,
> 
> 
> I want to implement hls player using gstreamer by implementing the
> pipeline described in the following link:
> 
> https://coaxion.net/blog/2014/05/http-adaptive-streaming-with-gstreamer/
> 
> I have the following doubts:
> 
> 1.we have souphttpsrc plugin,that plugin i can use for downloading the
> http stream
> 2.After that query for data type whether the stream has streams of mp4
> type ot ts type
>    and depending upon that i have to choose demuxer,decoder and then renderer.
> 
> 3.If my understanding is correct or i need something else to implement
> the hls player.
> 4.what are the challenges in implementing gstreamer based hls
> player,is there any pseudo code
> or links which i can follow.

What I describe on my blog are how all this works internally inside
GStreamer and the plugins. If you only want to implement a HLS playback
application, all you need to do is to use playbin and set the URI on
playbin to the URI of the m3u8 playlist. Everything else will then be
automatically handled for you, based on the things I explained on my
blog.

If you don't want to use playbin (you should!) everything becomes much
more complicated, especially if you want to allow switching between
different HLS stream bitrates. All this would be handled for you inside
playbin and decodebin, and if you want to reimplement that yourself I
recommend reading the code of these elements.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141120/f9554cc9/attachment.sig>


More information about the gstreamer-devel mailing list