deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.18k stars 284 forks source link

Strange playback behaviour - WebRTC #123

Open DarioL82 opened 2 years ago

DarioL82 commented 2 years ago

We are experiencing this issue while trying to visualize with webRTC a stream generated by our application. What happens is the following: using the integrated web UI to visualize the streams (at localhost:8083) we manage to see the stream playing but only keyframes are displayed. For example, if we set the GoP = 30 only 1 every 30 frames is displayed. We are running the latest release of RTSPtoWEB on Windows and a simple test application wich produces a rtsp stream with ffmpeg API. The application publishes the stream to simple-rtsp-server and then RTSPtoWEB gets the stream from it. The stream produced by the application can be viewed without issues with VLC or FFPLAY. We have made the stream available on internet at this address "rtsp://20.79.252.16:8554/mystream.sdp". The stream is just a couple of colored rectangles and a numeric counter. You can see the behaviour we described by looking at the counter. With the current settings it should display 1 frame every 250. We can share source code of the test application if you need.

Let us know how we can solve this issue, thanks"

deepch commented 2 years ago

fixed https://github.com/deepch/RTSPtoWeb/commit/aee8d357189f92074d126545dcb0e12c074da6a8

DarioL82 commented 2 years ago

Thank you! We got the latest version and everything is working fine.

DarioL82 commented 2 years ago

Hello, we're experiencing again an issue like this one. You can find the stream at this address: rtsp://k2kdev02.southcentralus.cloudapp.azure.com:8554/c0.sdp If we set the GOP to a value greater than 1 it won't play or it plays in an extremely choppy way using WebRTC.

It plays ok with VLC or FFPLAY.

Let us know if you can solve the issue. Thank you!