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. Video record from camera on windows10
QtWS25 Last Chance

Video record from camera on windows10

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 2.6k 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.
  • D Offline
    D Offline
    Dimple
    wrote on last edited by Dimple
    #1

    Hi guys ,,
    can anybody please help me to solve this problem,,,video option(video button) is not working & im not able to do record ,,,,does it support to windows & mine qt version is 5.11.2,,mingw32 ??

    https://doc.qt.io/qt-5.11/qtmultimedia-multimediawidgets-camera-example.html

    RatzzR 1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Dimple
      Is it duplicate of https://forum.qt.io/topic/98368/video-record-tab-not-enabling-in-camera-example-project ?

      --Alles ist gut.

      1 Reply Last reply
      0
      • D Dimple

        Hi guys ,,
        can anybody please help me to solve this problem,,,video option(video button) is not working & im not able to do record ,,,,does it support to windows & mine qt version is 5.11.2,,mingw32 ??

        https://doc.qt.io/qt-5.11/qtmultimedia-multimediawidgets-camera-example.html

        RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @Dimple said in Video record from camera on windows10:

        video option(video button) is not working

        For me its working :)

        does it support to windows

        Yes.

        mine qt version is 5.11.2,,mingw32 ??

        Yes.

        Do you have camera in the system you run your sample?
        Do you see your photo(if you are infront of the example running system) when you launch this example?

        --Alles ist gut.

        1 Reply Last reply
        1
        • D Offline
          D Offline
          Dimple
          wrote on last edited by Dimple
          #4

          yes i can see my image thats not a problem to me ,,when i change here numbers(1 & 0) then either i can click on video button or image button ,,,,according to this code no need to change numbers ,,,automatically tabs should be vissible but nope ,,,even after clicked on video button there are 3 options no one works !!!!! are you able to record video??
          ui->captureWidget->setTabEnabled(1, (m_camera->isCaptureModeSupported(QCamera::CaptureStillImage)));
          ui->captureWidget->setTabEnabled(0, (m_camera->isCaptureModeSupported(QCamera::CaptureVideo)));

          RatzzR 1 Reply Last reply
          0
          • D Dimple

            yes i can see my image thats not a problem to me ,,when i change here numbers(1 & 0) then either i can click on video button or image button ,,,,according to this code no need to change numbers ,,,automatically tabs should be vissible but nope ,,,even after clicked on video button there are 3 options no one works !!!!! are you able to record video??
            ui->captureWidget->setTabEnabled(1, (m_camera->isCaptureModeSupported(QCamera::CaptureStillImage)));
            ui->captureWidget->setTabEnabled(0, (m_camera->isCaptureModeSupported(QCamera::CaptureVideo)));

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by Ratzz
            #5

            @Dimple said in Video record from camera on windows10:

            isCaptureModeSupported(QCamera::CaptureVideo))

            What does this return?

            --Alles ist gut.

            D 1 Reply Last reply
            0
            • D Offline
              D Offline
              Dimple
              wrote on last edited by
              #6

              @Ratzz said in Video record from camera on windows10:

              isCaptureModeSupported

              here when i click on image button ,,at the same time video button should be visible but i can click on image button only
              0_1547129056711_1547128927208.JPEG 0_1547129068870_1547128927358.JPEG

              RatzzR 1 Reply Last reply
              0
              • D Dimple

                @Ratzz said in Video record from camera on windows10:

                isCaptureModeSupported

                here when i click on image button ,,at the same time video button should be visible but i can click on image button only
                0_1547129056711_1547128927208.JPEG 0_1547129068870_1547128927358.JPEG

                RatzzR Offline
                RatzzR Offline
                Ratzz
                wrote on last edited by Ratzz
                #7

                @Dimple
                U did not answer my question
                IfisCaptureModeSupported(QCamera::CaptureVideo) returns falsethen tab 1 is disabled http://doc.qt.io/qt-5/qtabwidget.html#setTabEnabled
                Edit: This is a bug in Windows with QCamera::CaptureVideo https://stackoverflow.com/questions/29638137/why-qcameracapturevideo-isnt-supported

                --Alles ist gut.

                1 Reply Last reply
                1
                • RatzzR Ratzz

                  @Dimple said in Video record from camera on windows10:

                  isCaptureModeSupported(QCamera::CaptureVideo))

                  What does this return?

                  D Offline
                  D Offline
                  Dimple
                  wrote on last edited by
                  #8

                  @Ratzz said in Video record from camera on windows10:

                  @Dimple said in Video record from camera on windows10:

                  isCaptureModeSupported(QCamera::CaptureVideo))

                  What does this return?

                  0_1547181530958_1547181391085.JPEG

                  RatzzR 1 Reply Last reply
                  0
                  • D Dimple

                    @Ratzz said in Video record from camera on windows10:

                    @Dimple said in Video record from camera on windows10:

                    isCaptureModeSupported(QCamera::CaptureVideo))

                    What does this return?

                    0_1547181530958_1547181391085.JPEG

                    RatzzR Offline
                    RatzzR Offline
                    Ratzz
                    wrote on last edited by
                    #9

                    @Dimple

                    Can you check with

                    qDebug() << "QCamera CaptureVideo mode"<< camera->isCaptureModeSupported(QCamera::CaptureVideo);
                    

                    --Alles ist gut.

                    1 Reply Last reply
                    1
                    • D Offline
                      D Offline
                      Dimple
                      wrote on last edited by
                      #10

                      @Ratzz said in Video record from camera on windows10:

                      qDebug() << "QCamera CaptureVideo mode"<< camera->isCaptureModeSupported(QCamera::CaptureVideo);
                      thanks for ur reply
                      it returns false ?

                      RatzzR 1 Reply Last reply
                      0
                      • D Dimple

                        @Ratzz said in Video record from camera on windows10:

                        qDebug() << "QCamera CaptureVideo mode"<< camera->isCaptureModeSupported(QCamera::CaptureVideo);
                        thanks for ur reply
                        it returns false ?

                        RatzzR Offline
                        RatzzR Offline
                        Ratzz
                        wrote on last edited by
                        #11

                        @Dimple said in Video record from camera on windows10:

                        it returns false ?

                        So the video tab is disabled.

                        --Alles ist gut.

                        1 Reply Last reply
                        1
                        • D Offline
                          D Offline
                          Dimple
                          wrote on last edited by Dimple
                          #12

                          yes,, what is the solution for this ??

                          T 1 Reply Last reply
                          0
                          • D Dimple

                            yes,, what is the solution for this ??

                            T Offline
                            T Offline
                            thippu
                            wrote on last edited by thippu
                            #13

                            @Dimple I was having the same issue and I was not able to record the video on Windows machines but I did also try on Linux machine it worked.
                            I think we can't able to record a video on Windows machines using a qt.
                            these may help: https://forum.qt.io/topic/74588/record-sound-and-video-using-qmediarecorder
                            https://forum.qt.io/topic/97786/unable-to-run-qt-camera-example-on-qt-5-9-1

                            1 Reply Last reply
                            2

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved