Generating MP4 from HLS stream

gugovind gxguru at gmail.com
Thu Jul 5 20:46:16 UTC 2018


Hi,
I am trying to generate MP4s from HLS streams with discontinuity tags. Since
the videos are from the same source the FPS and the WXH are the same. 

I tested with the following pipeline to demux and play it and it works fine
gst-launch-1.0 -v souphttpsrc
location=https://b.fssta.com/hm-api/manifest/index.m3u8\?video_host\=b.fssta.com\&content_filter\=%7B%22player%22:%5B115685%5D%7D\&business_rules\=fox_world_cup\&asset_filter\=%7B%22year%22:%5B2018%5D%7D\&pkg_level\=720
! hlsdemux ! decodebin name=decoder ! queue ! autovideosink decoder. ! queue
! autoaudiosink

To this I added the x264 enc and avenc_aac encoder to save it to a file and
it keeps failing on "gstadaptivedemux.c(2651): _src_chain ():
/GstPipeline:pipeline0/GstHLSDemux:hlsdemux0"

gst-launch-1.0 -v  mp4mux name=mux faststart=true presentation-time=true !
filesink location=dipoza.mp4 souphttpsrc
location=https://b.fssta.com/hm-api/manifest/index.m3u8\?video_host\=b.fssta.com\&content_filter\=%7B%22player%22:%5B115685%5D%7D\&business_rules\=fox_world_cup\&asset_filter\=%7B%22year%22:%5B2018%5D%7D\&pkg_level\=720
! hlsdemux ! decodebin name=decoder ! queue name=q1 ! videoconvert ! queue
name=q2 ! x264enc name=encoder ! mux.  decoder. ! queue name=q3 !
audioconvert ! queue name=q4 ! avenc_aac ! mux. 

Please let me know what I am doing wrong here.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list