The Free Software Media System - Server Backend & API
new webm settings
Luke Pulverentiaa8c3d9cf0dd
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.csindex 934b3e6b03..487f3286d7 100644--- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs+++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs@@ -94,7 +94,9 @@ namespace MediaBrowser.Api.Playback.Progressiveformat = " -f mp4 -movflags frag_keyframe+empty_moov";}- return string.Format("{0} {1} -i {2}{3}{4} -threads 0 {5} {6} {7}{8} \"{9}\"",+ var threads = videoCodec.Equals("libvpx", StringComparison.OrdinalIgnoreCase) ? 2 : 0;++ return string.Format("{0} {1} -i {2}{3}{4} {5} {6} -threads {7} {8}{9} \"{10}\"",probeSize,GetFastSeekCommandLineParameter(state.Request),GetInputArgument(video, state.IsoMount),@@ -102,6 +104,7 @@ namespace MediaBrowser.Api.Playback.ProgressivekeyFrame,GetMapArgs(state),GetVideoArguments(state, videoCodec),+ threads,GetAudioArguments(state),format,outputPath@@ -242,7 +245,7 @@ namespace MediaBrowser.Api.Playback.Progressive// webmif (videoCodec.Equals("libvpx", StringComparison.OrdinalIgnoreCase)){- args = "-quality realtime -profile:v 1 -slices 4";+ args = "-quality realtime -profile:v 0 -slices 4";}// asf/wmv