<div dir="ltr"><div>Hi,</div><div><br></div><div>I'd like to make my seeking process as interactive as possible.</div><div>In general everything works. I'm able to preview and record streams from webcams from my C++ code.</div><div>Recording pipeline equivalent looks like:<br></div><div><br></div><div>gst-launch-1.0 -e v4l2src device=/dev/video0 ! "video/x-raw, ..." ! videoconvert ! x264enc ! matroskamux ! filesink location=filename.mkv</div><div><br></div><div>or (using NVIDIA's hardware-accelerated NVENC encoder API)<br></div><div><br></div><div>gst-launch-1.0 -e v4l2src device=/dev/video0 ! "video/x-raw, ..." ! videoconvert ! nvh264enc ! h264parse ! matroskamux ! filesink location=filename.mkv</div><div><br></div><div>It's not hard to playback my recordings with playbin and seek:</div><div><br>gst_element_get_state(m_pipeline, nullptr, nullptr, GST_CLOCK_TIME_NONE); // This trick make seeking much more interactive</div><div>gst_element_seek(m_pipeline, 1.0, GST_FORMAT_TIME,<br>                  (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE),<br>                  GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);</div><div><br></div><div></div><div>But even using <span>NVDEC I'm not happy with performance. It's not bad at all, but not smartphone-like smooth. </span>What can I do to dramatically improve it?<span><i><br></i></span></div><div><span><i><br></i></span></div><div>Environment: Ubuntu 19.10 / Intel Core i7-2600 / GeForce GTX 1050 Ti / SSD</div><div><br></div><div>Thanks,</div><div>Ilya<br></div></div>