Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtMultimedia can't capture video from camera: libv4lconvert: warning more framesizes then I can handle!
Forum Updated to NodeBB v4.3 + New Features

QtMultimedia can't capture video from camera: libv4lconvert: warning more framesizes then I can handle!

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 258 Views
  • 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.
  • R Offline
    R Offline
    r3d9u11
    wrote on last edited by r3d9u11
    #1

    Hello. I just faced the trouble: when I'm trying to capture video from camera the app is freezing, I'm watching log messages:

    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    libv4lconvert: warning more framesizes then I can handle!
    

    Here is my QML:

    VideoOutput {
        source: camera
        anchors.fill: parent
        autoOrientation: true
        fillMode: VideoOutput.Stretch
    
        Camera {
            id: camera
            deviceId: QtMultimedia.availableCameras[0].deviceId
            captureMode: Camera.CaptureVideo
       }
    }
    

    field QtMultimedia.availableCameras has one device with id "video0" and name "/dev/video0".

    it also works fine if try run test command:

    gst-launch-1.0 imxv4l2videosrc ! imxeglvivsink borderless-window="true" force-aspect-ratio="false"
    

    I'm trying to use Qt & QtMultimedia 5.12 compiled with video4linux and gstreamer-1.0 support.

    What I'm doing wrong?
    Thanks!

    R 1 Reply Last reply
    0
    • R r3d9u11

      Hello. I just faced the trouble: when I'm trying to capture video from camera the app is freezing, I'm watching log messages:

      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      libv4lconvert: warning more framesizes then I can handle!
      

      Here is my QML:

      VideoOutput {
          source: camera
          anchors.fill: parent
          autoOrientation: true
          fillMode: VideoOutput.Stretch
      
          Camera {
              id: camera
              deviceId: QtMultimedia.availableCameras[0].deviceId
              captureMode: Camera.CaptureVideo
         }
      }
      

      field QtMultimedia.availableCameras has one device with id "video0" and name "/dev/video0".

      it also works fine if try run test command:

      gst-launch-1.0 imxv4l2videosrc ! imxeglvivsink borderless-window="true" force-aspect-ratio="false"
      

      I'm trying to use Qt & QtMultimedia 5.12 compiled with video4linux and gstreamer-1.0 support.

      What I'm doing wrong?
      Thanks!

      R Offline
      R Offline
      r3d9u11
      wrote on last edited by r3d9u11
      #2

      @r3d9u11 Ok, problem was solved
      Just need to export variable with correcnt video source: export QT_GSTREAMER_CAMERABIN_VIDEOSRC=imxv4l2videosrc

      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