Climax
Climax

Reputation: 673

QMediaRecorder keeps recording theora/ogg

No matter what QVideoSettings options I pass in, the resulting video file is appended a .ogg and the codec remains theora. I'm on ubuntu 17.04, running Qt5.9.1.

Am I doing something wrong?

QVideoEncoderSettings videoSettings;
videoSettings.setCodec("video/mpeg2"); // Can be anything
videoSettings.setResolution(640,480);
videoSettings.setFrameRate(30.0);
videoSettings.setQuality(QMultimedia::VeryHighQuality);
videoSettings.setBitRate(500000);
videoSettings.setEncodingMode(QMultimedia::ConstantQualityEncoding);
m_VideoRecorder->setContainerFormat("video/x-matroska"); // Tried almost all other options
m_VideoRecorder->setVideoSettings(videoSettings);

This also happens on the included camera example...

Upvotes: 1

Views: 395

Answers (0)

Related Questions