Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem running the QCamera
QtWS25 Last Chance

Problem running the QCamera

Scheduled Pinned Locked Moved General and Desktop
videograbberqcamera
5 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    Torben
    wrote on last edited by
    #1

    Hello,

    I'm trying to set up a simple VideoGrabber. But the VideoGrabber does not work.
    The VideoGrabber will be found, so if I print the device description it gives me the information.

    The code which does this is actually very small:

    QCamera * camera = new QCamera();
    
    QCameraViewfinder * viewfinder = new QCameraViewfinder();
    viewfinder->show();
    camera->setViewfinder(viewfinder);
    
    camera->start();
    

    It returns with the following error message:
    failed to renderstream -2147024809
    failed to openStream()
    Stream did not open

    As VideoGrabber (the one which makes problems) I have one from Digitus.
    On the other hand I have a working VideoGrabber, which is from EasyCAP. But this VideoGrabber I can just use for testing. I need the one from Digitus running, so I don't have the possiblity to change the VideoGrabber.

    Any suggestions what I can do?

    I also looked up, how I could change which input device it is using, but I didn't found sth. to this. So I think it uses the S-Video input instead of the CVBS signal. Any suggestions how I could change this?

    I'm running the Qt Version 5.1 on a Windows 7.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Might be a silly question but did you check whether your Digitus grabber works properly outside of Qt ? Is it supported by Windows WMF ? DirectX ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Might be a silly question but did you check whether your Digitus grabber works properly outside of Qt ? Is it supported by Windows WMF ? DirectX ?

        T Offline
        T Offline
        Torben
        wrote on last edited by
        #3

        Thx for your quick response.

        Yes it is working outside of Qt. For example it runs in the vlc Player. But there is also the problem that I have to set the device to CVBS and do not use the default S-Video input. I'm not sure how I could change this by Qt?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What devices does QCameraInfo::availableCameras() return ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          0
          • SGaistS SGaist

            What devices does QCameraInfo::availableCameras() return ?

            T Offline
            T Offline
            Torben
            wrote on last edited by
            #5

            So I don't have QCameraInfo cause I use Qt 5.1.
            But QCamera::availableDevices() gives me the same information, I think.

            It returns the following:
            @device:pnp:\?\usb#vid_eb1a&pid_2821&mi_00#6&18118bcd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{54353d15-e717-4d94-b574-685ce1a209e9}

            As the device description it returns:
            USB 2821 Device

            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