Skip to content

Instantly share code, notes, and snippets.

@kohmaeda
Last active July 5, 2016 04:11
Show Gist options
  • Save kohmaeda/dcfa33045f123776079846dfec76adc1 to your computer and use it in GitHub Desktop.
Save kohmaeda/dcfa33045f123776079846dfec76adc1 to your computer and use it in GitHub Desktop.
Record audio as WAV and stream to Facebook live with photo
ffmpeg -f avfoundation -thread_queue_size 512 -video_size 1280x720 -framerate 30 \
-i "Logitec:Blue" \
-acodec copy "raw.wav" \
-i logo.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10[logo]" \
-f flv -map "[logo]" -map 0:a -ac 2 -ar 44100 -vcodec libx264 -g 60 -keyint_min 30 -b:v 2500k -minrate 2500k -maxrate 2500k -pix_fmt yuv420p -s 1280x720 -preset ultrafast -tune film -af "volume=2" -acodec libfdk_aac -threads 0 -strict normal -bufsize 2500k \
"rtmp..."
ffmpeg -f avfoundation -thread_queue_size 512 -video_size 1280x720 -framerate 30 \
-i "0:" \
-f flv -vcodec libx264 -g 60 -keyint_min 30 -b:v 3000k -minrate 3000k -maxrate 3000k -pix_fmt yuv420p -s 1280x720 -preset ultrafast -tune film -bufsize 3000k \
"rtmp..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment