Skip to content

Instantly share code, notes, and snippets.

@devster31
Last active January 23, 2022 00:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save devster31/a7b20cce81e50935f65d2d2d20c24d95 to your computer and use it in GitHub Desktop.
[ffmpeg commands] #commands
ffmpeg -hide_banner -y \
  -c:a aac -ar 48000 \
  -c:v h264 -profile:v baseline \
  -crf 20 -sc_threshold 0 \
  -pix_fmt yuv420p -hls_time 10 \
  -strict -2 -vsync 2 \
  -vf scale=w=<vwidth>:h=<vheight> \
  -b:v <vbrate> -maxrate <maxrate> \
  -bufsize <bufsize> -b:a 96k \
  -f hls -hls_list_size 0 -i <input> <output>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment