aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 00:52:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 00:52:28 -0400
commit6ef57587133f3fbfee235bbd588c27e506fe92d8 (patch)
tree88a32d70ef8c3a7671b903397da18456e00e4d21
parent74d1ffd67689c5203870dbdbfa21a0e4d79f6db1 (diff)
add support for input audio/video sync
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs10
-rw-r--r--MediaBrowser.Api/Playback/StreamState.cs3
2 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 3993866cf..624c3eb0e 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -1503,6 +1503,16 @@ namespace MediaBrowser.Api.Playback
inputModifier += " -acodec " + state.InputAudioCodec;
}
+ if (!string.IsNullOrEmpty(state.InputAudioSync))
+ {
+ inputModifier += " -async " + state.InputAudioSync;
+ }
+
+ if (!string.IsNullOrEmpty(state.InputVideoSync))
+ {
+ inputModifier += " -vsync " + state.InputVideoSync;
+ }
+
if (state.ReadInputAtNativeFramerate)
{
inputModifier += " -re";
diff --git a/MediaBrowser.Api/Playback/StreamState.cs b/MediaBrowser.Api/Playback/StreamState.cs
index 961ac0a2a..88daf9f62 100644
--- a/MediaBrowser.Api/Playback/StreamState.cs
+++ b/MediaBrowser.Api/Playback/StreamState.cs
@@ -64,6 +64,9 @@ namespace MediaBrowser.Api.Playback
public string AudioSync = "1";
public string VideoSync = "vfr";
+ public string InputAudioSync { get; set; }
+ public string InputVideoSync { get; set; }
+
public bool DeInterlace { get; set; }
public bool ReadInputAtNativeFramerate { get; set; }