Open tubzby opened 1 year ago
What's even more strange is that if I run the mp4 example with the same RTSP camera, it never fails!
command:
./target/debug/client mp4 --url RTSP_URL --username USERNAME --password PASSWORD --no-audio --duration 10 out.mp4
Find out that if I wait some time before inputting the SDP from the web, it has a bigger chance of causing this error.
Maybe we can connect WebRTC before connecting to the RTSP stream?
Thank you for your kind and nice work!
I'm testing the webrtc-proxy example, it failed sometimes with my RTSP camera (sometimes works) with messages on the console:
command:
I tried to use Wireshark to analyze the stream, it might link to an invalid RTSP message, the bytes contain 3 RTSP messages, and the last one is invalid:
But it works with ffplay, so I don't know if there is any difference between ffplay and webrtc-proxy.
UPDATE 1: ffplay with Wireshark
It also shows some "RTSP Continuation" messages on Wireshark, which also seems invalid, but it can play anyway: