Video record from camera on windows10
-
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
-
@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? -
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))); -
@Dimple
U did not answer my question
IfisCaptureModeSupported(QCamera::CaptureVideo)
returnsfalse
then tab 1 is disabled http://doc.qt.io/qt-5/qtabwidget.html#setTabEnabled
Edit: This is a bug in Windows withQCamera::CaptureVideo
https://stackoverflow.com/questions/29638137/why-qcameracapturevideo-isnt-supported -
@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?
-
@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