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. Set pixelformat of USB camera to MJPG

Set pixelformat of USB camera to MJPG

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 2.4k 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

    Hi all,

    is it possible to set the pixelformat of a usb camera to MJPG?
    At the moment the camera's pixelformat is YUVU.
    I am using Ubuntu 16.

    Kind regards,
    MHermann

    raven-worxR 1 Reply Last reply
    0
    • M MHermann

      Hi all,

      is it possible to set the pixelformat of a usb camera to MJPG?
      At the moment the camera's pixelformat is YUVU.
      I am using Ubuntu 16.

      Kind regards,
      MHermann

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @MHermann
      how is this related to Qt?!

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @MHermann
        how is this related to Qt?!

        M Offline
        M Offline
        MHermann
        wrote on last edited by MHermann
        #3

        @raven-worx : The question is, if it is possible to do these settings out of a Qt application.

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

          Hi,

          Do you have any API to use with that camera that allows that change of settings ?

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Do you have any API to use with that camera that allows that change of settings ?

            M Offline
            M Offline
            MHermann
            wrote on last edited by
            #5

            @SGaist : No. At the moment I don't have this...

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

              What camera is that ?

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                What camera is that ?

                M Offline
                M Offline
                MHermann
                wrote on last edited by
                #7

                @SGaist : Sorry for the late answer...
                I am using a ELP-USBFHD01M-L170.

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

                  One possible way is to use the v4l2-ctl --set-fmt-video command

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

                  M 1 Reply Last reply
                  2
                  • SGaistS SGaist

                    One possible way is to use the v4l2-ctl --set-fmt-video command

                    M Offline
                    M Offline
                    MHermann
                    wrote on last edited by
                    #9

                    @SGaist : You mean starting the a separate process and then use v4l2-ctl --set-fmt-video?

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

                      That's just quick way to get you up and running.

                      You can try to get the QCameraCaptureBufferFormatControl from your QCamera object and see if you can modify what you want from there.

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

                      M 1 Reply Last reply
                      2
                      • SGaistS SGaist

                        That's just quick way to get you up and running.

                        You can try to get the QCameraCaptureBufferFormatControl from your QCamera object and see if you can modify what you want from there.

                        M Offline
                        M Offline
                        MHermann
                        wrote on last edited by
                        #11

                        @SGaist : Ok. Thanks. I will check this.

                        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