diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-18 01:13:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-18 01:13:24 -0400 |
| commit | aa8c3d9cf0dd7d10f712c6a81cb5a3b3c7658e92 (patch) | |
| tree | 178317c91a0a678c81708ad8af385f9888a1ea0e | |
| parent | 7aa9e108214356aa26e9c6b798c9a41744d539b6 (diff) | |
new webm settings
| -rw-r--r-- | MediaBrowser.Api/Playback/Progressive/VideoService.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs index 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.Progressive format = " -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.Progressive keyFrame, GetMapArgs(state), GetVideoArguments(state, videoCodec), + threads, GetAudioArguments(state), format, outputPath @@ -242,7 +245,7 @@ namespace MediaBrowser.Api.Playback.Progressive // webm if (videoCodec.Equals("libvpx", StringComparison.OrdinalIgnoreCase)) { - args = "-quality realtime -profile:v 1 -slices 4"; + args = "-quality realtime -profile:v 0 -slices 4"; } // asf/wmv |
