Created
February 8, 2021 02:33
-
-
Save dudewheresmycode/d4dd90653fef61b971400d99ec60042d to your computer and use it in GitHub Desktop.
Generate test colorbars and count for live streaming
This file contains hidden or 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/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