<div dir="ltr"><div>This sounds like a job for a shader. (that is how I did a fade on camera disconnect)</div><div><br></div><div>the shader has a single variable 0 to 100.  0 is stream old and 100 is stream new.</div><div><br></div><div>When value is not 0 or 100 you are in the transition zone.<br></div><div>decode both and pass both pixel values.</div><div>update the value and have it average the scaled pixel values into the new pixel value passed on to the fragment shader.</div><div><br></div><div><br></div><div>Maybe pixel = factor * pixelFromOld + 100-factor * pixelFromNew as factor runs from 100 down to 0</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 17, 2022 at 4:49 PM Bill Hofmann via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</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 class="gmail_default" style="font-family:verdana,sans-serif">All:</div><div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif">I'm looking to be able to set position forward or backward (say, 5 minutes, just for an example), but rather than a "hard cut", instead to do a 5 second dissolve.  That, to me, implies keeping 5 seconds of frames after the original position, and doing a ramped blend with frames from the new position. Or something like that.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">What's the best approach? I looked at the GstEdit functionality, but that seemed way overblown for what I need. Can imagine a way using the compositor, but I'd think I'd need a copy of the stream running in parallel (and switching back and forth). Could also do a custom filter in the path that queues the frames, maybe.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Suggestions as to a way to attack this? I can't be the only one...</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Bill</div><br></div></div>
</blockquote></div>