- Ths will save the video as 720:
ffmpeg -hide_banner -i input -vf scale=-1:720 output.mp4
- [grepper ink](https://www.codegrepper.com/code-examples/shell/ffmpeg+resize+video)
- ffmpeg shrink video size:
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
- ffmpeg resize video:
ffmpeg -i input.avi -vf scale=320:240 output.avi
- ffmpeg change resolution:
ffmpeg.exe -i input.mp4 -s 1376x744 output.mp4
- video upscale ffmpeg:
ffmpeg -i input.mp4 -vf scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1,setsar=1 -r 60 output.mp4
- ffmpeg reduce video size:
ffmpeg -i "[inputName.mp4]" -vcodec [libx265] -crf [28] "[outputName.mp4]"
- ffmpeg reduce video size:
ffmpeg -i input.mp4 -fs 100M output.mp4
ffmpeg -i input.mp4 -vcodec libx264 -crf 24 output.mp4
- Remux without encoding:
ffmpeg -i INPUT.mts -vcodec copy -acodec copy OUTPUT.mp4
- yt-dlp - download as mp4:
yt-dlp -S res,ext:mp4:m4a --recode mp4 http://url
- yt-dlp files as mp4, from a playlist and without [hash]:
yt-dlp -S res,ext:mp4:m4a --recode mp4 -o "%(title)s.%(ext)s" --yes-playlist http://playlistURL
- download when yt-dlp doesn't have extractor:
- 1. Look for master.json in network request
- 2. Copy entire response
- 3. Rename `master.json?base64_init=1` to `master.mpd`
- 4. yt-dlp "long string url"