We would like to capture the RTSP video stream from Deepcam and save to a local video file so that we can check it later.
In a previous post, we showed how to find the IP address of deepcam. In this post, we show the commands to record the video.
Once we install the FFMPEG following the instructions. We can use the following commands to record the MP4 file:
$ffmpeg -i rtsp://192.168.1.46/live0.264 -c:v libx264 -c:a libfdk-aac -meta title="Deepcam" fs_codec_H264_AAC_title_channel0.mp4
where
- 192.168.1.46 is the IP address of deepcam.
- live0.264 channel has a better resolution, and live1.264 has a lower resolution.
- -c:v is the video codec
- -c:a is the audio codec
- -meta title will add title to the video
- fs_codec_H264_AAC_title_channel0.mp4 is the filename of the mp4 file.
Leave a Reply
You must be logged in to post a comment.