<div dir="ltr">Hello,
<div><br></div><div>I'm stabilizing a video using OpenCV in the appsink. At the same time I'm saving the file via a filesink.</div><div>What I want to do is to reproduce the saved movie with the exact information that I calculated in the first run. To do this I need an exact match between saved frame data and computed stabilization transformations.</div><div><br></div><div>Currently, after computing the information I need, I save a txt file with the stabilization transform and sample's buffer PTS.</div><div><br></div><div>Although, when reproducing the file, I have an offset between the saved transformation data and PTS and the new reproducing PTS and the offset is not quite constant throughout the whole reproduction.</div><div><br></div><div>Currently my pipeline is (simplified) as follows:</div><div>(Source connects to both appsink and filesink)<br></div><div><br></div><div> Source --- Appsink</div><div> |</div><div> -- Filesink</div><div><br></div><div>So, I have two main questions:</div><div><br></div><div>1) Is the PTS saved in the filesink equal to a PTS (to an offset) of that file's reproduction?</div><div>2) How can I synchronize a saved video frame data with a reproduction of the same file?</div><div><br></div><div>Thanks,</div><div>Diogo</div></div>