Merge pull request #2781 from puenktchen/patch-2
Improve playback of RTSP streams
This commit is contained in:
commit
ab3e79e6aa
|
@ -1567,6 +1567,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
inputModifier += " " + GetFastSeekCommandLineParameter(state.BaseRequest);
|
||||
inputModifier = inputModifier.Trim();
|
||||
|
||||
if (state.InputProtocol == MediaProtocol.Rtsp)
|
||||
{
|
||||
inputModifier += " -rtsp_transport tcp";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(state.InputAudioSync))
|
||||
{
|
||||
|
@ -1578,7 +1583,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
inputModifier += " -vsync " + state.InputVideoSync;
|
||||
}
|
||||
|
||||
if (state.ReadInputAtNativeFramerate)
|
||||
if (state.ReadInputAtNativeFramerate && state.InputProtocol != MediaProtocol.Rtsp)
|
||||
{
|
||||
inputModifier += " -re";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user