Allows to display in Gladys the RTSP flow of an IP camera through the "ffmpeg-jsmpeg" server.
-
Add this module to Gladys:
- Name:
Gladys-Rtsp
- Version:
0.1.0
- URL:
https://github.com/piznel/gladys-rtsp.git
- slug:
rtsp
- Name:
-
Restart Gladys.
-
You can now add the box "box-Camera Rtsp-title".
-
Settings :
To save your settings, click on the gearwheel of the box:
4 parameters are to be registered:
- IP address of the machine where the "ffmpeg-jsmpeg" server is running.
- Video stream broadcast port by the server (default 8082)
- Address of your camera's video stream, in "rtsp" format
- desired quality level, from 1 (high quality) to 30 (low quality)
Remarks :
Performance depends heavily on the machine running the server.
On a Raspberry RPi 3, the server microprocessor load is 30 to 50%.
The stability of the flow depends strongly on the quality of your IP camera: a "clone" at 20 € does not have much to do with a "brand" camera at 80 €.
How to improve the flow?
-
Reduce the resolution of your camera:
Often, cameras provide 2 streams- a high-resolution flow
- a low-resolution flow
Try the low-resolution flow.
-
Increase the quality of the displayed video stream:
Increase the "quality" parameter in the box (maximum 30) -
Modify the parameters of the flow converter
On the server, in thelib
folder, is the fileffmpeg.js
. The following lines are commented on:
.InputOptions('-re') // Using a raw flow can correct quality problems in some cases.
.inputOptions('-use_wallclock_as_timestamps 1') // if DTS error, enable this option.
.inputOptions('-rtsp_transport tcp')
Uncomment a line, restart the server and check the result. You can uncomment all 3 lines.