Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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!



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



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


Log in to reply