Skip to content

Instantly share code, notes, and snippets.

@siddolo
Created December 3, 2022 10:58
Show Gist options
  • Save siddolo/e1ccf3feea00bd880805647920c85a2d to your computer and use it in GitHub Desktop.
Save siddolo/e1ccf3feea00bd880805647920c85a2d to your computer and use it in GitHub Desktop.
Useful for concurrent streaming to two destination (for example YouTube + Facebook) with OBS Studio
#!/usr/bin/env bash
# Set OBS to stream on YouTube and local recording as mkv
# Use this script to stream recording on Facebook
ffmpeg -re -i ./recording.mkv \
-acodec aac -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 1280x720 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace \
-vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmps://live-api-s.facebook.com:443/rtmp/[APIKEY]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment