Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created November 17, 2016 19:50
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 JamesTheHacker/78bf5c1d1b4e57e945de6bf072b7ca92 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/78bf5c1d1b4e57e945de6bf072b7ca92 to your computer and use it in GitHub Desktop.
php fblive.php | ffmpeg \
-re -y \
-loop 1 \
-f image2pipe \
-i img_0.jpg \
-i audio.mp3 \
-acodec libfdk_aac \
-ac 1 \
-ar 44100 \
-b:a 128k \
-vcodec libx264 \
-pix_fmt yuv420p \
-vf scale=640:480 \
-bufsize 512k \
-vsync 1 \
-r 30 \
-g 60 \
-f flv \
"rtmp://rtmp-api.facebook.com:80/rtmp/XXXXXXX?ds=1&s_l=1&a=XXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment