<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying to solve a little puzzle here. I'm looking for a container that would allow me to create a video file "on the fly" and stream it over HTTP. But I also need the result to be seekable.</div><div><br></div><div>To add more details, I have a storage with MPEG-TS video segments (thousands of hours of continuous video). I need to create a server application that would take a given set of continuous segments from the storage, it would mux it into an appropriate container and stream it over HTTP to a client. The client can save it as a file, play it back and seek in it.</div><div><br></div><div>The video codec can be either h264 or MJPEG. There can be also an audio in AAC.<br></div><div><br></div><div>Right now I'm using fragmented MP4 but not all players can seek in it. From what I understand, the MP4 muxer puts the MOOV atom to the end of the file by default, so it should be possible. Unfortunately, when I tried to create a regular MP4 (i.e. not fragmented) with AVIOContext which does not support seeking, the result wasn't playable.</div><div><br></div><div>Please note that I cannot create the whole MP4 file on the server and stream it via HTTP when it's done. There would be a big delay and I also want to avoid disk IO because of scalability.<br></div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Ondrej</div><div><br></div></div>