<div dir="ltr">Hi,<div>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. </div><div><br></div><div>I tested with the following pipeline to demux and play it and it works fine</div><div>gst-launch-1.0 -v souphttpsrc location=<a href="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">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</a> ! hlsdemux ! decodebin name=decoder ! queue ! autovideosink decoder. ! queue ! autoaudiosink<br></div><div><br></div><div>To this I added the x264 enc and avenc_aac encoder to save it to a file and it keeps failing on <b>"gstadaptivedemux.c(2651): _src_chain (): /GstPipeline:pipeline0/GstHLSDemux:hlsdemux0"</b></div><div><b><br></b></div><div>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\&content_filter\=%7B%22player%22:%5B115685%5D%7D\&business_rules\=fox_world_cup\&asset_filter\=%7B%22year%22:%5B2018%5D%7D\&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</a> ! 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. <br></div><div><br></div><div>Please let me know what I am doing wrong here.</div><div>Thanks a lot for your help!</div><div>Regards,</div><div>Guru</div></div>