Camerabin camera service: configure default video settings
encodebin doesn't like the encoding profile with ANY container caps, if container and codecs are not specified try to find a commonly used supported combination Change-Id: Icbde042bd17d9682112fb8bbb8f0d506f6ddebe1 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
b6a8c713bc
commit
864ab3a39a
@@ -602,11 +602,9 @@ void tst_QCameraBackend::testVideoRecording()
|
||||
camera->setCaptureMode(QCamera::CaptureVideo);
|
||||
|
||||
QVideoEncoderSettings videoSettings;
|
||||
videoSettings.setResolution(640, 480);
|
||||
videoSettings.setResolution(320, 240);
|
||||
recorder.setVideoSettings(videoSettings);
|
||||
|
||||
recorder.setContainerFormat("ogg");
|
||||
|
||||
QCOMPARE(recorder.status(), QMediaRecorder::UnloadedStatus);
|
||||
|
||||
camera->start();
|
||||
|
||||
Reference in New Issue
Block a user