Open fabianonline opened 7 months ago
This is a bit tricky. For MJPEG you have to tell Restreamer what the framerate is.
In the settings for the channel, you have to open the "Advanced Settings" for the network source and deselect "Read input at native speed" and select "Force input framerate". In the field below set the actual framerate of your MJPEG stream. At the bottom of the "Advanced Setting" select "use_wallclock_as_timestamps".
Same here, using a Wyze Cam V3 with rtsp this cam has only 20FPS @ Day and 15 FPS @ Night (IR) and the Stream is buffering every 10-30 Seconds...
Subject of the issue My source is a MJPEG stream running with 5fps. Ingesting it and outputting it via the player basically works, but somewhere is a problem with the framerate: Basically the player buffers about 10 seconds of video, only to play them back in about 2 seconds. Then it buffers for 8 seconds to get up to 10 seconds of buffer only to play it back in 2 seconds again. I played around with setting different framerates and switching between constant framerate and adaptive framerate and tried the framerate interpolation, but nothing changed.
Your environment The camera is a raspberry Pi cam managed by motionEye, which exports an MJPEG stream at about 5fps. My server running Restreamer v16.13.1 in a docker container is connected via a Wireguard tunnel.
Files The Restreamer process report is attached. report.txt
Steps to reproduce Ingest a MJPEG stream with a framerate of 5fps, I guess.
Awesome ⭐⭐⭐⭐⭐
This is not easily done... but if it would help you, I could probably find a way to achieve this.
Expected behavior The stream should be played back in the player with the correct 5fps.
Actual behavior The stream is played back in the player at 25fps, often stopping to buffer more frames.