Last active
July 23, 2024 08:42
-
-
Save assafmo/36382765e2c56ee9ef368fa9d866327b to your computer and use it in GitHub Desktop.
Download RTSP stream to local file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
./download_rtsp.sh 'rtsp://banana.papaya.mp4'