The Free Software Media System - Server Backend & API
Add movflags to mp4 audio encoding
James Harveyc70508b08984
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex a844e64433..d08a5116a0 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -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);