Consuming HLS stream from KVS into Gstreamer
I am trying to consume hls stream from kvs into a gstreamer pipeline. This is how my pipeline looks: gst-launch-1.0 uridecodebin uri= ! videoconvert ! videoscale ! fakesink
The playback can be either ON-DEMAND or LIVE. For both of these, the pipeline is failing. The error i am getting are the following:
- LIVE
Error: gst-stream-error-quark: GStreamer encountered a general stream error. (1): qtdemux.c(7067): gst_qtdemux_process_adapter (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstDecodeBin:decodebin0/GstQTDemux:qtdemux1: no ‘moov’ atom within the first 10 MB
- ON DEMAND
Got context from element 'souphttpsrc0': gst.soup.session=context, session=(SoupSession)NULL, force=(boolean)false; ERROR: from element /GstPipeline:pipeline0/GstHLSDemux:hlsdemux0: Bad Request: gstsouphttpsrc.c(1433): gst_soup_http_src_parse_status (): /GstPipeline:pipeline0/GstHLSDemux:hlsdemux0/GstBin:srcbin-src_0/GstSoupHTTPSrc:souphttpsrc2: Bad Request (400), URL: https://xxxxxx.kinesisvideo.ap-south-1.amazonaws.com/hls/v1/getMP4MediaFragment.mp4?FragmentNumber=91343852333181447247962534063713311793091791200&SessionToken=CiBqeVBONnlpDlSZe2tMrTH0DAHlh7C8DltHepBFKcrSRRIQBcMQHwL0UNgeO_SQNglPJRoZuBhdyCp-0Ngt54Q4I32HeDjx9DnnhLTBsiIgBgKnvoaOHwKV4tFOfQ8T8QSg0SwHx1QwqmraDAXOdto~&TrackNumber=1, Redirect to: (NULL)
I tried with bith uridecodin and souphttsrc plugin followed by hlsdemux and decodebin but the issue persists. How can we resolve this issue? I will be grateful for any help.
Thanks in advance.