Skip to content

Instantly share code, notes, and snippets.

@peerasan
Created June 8, 2019 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peerasan/b2a2889671b3c318d607583e7242e113 to your computer and use it in GitHub Desktop.
Save peerasan/b2a2889671b3c318d607583e7242e113 to your computer and use it in GitHub Desktop.
FFmpeg send multiple live stream
ffmpeg -f lavfi -re -i 'life=s=300x200:mold=10:r=25:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800:flags=16' \
-f lavfi -re -i sine=frequency=1000:sample_rate=44100 -pix_fmt yuv420p \
-c:v libx264 -b:v 1000k -g 30 -keyint_min 60 -profile:v baseline -preset veryfast -c:a aac -b:a 96k \
-f flv "rtmp://patrickz.iiwnz.com:1935/live/stream1" \
-f flv "rtmp://patrickz.iiwnz.com:1935/live/stream2" \
-f flv "rtmp://patrickz.iiwnz.com:1935/live/stream3" \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment