mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add support for input audio/video sync
This commit is contained in:
parent
74d1ffd676
commit
6ef5758713
@ -1503,6 +1503,16 @@ namespace MediaBrowser.Api.Playback
|
|||||||
inputModifier += " -acodec " + state.InputAudioCodec;
|
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)
|
if (state.ReadInputAtNativeFramerate)
|
||||||
{
|
{
|
||||||
inputModifier += " -re";
|
inputModifier += " -re";
|
||||||
|
@ -64,6 +64,9 @@ namespace MediaBrowser.Api.Playback
|
|||||||
public string AudioSync = "1";
|
public string AudioSync = "1";
|
||||||
public string VideoSync = "vfr";
|
public string VideoSync = "vfr";
|
||||||
|
|
||||||
|
public string InputAudioSync { get; set; }
|
||||||
|
public string InputVideoSync { get; set; }
|
||||||
|
|
||||||
public bool DeInterlace { get; set; }
|
public bool DeInterlace { get; set; }
|
||||||
|
|
||||||
public bool ReadInputAtNativeFramerate { get; set; }
|
public bool ReadInputAtNativeFramerate { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user