Skip to content

Instantly share code, notes, and snippets.

@AlekseyArh
Last active December 15, 2020 16:36
Show Gist options
  • Save AlekseyArh/02e054bc7fe07b6b21fd0f1f4faade2e to your computer and use it in GitHub Desktop.
Save AlekseyArh/02e054bc7fe07b6b21fd0f1f4faade2e to your computer and use it in GitHub Desktop.
ffmpeg flv streaming encoding
ffmpeg -re -i video.mp4 -vf scale=-1:720 -c:v libx264 -preset fast -ar 44100 -ac 2 -b:a 128k -crf 24 -g 3 -b:v 6M -maxrate 6M -bufsize 3M -f flv video.flv
ffmpeg -re -i video.flv -c copy -f flv rtmp://%STREAM_URL%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment