I am working on a live stream pipeline from IP Cameras to web clients using DASH.
I run on demand FFmpeg to convert the RTSP stream from IP cameras, generate dash chunks and upload to my media server through HTTP and then serve the feed to my web clients.
Everything works well but unfortunately the first MPD file is generated after 4-5 seconds slowing down the entire video pipeline (I see the video after about 7-8s from when I request it)
Here is the command:
So here the question, is there a way to get the manifest earlier? Basically what I observe is that FFmpeg generates the init file, then the first chunk and when the chunk is done, it will generated the MPD.
Unfortunately this will take at least 4s regardless the seg_duration.
I am asking since I don't understand if this lag is needed or just the way the code is implemented.