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
3.01k stars 606 forks source link

RTSP Video display screen #708

Open GuanTu opened 3 months ago

GuanTu commented 3 months ago

Describe the bug Use /webrtcstreamer.html to access the RTSP video address. The video page of the browser will display a flower screen. See the attached pictures and logs for more information

Screenshots image1

Logs 192.168.16.103-GIS_2024-07-25_9_10_35.log

Desktop (please complete the following information):

PS: English is not my native language. Please forgive me if there are any mistakes through translation. :)

GuanTu commented 3 months ago

Playing RTSP addresses using vlc is ok

wzk1583456343 commented 2 weeks ago

Hello, have you solved this problem? I also encountered the same problem.

mpromonet commented 1 week ago

Hi @GuanTu

In your log, we see:

[74879:813][315] (video_stream_encoder.cc:1517): Same/old NTP timestamp (1721869940461 <= 1721869940461) for incoming frame. Dropping.
[74879:813][315] (frame_cadence_adapter.cc:1001): Incoming frame timestamp is not monotonically increasing current: 1721869940461000 last: 1721869940461000

This might be origin of your problem.

You can try to remove the '-o' to not forward encoded stream, and then transcode it.

Best Regards, Michel

P.S. English is not my native language. Please forgive me if there are any mistakes through translation. :)

GuanTu commented 1 week ago

Hello, have you solved this problem? I also encountered the same problem.

@wzk1583456343 Sorry, I did not find a solution to this problem, you can refer to mpromonet's reply

GuanTu commented 1 week ago

Hi @GuanTu

In your log, we see:

[74879:813][315] (video_stream_encoder.cc:1517): Same/old NTP timestamp (1721869940461 <= 1721869940461) for incoming frame. Dropping.
[74879:813][315] (frame_cadence_adapter.cc:1001): Incoming frame timestamp is not monotonically increasing current: 1721869940461000 last: 1721869940461000

This might be origin of your problem.

You can try to remove the '-o' to not forward encoded stream, and then transcode it.

Best Regards, Michel

P.S. English is not my native language. Please forgive me if there are any mistakes through translation. :)

Thank you for your reply. If there is a chance in the future, I will try it

wzk1583456343 commented 1 week ago

After I deleted the -o parameter, half of the video was no longer mosaic, but I could clearly see a dividing line between the upper and lower parts of the video. This problem would be even more obvious if the video is in motion. Is there any solution for this? Thank you very much.