Files
cmp-docs/docs/progs/ffmpeg.md
2024-06-26 20:43:41 +03:00

400 B

FFmpeg

Crop video to 720x520 begin from 0:280

ffi in.mov -vf "crop=720:520:0:280" -c:v libx264 -c:a copy -b:v 1200k out.mp4

Grab video from screen

# For X11
ffmpeg -s 1920x1080 -framerate 10 -f x11grab -i :0 -qscale 6 out.mkv

# For Wayland
ffmpeg -y -f kmsgrab -i - -filter_complex 'hwmap=derive_device=vaapi,hwdownload,format=bgr0,crop=1540:940:380:100' out2.mkv