<div dir="auto">Yes, use fragmented MP4. That way you will eventually lose small part of the video at the end.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 23, 2022, 23:11 Ben Harper <<a href="mailto:rogojin@gmail.com">rogojin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi!<div><br><div>I'm building an open source home video monitoring system, and naturally this needs to be able to make long recordings from the cameras, and store them as video files. Right now I'm only supporting h264, and writing into an MP4 file. This works perfectly, aside from the fact that if the monitoring system loses power during recording, such that I haven't called av_write_trailer yet, then the video file is unplayable.</div><div><br></div><div>Is there a way to stream to a video file such that most of it will be playable, even if the system loses power?</div></div><div><br></div><div>Thanks,</div><div>Ben</div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank" rel="noreferrer">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer 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" rel="noreferrer">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div>