Video record from camera on windows10
-
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))); -
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))); -
@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
@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 -
@Dimple said in Video record from camera on windows10:
isCaptureModeSupported(QCamera::CaptureVideo))
What does this return?
@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?
-
@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?
-
@Ratzz said in Video record from camera on windows10:
qDebug() << "QCamera CaptureVideo mode"<< camera->isCaptureModeSupported(QCamera::CaptureVideo);
thanks for ur reply
it returns false ? -
@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