aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-28 10:48:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-28 10:48:56 -0400
commit8b9d333608b18dfde8278df30a90dfc9daeb42ff (patch)
treed7a0b8739fdd6896d045a5d5be63b30f5fb7fa84
parent071e13fb4cb0543ea17836a3969d536842860a91 (diff)
added profile and level to progressive streaming
-rw-r--r--MediaBrowser.Api/Playback/Progressive/VideoService.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
index 7a490cc70..d6514bacb 100644
--- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
@@ -156,6 +156,17 @@ namespace MediaBrowser.Api.Playback.Progressive
}
args += " -vsync vfr";
+
+ if (!string.IsNullOrEmpty(state.VideoRequest.Profile))
+ {
+ args += " -profile:v " + state.VideoRequest.Profile;
+ }
+
+ if (!string.IsNullOrEmpty(state.VideoRequest.Level))
+ {
+ args += " -level 3 " + state.VideoRequest.Level;
+ }
+
}
else if (IsH264(state.VideoStream))
{