Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active September 7, 2017 19:13
Show Gist options
  • Save assafmo/36382765e2c56ee9ef368fa9d866327b to your computer and use it in GitHub Desktop.
Save assafmo/36382765e2c56ee9ef368fa9d866327b to your computer and use it in GitHub Desktop.
Download RTSP stream to local file
#!/bin/bash
RTSP_ADRESS="$1"
OUTPUT_FILE_NAME=$(echo "$RTSP_ADRESS" | awk -F '/' '{print $(NF)}')
ffmpeg -y -i $RTSP_ADRESS -acodec copy -vcodec copy $OUTPUT_FILE_NAME
@assafmo
Copy link
Author

assafmo commented May 5, 2017

Usage: ./download_rtsp.sh 'rtsp://banana.papaya.mp4'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment