RTSP MP4 Timed Recorder
Target Platform: Linux x64 (CentOS)
Take in an RTSP stream and record it as an mp4 to disk files segmented by time. Program will be called like this:
RTSPRecord Cam160 rtsp://user:email@example.com/axis-media/axis.amp /Storage/Video2 30
RTSPRecord - Name of the program
Cam160 - Name we are giving to this stream
rtsp://user:firstname.lastname@example.org/axis-media/axis.amp - RTSP stream source
/Storage/Video2 - Directory to store files
30 - File split time in minutes
Each filename is this form:
prefix - is the Name given from the command line
date - is the date in YYMMDD format
time - Is the recording start time in HHMMSS format (24 hour clock)
The time should be synchronized on the hour. For example, if I started the program using the commands above the first file will start now but all subsequent files will be started on the half hour like this:
Program should close any open MP4 file properly when terminated.
Program must be able to run continuously.
All source code must be included.
Any libraries used must be open source.
It is suggested to use live555 but not required.
Developer must have access to their own RTSP stream and Linux x64 environment.