<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="DejaVu Sans">Not based on any relevant, practical
experience, other than knowing from audio that synchronization
is hard, I would definitely go for the "two frames side by side"
approach and split them up afterwards. I think that's the
easiest way to get the best possible synchronization. Cutting
the image up into two separate frames should be pretty
straightforward with a tee and some videocrops.<br>
</font></p>
<p><font face="DejaVu Sans">HTH,<br>
Michiel</font><br>
</p>
<div class="moz-cite-prefix">On 20-04-2023 16:53, Dwight Kulkarni
via gstreamer-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKW2B8ifpHi5R3+fPJuYE7_NQA8KJCUfRTgs56tmJEScsDy7sA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I have two cameras with independent pipelines, the camera
ends in an appsink where the jpeg frames are consumed.</div>
<div><br>
</div>
<div>The problem is that I need to extract the jpeg frames from
both cameras at exactly the same time. There can't be slight
time differences between the two images. This is for stereo
image analysis.</div>
<div><br>
</div>
<div>Right now, I terminate the pipeline in an appsink and then
consume the Jpeg frames that get outputted. </div>
<div><br>
</div>
<div>If each camera runs on a separate pipeline I will get two
different callbacks that contain the JPEG image and there is
no guarantee that both images are in synch unless there is
something from gstreamer that can synch them.</div>
<div><br>
</div>
<div>Alternately, we can change the camera driver so that the
raw video coming out of the ISP is being stitched into a frame
that's twice as large and then maybe crop the image in
gstreamer when recording the video to select only one camera
but the Jpeg frame being returned will contain both frames
already synched.</div>
<div><br>
</div>
<div>Before pursuing these ideas, I was hoping for any comments
on what is the best practice.</div>
<div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><span style="font-size:12.8px">Sincerely,</span>
<div><br>
</div>
<div>Dwight Kulkarni </div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>