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. QMediaRecorder: No supported audio or video codecs on Desktop build
Forum Updated to NodeBB v4.3 + New Features

QMediaRecorder: No supported audio or video codecs on Desktop build

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 4.2k Views 1 Watching
  • 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
    millibyte
    wrote on last edited by
    #1

    Hi, I'm trying to use QCamera and QMediaRecorder from the QtMultimediaKit to record video from a webcamera. I'm using a recent build of QtMobility 1.2.0, built for Desktop. I'm a newbie at using the QtMultimediaKit, so am I doing anything obviously wrong in the code below?

    @
    QCamera * camera = new QCamera;
    QCameraViewfinder * viewFinder = new QCameraViewfinder();
    camera->setViewfinder(viewFinder);
    mainLayout->addWidget(viewFinder);
    viewFinder->show();
    camera->setCaptureMode(QCamera::CaptureVideo);
    camera->start();

    recorder = new QMediaRecorder(camera);
    qDebug() << "Supported video codecs:" << recorder->supportedVideoCodecs();
    qDebug() << "No. of supported video codecs:" << recorder->supportedVideoCodecs().count();
    qDebug() << "Supported audio codecs:" << recorder->supportedAudioCodecs();
    qDebug() << "No. of supported audio codecs:" << recorder->supportedAudioCodecs().count();
    

    @

    This does bring up the viewfinder, so I know the camera is working, but it returns the following disappointing debug results:

    Supported video codecs: ()
    No. of supported video codecs: 0
    Supported audio codecs: ()
    No. of supported audio codecs: 0

    I know that I have several codecs available on my system, a Win7 64 bit laptop.
    Also when I call recorder->record(), nothing happens (that I can tell).
    It seems that QtMobility support for Desktop is not really huge, and it seems not a lot of people use it, but I would love to be able to use Qt for this application. Any pointers on how to make it work? Or other ways to record video using Qt?

    Any help appreciated. :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      snball
      wrote on last edited by
      #2

      The standard example of video works, but I can not select a file format and resolution settings. I can not capture photo .Video tab is not active.

      When i try to create my program, I have same problem like millibyte . I can't find what wrong. I try record video, but no record created in result.

      Somebody help us.

      I use windows 7 x64 ,
      Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) .
      And i beginner in programming.
      sory for my english.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Solidus
        wrote on last edited by
        #3

        Hello.

        I seem to be having the same problem. Did any of you found a solution for this?

        Thanks in advance.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Solidus
          wrote on last edited by
          #4

          It seems the problem is that the recording is still not working for windows due to a plugin change not yet fully implemented, as explained "here":http://qt-project.org/doc/qt-5/qtmultimedia-windows.html

          I tested it on a mac and it worked fine. To fix this on windows I used the "QtMEL library":http://kibsoft.ru/.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nstoker
            wrote on last edited by
            #5

            I'm trying to get recording working using OSX Yosemite with Qt 5.4 and have hit the no audio/video codecs as listed above.

            Interestingly, the QAudioRecorder will return codecs, but QMediaRecorder does not.

            Has there been a reversion in the library code, perhaps?

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nstoker
              wrote on last edited by
              #6

              I'm trying to get recording working using OSX Yosemite with Qt 5.4 and have hit the no audio/video codecs as listed above.

              Interestingly, the QAudioRecorder will return codecs, but QMediaRecorder does not.

              Has there been a reversion in the library code, perhaps?

              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