<div dir="auto"><div>Hi,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 28 août 2023, 13 h 45, Regine Issan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello Dear community,<br></div>I am using gstreamer to stream files from disk to (v4l2) video device.<br></div><div>the gst-launch commands (below) seems to work for small files.<br></div><div><br>However, when i run the command with 4k files ,for example, i get the error: <br>"There may be a timestamping problem, or this computer is too slow.".<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Your computer is too slow is the most likely cause.</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"><div dir="ltr"><div><br></div><div>when i add sync = 0 to the end of the gst-launch commands (below), the error disappers.<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This property controls if GStreamer should playback at the appropriate rate or not care.</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"><div dir="ltr"><div><br></div><div>could anyone please advise:<br></div><div>1. what cases the error ?<br>2. what is the meaning of the fix ?<br></div><div> what am i loosing by setting "v4l2sink sync=0" \ "xvimagesink sync=0" ? <br><div> does that mean theat gstreamer does not guantee to the frame rate specified in the command (30/1) ?<br></div><div> <br></div> PS: documentation only tells "Sync on the clock"<br></div><br><div> <br></div><div>Thank you !!!<br><br></div><div>More details:<br></div><div><br>command to inject to screen:<br>gst-launch-1.0 -v multifilesrc location=./%04d.png loop=1 caps="image/png,framerate=30/1" ! pngdec ! videoconvert ! xvimagesink<br><br></div><div>command to inject to virtual video device:<br> gst-launch-1.0 -v multifilesrc location=./%04d.png loop=1 caps="image/png,framerate=30/1" ! pngdec ! videoconvert ! "video/x-raw,format=YUY2" ! v4l2sink device=/dev/video11 <br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">In this pipeline you have multiple heavy CPU operation, all running on one CPU/thread.</div><div dir="auto"><br></div><div dir="auto">- pngdec</div><div dir="auto">- videoconvert from RGB to YUV</div><div dir="auto"><br></div><div dir="auto">You can use more CPUs by a) adding queue element after heavy operations and b) configure videoconvert to use multiple threads (n-threads property).</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"><div dir="ltr"><div> <br><br></div><div>Detailed error:<br>There may be a timestamping problem, or this computer is too slow.<br> WARNING: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: A lot of buffers are being dropped.<br> Additional debug info:<br>
../libs/gst/base/gstbasesink.c(3143):
gst_base_sink_is_too_late ():
/GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:</div></div>
</blockquote></div></div></div>