Skip to content

Instantly share code, notes, and snippets.

@designeng
Forked from blacklee/ffmpeg-to-480p.sh
Created February 24, 2023 16:42
Show Gist options
  • Save designeng/5834cb772be65e70d937f58f843e6e43 to your computer and use it in GitHub Desktop.
Save designeng/5834cb772be65e70d937f58f843e6e43 to your computer and use it in GitHub Desktop.
ffmpeg convert video to 480p
ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
@designeng
Copy link
Author

ffmpeg -re -i YOURVIDEO.mp4 -c:v libx264 -b:v 2M -c:a copy -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 2100k -f flv rtmp://a.rtmp.youtube.com/live2/YOUTUBESTREAMKEY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment