Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active January 12, 2023 18:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save recursivecodes/541990abb205f1b689740bcb7627df4a to your computer and use it in GitHub Desktop.
Save recursivecodes/541990abb205f1b689740bcb7627df4a to your computer and use it in GitHub Desktop.
ffmpeg \
-f avfoundation \
-framerate 30 \
-video_size 1920x1080 \
-i "3:" \
-f avfoundation \
-framerate 30 \
-video_size 640x480 \
-i "2:" \
-f avfoundation \
-i ":2" \
-filter_complex "[0:v][1:v] overlay=main_w-overlay_w-5:main_h-overlay_h-5" \
-map 0:v:0 \
-map 1:v:0 \
-map 2:a:0 \
-c:v libx264 \
-b:v 6000K \
-maxrate 6000K \
-pix_fmt yuv420p \
-s 1920x1080 \
-profile:v main \
-preset veryfast \
-g 120 \
-x264opts "nal-hrd=cbr:no-scenecut" \
-acodec aac \
-ab 160k \
-ar 44100 \
-f flv \
$DEMO_STREAM_INGEST_ENDPOINT/$DEMO_STREAM_KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment