USB backup camera

wkl3968
Posts: 53
Joined: Thu Aug 07, 2025 12:22 pm

Re: USB backup camera

Post by wkl3968 »

Yes. It works!! thank you very muchy!! is there a way to change the resolution or stretch the video to fill up the display? I will have a wide screen for this setup.
Attachments
Screenshot 2025-09-26 083303.png
Screenshot 2025-09-26 083303.png (962.99 KiB) Viewed 502 times
wkl3968
Posts: 53
Joined: Thu Aug 07, 2025 12:22 pm

Re: USB backup camera

Post by wkl3968 »

now I connect the widescreen and I cannot stretch the video to the display size as shown. any idea of how to proceed this?
Attachments
Screenshot 2025-09-26 214327.png
Screenshot 2025-09-26 214327.png (582.97 KiB) Viewed 494 times
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: USB backup camera

Post by hudiy »

You will probably need videoscale element before the glupload. It should convert the video to desired size

https://gstreamer.freedesktop.org/docum ... scale.html
wkl3968
Posts: 53
Joined: Thu Aug 07, 2025 12:22 pm

Re: USB backup camera

Post by wkl3968 »

thanks for the pointers. I get to learn this from chatgpt and conducted some test. here is the working one that able to project to full screen

v4l2src device=/dev/video0 ! videoconvert ! videoscale add-borders=false ! video/x-raw,width=1600,height=600,pixel-aspect-ratio=1/1 ! glupload ! qml6glsink name=video-sink
Post Reply