<div dir="ltr"><div>Hi Richard,</div><div><br></div><div>yes, that'd be easy. Unfortunately, I cannot do that. Clients are standard web browsers. There will be a web page with a link to download a specific (user defined) set of segments from the storage. The server will mux these segments into mp4, web browser will download it and save it. The users than expect to be able to open it in their favorite media player and seek in it.</div><div><br></div><div>O.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">čt 19. 9. 2019 v 19:20 odesílatel Richard Hussong <<a href="mailto:rhussong@westpond.com">rhussong@westpond.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ondrej -<div><br></div><div>If you are in charge of the receiving client, it could receive the non-seekable stream and re-mux it into a seekable container using ffmpeg or the libraries. I don't know any other way to accomplish what you want, but I am not an ffmpeg expert.</div><div><br></div><div>- Richard Hussong</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 5:50 AM Ondřej Perutka <<a href="mailto:perutka.ondrej@gmail.com" target="_blank">perutka.ondrej@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>