Skip to content

Instantly share code, notes, and snippets.

@crashGoBoom
Created February 15, 2021 23:27
Show Gist options
  • Save crashGoBoom/62a253642fc7f801ab450ae13b1fd125 to your computer and use it in GitHub Desktop.
Save crashGoBoom/62a253642fc7f801ab450ae13b1fd125 to your computer and use it in GitHub Desktop.
Send colorbars and tone to RTMP endpoint using FFMPEG
ffmpeg -re -f lavfi -i 'testsrc[out0];sine[out1]' \
-c:v libx264 -pix_fmt yuv420p -profile:v main \
-preset veryfast -x264opts "nal-hrd=cbr:no-scenecut" \
-minrate 3000 -maxrate 3000 -g 60 -c:a aac -b:a 160k \
-ac 2 -ar 44100 -f flv \
rtmps://$INGEST_ENDPOINT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment