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. How to stop qml camera and free ressource correctly?
Forum Updated to NodeBB v4.3 + New Features

How to stop qml camera and free ressource correctly?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 203 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by MHermann
    #1

    Hello,

    I am using qml camera and videoOutput to view live streams of multiple usb webcams.
    I start the cameras one by one. I do not use multiple cameras at the same time.

    Now I recognized that after stopping a camera via the stop() method of qml camera, that the resource, e.g. /dev/video0, in Raspbian is still in use.

    lsof /dev/video0
    COMMAND  PID   USER   FD    TYPE  DEVICE SIZE/OFF NODE NAME
    app      901   pi     33u   CHR   81,1   0t0      9580 /dev/video0
    
    

    What do I have to do in my application to free this device completey? Is the stop() method of the qml camera not sufficient?

    Kind regards,
    MHermann

    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