How to save rtsp to file?
How to save rtsp to file?
Happytime stream2file supports saving rtsp stream to file.
Open the stream2file configuration file stream2file.cfg and edit the <stream2file> tag, as the following:
<stream2file>
<url>rtsp://192.168.3.36/live</url>
<user>admin</user>
<pass>admin</pass>
<savepath></savepath>
<filefmt>MP4</filefmt>
<framerate>0</framerate>
<recordsize>0</recordsize>
<recordtime>0</recordtime>
<fragment>1</fragment>
<fragment_duration>5000</fragment_duration>
</stream2file>
url - Specify the rtsp/rtmp stream address that needs to be saved to the file
user - Specify the rtsp/rtmp login user
pass - Specify the rtsp/rtmp login password
savepath - Specify file save path
filefmt - Specify the file format, AVI-avi file, MP4-mp4 file
framerate - Specify the video recording frame rate, if it is 0, it will be calculated automatically
recordsize - Specify maximum recording size, 0 means no limit, unit is KB
recordtime - Specify maximum recording time, 0 means no limit, unit is second
fragment - Output fragment MP4 file when file format is MP4
fragment_duration - The duration of each fragment, in milliseconds