QMediaRecorder: No supported audio or video codecs on Desktop build
-
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: 0I 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. :)
-
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. -
Hello.
I seem to be having the same problem. Did any of you found a solution for this?
Thanks in advance.
-
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/.
-
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?
-
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?