Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Video / QCamera on Android doesn't hold aspect ratio.

Video / QCamera on Android doesn't hold aspect ratio.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 326 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TomZT Offline
    TomZT Offline
    TomZ
    wrote on last edited by
    #1

    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
    
    
    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lilde
      wrote on last edited by
      #2

      Hello,

      I have similar issues, have found a solution ?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved