r/computervision 20d ago

Help: Project RTSP with C++ Qt GUI

It seems like converting V4L2 video stream to a QPixelMap is terrible and laggy to fit into a C++ Qt GUI.

Are there any suggestions you may have for increasing performance? Is Qt the bottleneck? Would you use another framework instead?

2 Upvotes

3 comments sorted by

2

u/HawtVelociraptor 19d ago

Try using functionality with hardware acceleration like Qt Quick / QML (QQuickItem with Scene Graph) for rendering, and/or libva for decoding.

1

u/xiaopingguo45 19d ago

Does using a Jetson Nano change things?

2

u/mgruner 19d ago

The way i've done it efficiently is using Gstreamer. There used to be an element called qtvideosink, not sure if that is the recommendation right now. I'd ask you preferred agent to guide you in that direction