ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
314 stars 47 forks source link

RTSP broken in certain resolutions, only 30 fps max #56

Open nioroso-x3 opened 1 year ago

nioroso-x3 commented 1 year ago

Hello, good job on this application, finally I can stream a usb mjpeg camera with h264 and very low latency (WebRTC), there are still some bugs though:

*If the video is set to any common resolution like 720p, 480p, the rtsp stream breaks. (See ttached picture). Setting the camera to 1080p and the video to 720p works, but only because for some reason the scaled video resolution becomes 1312x736 instead of the requested 1280x720.

I tested with both software only and hardware decoders in my laptop, the same issue is seen with both.

*When streaming at 60 fps, the rtsp seems to be set at 30. I lowered the resolution back to 240p60 and I can see that WebRTC is at 60 fps, but the rtsp is always just 30 fps.

Screenshot from 2023-04-30 22-39-16 weird_resolution