<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 7 juill. 2019 08 h 25, RiccardoCagnasso <<a href="mailto:riccardo@phascode.org" target="_blank" rel="noreferrer">riccardo@phascode.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I took some time to read your answer, the discussion you linked and some of<br>
the code in your branch. I think I managed to understand what you are trying<br>
to do and what problems you are facing, at least to an extent (which is an<br>
achievement by itself). I'm not sure that I can give any meaningful insight<br>
about that though. Except for maybe the fact that synchronizing the<br>
gstreamer clock with the wayland presentation layer that way doesn't sound<br>
right to me. It feels like the process of synchronizing with vblanks shoud<br>
be confined to the video sink and not have a larger impact on the pipeline<br>
(and clock) as a whole. But this is probably a stupid observation since I<br>
don't really know much about gstreamer internals, so meh.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The slight thing you have missed is that this is doing the exact opposite. The Wayland clock is being slaved to the pipeline clock, hence have no impact on the pipeline. So it is confined. That being said, if that clock was the only one available, it would make sense to provide it, that wasn't anything I wanted to achieve, specially that I'd need an hybrid clock in order to increase precision.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What I also did, possibly less pointless, is to make some tests with<br>
glimagesink. I'll link some results here because they are puzzling.<br>
<br>
1) <a href="https://youtu.be/RFRUZrsllnU" rel="noreferrer noreferrer noreferrer" target="_blank">https://youtu.be/RFRUZrsllnU</a><br>
This is my laptop, with an Intel video card, vaapidecode/vaapisink and both<br>
videos on the same monitor. You can see random desyncs consistent with what<br>
we discussed.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The desync is likely not random though, you'd need a better test.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2) <a href="https://youtu.be/C2lDp-Lh8B8" rel="noreferrer noreferrer noreferrer" target="_blank">https://youtu.be/C2lDp-Lh8B8</a><br>
This is one of my workstations with a Quadro P400. Vsync is enabled and full<br>
composition pipeline. nvdec and glimagesink. Both videos on one monitor. The<br>
sync is perfect as far as I can see.<br>
<br>
3) <a href="https://youtu.be/wwvfbHGh4a0" rel="noreferrer noreferrer noreferrer" target="_blank">https://youtu.be/wwvfbHGh4a0</a><br>
This is the same workstation but with one video on each monitor. One video<br>
seems exactly one frame later than the second. </blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm not sure if we can with this test see the difference between .5 frame delay and 1 frame delay.</div><div dir="auto"></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>