<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2019 at 11:40 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>I have a pipeline that looks like this:</div><div><br></div><div>matroskamux name=muxer streamable=true ! multifilesink max-file-duration=60s  locaiton=capture_%08d.mkv<br></div><div>.. ! h264parse ! identity ! muxer.video_0</div><div><br></div><div>(I believe this is the only pertinent snippet needed for this discussion)<br></div><div><br></div><div>And each frame is timestamped in my identity handoff callback via essentially gettimeofday()).</div><div><br></div><div>But occasionally we seem to be seeing that the timestamps in the file I am writing out don't align with the frames in the final stream. Barring obviously flushing errors of the data, shouldn't the timestamps of each frame parsed by the h264parse correlate with my timestamp file. The frames are also numbered monotonically increasing (1, 2, 3, 4, ...) and I have been told that identity doesn't drop frames so this has me confuzzled. <br></div><div><br></div><div>Is there a fundamental assumption I am making that might lead to the problem I am describing?<br></div></div></blockquote><div><br></div><div>Let me re-ask the question given the overwhelming response:</div><div><br></div><div>Should I expect every single frame the identity handoff callback processes to wound up in the stream?</div><div><br></div><div>Again, I'm talking about a pipeline that ends with something like this:<br></div><div><br></div><div>matroskamux name=muxer streamable=true ! multifilesink max-file-duration=60s  locaiton=capture_%08d.mkv</div><div>... ! h264parse ! identity ! muxer.video_0</div><div>... ! h264parse ! identity ! muxer.video_1</div><div><br></div><div>So should I expect the total number of frames in the MKV for stream 0 and 1 equal to the number of times "handoff" is called? I think the answer is YES, right?<br></div><div><br></div><div>-aps<br></div><div><br></div><div> <br></div></div></div>