mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Add detection of ProRes encoder for auto muxing
Switches container format for automatic muxing to MOV when ProRes-type encoder is used.
This commit is contained in:
parent
59a126dcf4
commit
b8681356e1
|
@ -7168,7 +7168,16 @@ void OBSBasic::AutoRemux(QString input, bool no_show)
|
|||
|
||||
QString output = input;
|
||||
output.resize(output.size() - suffix.size());
|
||||
output += "mp4";
|
||||
|
||||
const obs_encoder_t *videoEncoder =
|
||||
obs_output_get_video_encoder(outputHandler->fileOutput);
|
||||
const char *codecName = obs_encoder_get_codec(videoEncoder);
|
||||
|
||||
if (strcmp(codecName, "prores") == 0) {
|
||||
output += "mov";
|
||||
} else {
|
||||
output += "mp4";
|
||||
}
|
||||
|
||||
OBSRemux *remux = new OBSRemux(QT_TO_UTF8(path), this, true);
|
||||
if (!no_show)
|
||||
|
|
Loading…
Reference in a new issue