<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 25, 2019 at 11:31 AM pisymbol . <<a href="mailto:pisymbol@gmail.com">pisymbol@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 dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 25, 2019 at 10:29 AM Tim Müller <<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.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">On Wed, 2019-09-25 at 15:28 +0100, Tim Müller wrote:<br>
<br>
> Mmh, not really/necessarily, you can't just concatenate Matroska<br>
> files. It might work with splitmuxsrc however.<br>
<br>
Make that splitfilesrc.<br>
</blockquote><div><br></div><div>So here is a concrete example of a 29+ minute recording:<br></div><div><br></div><div>$ for f in /mnt/storage/capture_*.mkv; do ffprobe -v fatal -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 $f; done >> counts</div><div>$ cat counts | paste -sd+ - | bc</div><div>52375</div><div><br></div><div>That should be the total number of frames in all of the mkv captures of stream 0. The problem is if I count the number of times my handoff function is called for frames in stream 0, I get:</div><div> </div><div>"total_frames_0": 52782</div><div><br></div><div>So I'm trying to figure out where did the extra 407 frames come from/go? Or am I counting the frames incorrectly above?<br></div><br></div></div></blockquote><div><br></div><div>Question, is it possible that not all frames are being flushed out at the end by the muxer? Since I seem to always have more entries than frames in meta files, I am guessing my handoff function is being called but perhaps the frames aren't making it out to the filesystem via the muxer???<br></div><div><br></div><div>-aps<br></div></div></div>