<html><head></head><body><div>On Tue, 2022-12-13 at 16:12 +0330, Masoud MJ wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><br><div>I have another question about rust binding.</div><div>I'm currently writing a webrtc mcu using rust and gstreamer.</div><div>I get video tracks from webrtc peer using webrtc-rs crate and forward them to gstreamer and then I will arrange them in grid layout form using compositor element and then get output using appsink element and then forward that to other webrtc peer.</div></div></blockquote><div><br></div><div>OOC, why are you not using GStreamer's webrtc implementation? Last time I checked, webrtc-rs was rather incomplete in comparison.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>Now the problem is when I try to add a new webcam video track to compositor , the compositor element will sometimes (completely randomly) does not work correctly.</div><div>for example the place of new webcam in compositor will be black (it seems not added to compositor but in debug dot file it exists in normal form) or sometimes will be added to compositor fast and sometimes will be added to compositor after about 10 seconds or ...</div><div>In summary sometimes it behaves totally weird and I don't know where the problem is.</div><div>I'll attach the code and debug dot file , hope you will help me,</div></div></blockquote><div><br></div><div>Hard to say without having runnable code and a way to reproduce the problem locally.</div><div>My best guess is that you're getting timestamping wrong of the data you inject into the pipeline, and/or you're not setting start-time-selection=first on the compositor.</div><div><br></div><div><span><pre>-- <br></pre><div><div><span style="font-family: Calibri, sans-serif; font-size: 14.666667px;">Sebastian Dröge, Centricular Ltd · </span><a href="https://www.centricular.com/" title="Click to open https://www.centricular.com/" style="color: rgb(0, 0, 238); font-family: Calibri, sans-serif; font-size: 14.666667px;">https://www.centricular.com</a></div></div></span></div></body></html>