Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created November 17, 2016 16:42
Show Gist options
  • Save JamesTheHacker/56fb9caf36244de582540e7d5c2fd6a5 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/56fb9caf36244de582540e7d5c2fd6a5 to your computer and use it in GitHub Desktop.
ffmpeg \
-re -y \
-loop 1 \
-f image2 \
-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 \
-r 30 \
-g 60 \
-f flv \
"rtmp://rtmp-api.facebook.com:80/rtmp/XXXXXXXXX?ds=1&s_l=1&a=XXXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment