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
! hlsdemux ! decodebin name=decoder ! queue ! autovideosink decoder. ! queue
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 ():
The following pipeline worked well with my application.
gst-launch-1.0 --gst-debug=3 mp4mux name=mux ! \
filesink location=xxxx.mp4 souphttpsrc location=<hls url> ! decodebin
name=decode ! \
videoconvert ! videorate ! video/x-raw, framerate=50/1 ! queue ! x264enc !
mux. decode. ! \
audioconvert ! voaacenc ! mux.
Also in my HLS stream video segments some had 50FPS and some had 59.97FPS.
So I used a videorate to default to 50. This might need to change depending
on your segments