Add movflags to mp4 audio encoding
This commit is contained in:
parent
5612091df3
commit
c70508b089
|
@ -5786,6 +5786,22 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
}
|
||||
}
|
||||
|
||||
// Copy the movflags from GetProgressiveVideoFullCommandLine
|
||||
// See # for explanation on why this is needed
|
||||
var mp4ContainerNames = new HashSet<String> {
|
||||
"mp4",
|
||||
"m4a",
|
||||
"m4p",
|
||||
"m4b",
|
||||
"m4r",
|
||||
"m4v",
|
||||
};
|
||||
|
||||
if (mp4ContainerNames.Contains(state.OutputContainer.ToLower()))
|
||||
{
|
||||
audioTranscodeParams.Add("-movflags frag_keyframe+empty_moov+delay_moov");
|
||||
}
|
||||
|
||||
var threads = GetNumberOfThreads(state, encodingOptions, null);
|
||||
|
||||
var inputModifier = GetInputModifier(state, encodingOptions, null);
|
||||
|
|
Loading…
Reference in New Issue
Block a user