bluenviron / gortsplib

RTSP 1.0 client and server library for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to eliminate incorrect SDP

FireTiger23 opened this issue · comments

There is a device that, after restarting, the SDP of the stream is incorrect, and the stream can be pulled normally, but there is no picture playing

Correct SDP
image

Abnormal SDP

image

SDP incorrect, streamed successfully, no screen played。

Can we discard this SDP and return a failure for the client to pull the stream again

Hello,
You're perfectly right about checking the consistency of incoming tracks, the problem is that there are a lot of metadata tracks that are advertised in a way very similar to the one of the invalid video track you posted, and these tracks are valid.

I'll add a consistency check on non-metadata tracks, but if it causes troubles i'll be forced to perform a roll-back.

added in MediaMTX v1.0.1