fix: rtsp live stream ffprobe timeout (#11279)

This commit is contained in:
Caidy 2024-04-02 21:04:25 +08:00 committed by GitHub
parent 0af101cbf7
commit 4440600379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -463,6 +463,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
extraArgs += " -user_agent " + userAgent;
}
if (request.MediaSource.Protocol == MediaProtocol.Rtsp)
{
extraArgs += " -rtsp_transport tcp+udp -rtsp_flags prefer_tcp";
}
return extraArgs;
}