UI: Remux fragmented containers to regular counterparts
Also disables record-as-MKV when using fmp4.
This commit is contained in:
parent
8e1cae4f02
commit
2560187611
3 changed files with 24 additions and 16 deletions
|
|
@ -7401,8 +7401,13 @@ void OBSBasic::AutoRemux(QString input, bool no_show)
|
|||
const obs_encoder_t *videoEncoder =
|
||||
obs_output_get_video_encoder(outputHandler->fileOutput);
|
||||
const char *codecName = obs_encoder_get_codec(videoEncoder);
|
||||
string format = config_get_string(
|
||||
config, isSimpleMode ? "SimpleOutput" : "AdvOut", "RecFormat2");
|
||||
|
||||
if (strcmp(codecName, "prores") == 0) {
|
||||
/* Retain original container for fMP4/fMOV */
|
||||
if (format == "fmp4" || format == "fmov") {
|
||||
output += "remuxed." + suffix;
|
||||
} else if (strcmp(codecName, "prores") == 0) {
|
||||
output += "mov";
|
||||
} else {
|
||||
output += "mp4";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue