diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-06-18 13:23:37 +0200 |
---|---|---|
committer | André de la Rocha <andre.rocha@qt.io> | 2021-06-25 09:05:31 +0200 |
commit | 445afe2776310471e045fff6f679188504fd3aac (patch) | |
tree | b2c6c69532710993c6f1da28cd177c14ba3bb9e9 /examples/multimediawidgets/camera/videosettings.cpp | |
parent | 76be6a37a211435f2e69d240a1b25b353eba2c11 (diff) |
Clean up file format and audio profile handling
Remove the ALAC file format as it is actually always
stored in an mp4 container. While the same is true for
AAC, keep the format, as it's often used with it's own
extension.
Rename ASF to WMV and add WMA as a file format as those
usually have different extensions.
Add WMA and WMV codecs, as the corresponding file formats make
little sense without supporting the codecs that are being used.
Clean up the gstreamer implementation and test that audio only
recording works for all combinations.
Change-Id: I7c76add8f02eba646741c6c2a870e8af9b9fc51b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/multimediawidgets/camera/videosettings.cpp')
-rw-r--r-- | examples/multimediawidgets/camera/videosettings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/multimediawidgets/camera/videosettings.cpp b/examples/multimediawidgets/camera/videosettings.cpp index 03c4f74c1..858a18b22 100644 --- a/examples/multimediawidgets/camera/videosettings.cpp +++ b/examples/multimediawidgets/camera/videosettings.cpp @@ -159,6 +159,7 @@ void VideoSettings::applySettings() format.setAudioCodec(boxValue(ui->audioCodecBox).value<QMediaFormat::AudioCodec>()); format.setVideoCodec(boxValue(ui->videoCodecBox).value<QMediaFormat::VideoCodec>()); + mediaRecorder->setMediaFormat(format); mediaRecorder->setQuality(QMediaRecorder::Quality(ui->qualitySlider->value())); mediaRecorder->setAudioSampleRate(ui->audioSampleRateBox->value()); mediaRecorder->setVideoResolution(boxValue(ui->videoResolutionBox).toSize()); |