How to construct the pipeline for hls videos (AES encrypted or not)

Duncan Palmer dunk.palmer at gmail.com
Wed May 18 04:13:04 UTC 2016


Hi Silver,

Using uridecodebin is the correct approach here, as you'll need to deal
with dynamic pipeline reconfiguration on bitrate changes, and decodebin
will handle that for you.

Could you run with the GST_DEBUG environment variable set to
'*:2,hlsdemux:7', and post the logs?

Dunk

On 17 May 2016 at 19:17, silver <sxhsxhsxh66 at gmail.com> wrote:

> I'm new to gstreamer. I want to realize an iOS app to play hls videos by
> gstreamer. I use the version 1.6.4. I followed some tutorials on the
> internet so I got the following pipeline:
>
> souphttpsrc location=some_m3u8_url ! hlsdemux ! tsdemux name=mux  mux. !
> queue ! h264parse ! avdec_h264 ! autovideosink  mux. ! queue ! aacparse !
> faad ! autoaudiosink
>
> I found some hls video urls to test but strangely, it partially worked.
> Sometimes it plays the video during several seconds and then it stops and
> it
> gives: Error received from element hlsdemux0: Internal data stream error.
> Sometimes it dose not play the video but just shows the first frame of this
> video.
>
> I also tried playbin, decodebin and uridecodebin (like: uridecodebin
> uri=some_m3u8-url buffer-size=10000000 name=u  u. ! videoconvert !
> autovideosink  u. ! audioconvert ! audioresample ! autoaudiosink), but they
> didn't work. Error message like:
> Buffering 4%
> Buffering 8%
> Error received from element hlsdemux0: GStreamer encountered a general
> stream error.
> OR
> Buffering 40%
> Buffering 90%
> PLAYING
> PAUSED
> Error received from element hlsdemux0: Internal data stream error.
> In Xcode, error message: GLib (gthread-posix.c): Unexpected error from C
> library during 'pthread_mutex_lock': Invalid argument.  Aborting.
>
> These kinds of error made me upset for weeks and I could not find any help.
> Further more, what I need is to also play the encrypted video, but I have
> no
> idea if this function is integrated or not.
>
> Hope someone can help me or give me some suggestions. Thanks a lot!
>
> PS: Dev environment: Xcode 7.3, iOS 9.3.1 (ipad).
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/How-to-construct-the-pipeline-for-hls-videos-AES-encrypted-or-not-tp4677603.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160518/942bbd4a/attachment.html>


More information about the gstreamer-devel mailing list