I'm trying to implement an utility to capture live stream from an IP-camera to disk in HLS structure. I would prefer fmp4 over ts. To play stream from archive, the utility would regenerate m3u8 for the specific timeframe. I have tried to browse the documentation of ffmpeg, but I can't find a parameter to create init.mp4 with headers only so that I would insert it at the beginning of each playlist.
Any tips for a workaround? Thanks in advance!