I'm using https://github.com/pedroSG94/RTSP-Server library module for streaming and I want to capture frames continuously.
Asked
Active
Viewed 93 times
1 Answers
0
ffmpeg
is best for recording streams
ffmpeg -i "rtsp://xx:yy@x.x.x.x:554/cam/realmonitor?channel=1&subtype=0" -vcodec copy -acodec copy -y x.mp4
Here:
-i: The RTSP URL that needs to be recorded
-vcodec: The original video codec
-acodec: The original audio codec
copy: Create a copy of the stream
x.mp4: The name of the file to be created.

Anurag
- 308
- 2
- 13