Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved Selecting Input Channel for QCamera

    General and Desktop
    2
    3
    674
    Loading More Posts
    • 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.
    • K
      kkrizka last edited by

      Hi all,

      I am using a Hauppauge ImpactVCB model 558 video capture card to capture the output of several analogue cameras on Linux. This card has 4 input channels (3 RCA, 1 s-video). On Linux, the card shows up as a single /dev/videoX device and can be access using V4L2. The required channel can be selected using the "input" setting. I've tested it using mplayer and I see the expected image on two of the channels. So I know the card works. I've used the following command for this test:

      mplayer tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video0:input=0

      Next I would like to capture the video using the QCamera class, so I can analyse the image using Qt. Qt detects the camera at /dev/video0 and correctly shows the image on the input channel 0. However I do not see an option in the class to select a different input channel. Is it possible to change such settings (input channel, NTSC vs PAL) of a camera using the QCamera class?

      --
      Karol Krizka

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I might be wrong but I have a doubt about that.

        Out of curiosity, do you have the equivalent line for GStreame ?

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

        K 1 Reply Last reply Reply Quote 0
        • K
          kkrizka @SGaist last edited by

          @SGaist, I do not have an equivalent line for gstreamer. I looked at the output of gst-inspect v4l2src, but don't see the input property there. I can change the norm there though.

          I've ended up implementing the reading from the capture card using the V4L2 functions and converting the output to an QImage.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post