Skip to content

Instantly share code, notes, and snippets.

@Neoklosch
Created April 11, 2022 14:18
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 Neoklosch/ecbc44f687c61f945e7aa3f62640fd31 to your computer and use it in GitHub Desktop.
Save Neoklosch/ecbc44f687c61f945e7aa3f62640fd31 to your computer and use it in GitHub Desktop.
ffmpeg streaming
ffmpeg -re \
-i <filename>.mp4 \
-pix_fmt yuvj420p \
-x264-params keyint=48:min-keyint=48:scenecut=-1 \
-b:v 4500k \
-b:a 128k \
-ar 44100 \
-acodec aac \
-vcodec libx264 \
-preset medium \
-crf 28 \
-threads 4 \
-f flv \
rtmp://<address>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment