Skip to content

Instantly share code, notes, and snippets.

@mauron85
Created September 27, 2019 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mauron85/8a8d5b865578c962f2e6af54a3808212 to your computer and use it in GitHub Desktop.
Save mauron85/8a8d5b865578c962f2e6af54a3808212 to your computer and use it in GitHub Desktop.
ffmpeg -rtsp_transport tcp \
-analyzeduration 100000 -probesize 100000 \
-i rtsp://guest:guest123@192.168.89.146:554/h264Preview_01_main \
-f segment -segment_time 300 -segment_format mpegts \
-reset_timestamps 1 \
-strftime 1 \
-c copy \
-movflags frag_keyframe /mnt/sda2/rec/cam-%Y%m%d-%H%M%S.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment