Skip to content

Instantly share code, notes, and snippets.

@dudewheresmycode
Created February 8, 2021 02:33
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 dudewheresmycode/d4dd90653fef61b971400d99ec60042d to your computer and use it in GitHub Desktop.
Save dudewheresmycode/d4dd90653fef61b971400d99ec60042d to your computer and use it in GitHub Desktop.
Generate test colorbars and count for live streaming
#!/bin/sh
ffmpeg \
-i "http://relay.publicdomainradio.org/classical.mp3" \
-f lavfi \
-re \
-i testsrc=duration=120:size=1280x720:rate=24 \
-map 0:0 \
-map 1:0 \
-c:v libx264 \
-tune zerolatency \
-preset veryfast \
-crf 17 \
-maxrate 4M \
-bufsize 8M \
-c:a aac \
-ar 44100 \
-ac 2 \
-b:a 192k \
-f flv rtmp://localhost:1935/live/test_stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment