Skip to content

Instantly share code, notes, and snippets.

@n0mimono
Last active July 2, 2024 08:33
Show Gist options
  • Save n0mimono/0170967956a7ca41ba64c21403e50f3e to your computer and use it in GitHub Desktop.
Save n0mimono/0170967956a7ca41ba64c21403e50f3e to your computer and use it in GitHub Desktop.
ffmpeg -re -loop 1 -f image2 -i path/to/your/image.jpg -r 10 -f lavfi -i anullsrc -c:v libx264 -preset ultrafast -tune stillimage -pix_fmt yuv420p -b:v 100k -maxrate 100k -bufsize 200k -g 40 -c:a aac -ar 44100 -b:a 64k -f flv rtmp://a.rtmp.youtube.com/live2/your_stream_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment