Generating MP4 from HLS stream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Generating MP4 from HLS stream

Guru nathan
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=<a href="https://b.fssta.com/hm-api/manifest/index.m3u8\?video_host\=b.fssta.com\&amp;content_filter\=%7B%22player%22:%5B115685%5D%7D\&amp;business_rules\=fox_world_cup\&amp;asset_filter\=%7B%22year%22:%5B2018%5D%7D\&amp;pkg_level\=720">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=<a href="https://b.fssta.com/hm-api/manifest/index.m3u8\?video_host\=b.fssta.com\&amp;content_filter\=%7B%22player%22:%5B115685%5D%7D\&amp;business_rules\=fox_world_cup\&amp;asset_filter\=%7B%22year%22:%5B2018%5D%7D\&amp;pkg_level\=720">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.
Thanks a lot for your help!
Regards,
Guru

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