diff --git a/internal/clientrtsp/client.go b/internal/clientrtsp/client.go index 079e6430..5b349bc1 100644 --- a/internal/clientrtsp/client.go +++ b/internal/clientrtsp/client.go @@ -297,6 +297,10 @@ func (c *Client) run() { reqPath, _ := base.PathSplitQuery(pathAndQuery) + // path can end with a slash, remove it + // this is needed to support reading mpegts with ffmpeg + reqPath = strings.TrimSuffix(reqPath, "/") + if c.path != nil && reqPath != c.path.Name() { return &base.Response{ StatusCode: base.StatusBadRequest,