mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.8k stars 581 forks source link

Webrtc integrated play RTSP #665

Open bingjue123 opened 4 months ago

bingjue123 commented 4 months ago

I am testing Webrtc-streamer to play RTSP video streams;

The RSTP video stream of live video can be played normally, and the video stream address is as follows: "rtsp://admin:tww001218@192.168.105.150:554/dac/realplay/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?streamform=rtp"

However, the RSTP video stream that plays the video playback cannot be played normally, and the video stream address is as follows: "rtsp://admin:tww001218@192.168.105.150:554/dac/playback/camera/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?starttime=20240217T050658Z&endtime=20240217T061853Z&name=00000004992000000&size=1064651716&streamform=rtp" image 提示

bingjue123 commented 4 months ago

In VLC test RTSP address can be played normally

mpromonet commented 4 months ago

Hi @bingjue123,

Only starttime & ntptime are decoded from rtsp url. Increasing loglevel should help you. It send a first PLAY, then a PAUSE, then a 2nd PLAY, I don't really understand why not just send PLAY with starttime... To debug you could use live555helpertest

Best Regards, Michel.

bingjue123 commented 4 months ago

This is the RTSP returned by the monitor interface, and I can't change it; image

marcelimati commented 3 months ago

try changing & to ? in url, it should work Result: rtsp://admin:tww001218@192.168.105.150:554/dac/playback/camera/2E691C9D-2E85-4A70-9CBA-482CF5461F9C1/MAIN/TCP?starttime=20240217T050658Z?endtime=20240217T061853Z?name=00000004992000000?size=1064651716?streamform=rtp