Unsolved Video / QCamera on Android doesn't hold aspect ratio.
-
I have a cross-platform QML app which recently added QtMultimedia (6.4.1) support in order to be able to use the camera on a phone. (mostly just to scan a QR code)
On desktop, with a usb based webcam, this works great. It shows nice high-res streams and the result just looks good.
On Android I noticed some weirdness. First, the video streams are all quite low-res. One phone has 176x144 and 320x240. Another phone has 160x96, 192x108, 176x144, 192x144 & 320x240.
But I'm pretty sure that those resolutions don't actually reflect reality by the simple fact that they are the wrong aspect ratio. Easy to see if you look at something and then rotate the camera and you see that the object you look at went from slim to wide.
I even tried swapping width and height, which improves it a little but not much.So, in short, my QtMultimedia on Android seems to be less than stellar on camera support.
I looked at my self-compiled QtMultimedia and the configure lists this, which leads me to ask if I need to add some support for some 'plugin' to make the camera work better?
-- Configure summary: Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ no Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... no Open SLES (Android) .................. yes Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. no Hardware acceleration and features: Video for Linux ...................... yes VAAPI support ........................ no Linux DMA buffer support ............. no VideoToolbox ......................... no
-
Hello,
I have similar issues, have found a solution ?