I have a pipeline that dynamically add video recording branch having rtspsrc → h264 depay / parse → splitmuxsink. As a result it produces fmp4 files.
The recorder have mp4mux and robust muxing so that the moov item is in front. It records segments and all of them individually are playable, but the very first segment have an issue with keyframe.
ffprobe segment00.fmp4 reports st: 0 edit list: 1 Missing key frame while searching for timestamp: 0. This problem not exist for any sequential fragment.
What can i do to get splitmuxsink recording the first segment correctly since the first key-frame ?
I have a similar situation where I’m dynamically adding a chain to record to mp4 using splitmuxsink from a live rtsp src. I have a probe thats waits for a keyframe before setting up the new elements. That seems to work.
I would like to achieve the same so you splitmuxsink to produce fmp4 files that I can later use for streaming using HLS. Can you share your final pipeline that worked for you?