[desktop] Video recording is not working



  • Hello there.
    I'd like to video recording with usb camera on qml application for linux.
    I use "QML Camera Example declarative-camera".
    https://doc.qt.io/qt-5/qtmultimedia-multimedia-declarative-camera-example.html

    CameraButton {
        text: "Record"
        onClicked: camera.videoRecorder.record()
    }
    

    when I clicked "Record" button then I can see error message on Qt creator's application output window.
    CameraBin error: "Device '/dev/video0' is busy"
    CameraBin error: "Internal data flow error."
    Next I clicked "Stop" button then clicked "Record" button again.
    I can see it.
    CameraBin warning: "Can't record audio fast enough"
    I don't know how to do but sometome I can see it.
    ** (declarative-camera:439): CRITICAL **: No headers or buffers on pad muxer:video_941036892

    I wonder if I have to change setting on linux or something?

    Thanks for any advice.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Please add more details to your post like Qt version, Linux distribution version, device you are using, your computer specs, etc.



  • @SGaist
    thanks for reply!

    more details.
    ・Qt varsion 5.9.1( I tried 5.7.0 but same)
    ・board Colibri iMX6
    ・Linux Kernel 4.1.39
    ・USB camera

    run the program on board.

    thanks.


  • Lifetime Qt Champion

    Is there anything else also accessing /dev/video0 beside your application ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.