Skip to content

Instantly share code, notes, and snippets.

@na-stewart
Created December 14, 2024 20:40
Show Gist options
  • Save na-stewart/eed08a8bbbf762cd7999c997a5e26a54 to your computer and use it in GitHub Desktop.
Save na-stewart/eed08a8bbbf762cd7999c997a5e26a54 to your computer and use it in GitHub Desktop.
Useful FFmpeg commands.
Youtube 360 video conversion
ffmpeg -i input.mkv -vf "v360=c3x2:e:cubic:in_forder='lfrdbu':in_frot='000313',scale=3840:1920,setsar=1:1" -c:v libx264 -preset faster -crf 21 -c:a copy -movflags +faststart output.mp4
Compression
ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment