|
|
@ -1568,6 +1568,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
inputModifier += " " + GetFastSeekCommandLineParameter(state.BaseRequest);
|
|
|
|
inputModifier += " " + GetFastSeekCommandLineParameter(state.BaseRequest);
|
|
|
|
inputModifier = inputModifier.Trim();
|
|
|
|
inputModifier = inputModifier.Trim();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (state.InputProtocol == MediaProtocol.Rtsp)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
inputModifier += " -rtsp_transport tcp";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(state.InputAudioSync))
|
|
|
|
if (!string.IsNullOrEmpty(state.InputAudioSync))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
inputModifier += " -async " + state.InputAudioSync;
|
|
|
|
inputModifier += " -async " + state.InputAudioSync;
|
|
|
@ -1578,7 +1583,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
inputModifier += " -vsync " + state.InputVideoSync;
|
|
|
|
inputModifier += " -vsync " + state.InputVideoSync;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (state.ReadInputAtNativeFramerate)
|
|
|
|
if (state.ReadInputAtNativeFramerate && state.InputProtocol != MediaProtocol.Rtsp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
inputModifier += " -re";
|
|
|
|
inputModifier += " -re";
|
|
|
|
}
|
|
|
|
}
|
|
|
|