Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kyrylo V. Polezhaiev kirushyk

🏠
Working from home
View GitHub Profile
View loop.sh
#!/bin/bash
SOURCE=$1
BASENAME=`basename ${SOURCE}`
TSNAME=${BASENAME%.*}.ts
DEST=$2
if [ $# -lt 2 ]; then
echo "Usage: loop.sh <input.mp4> <RTMP DEST URL>"
exit 1