Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 430 Bytes

ffmpeg.md

File metadata and controls

11 lines (8 loc) · 430 Bytes

One frame

ffmpeg -i .\multiple_trials.mp4 -vframes 1 out.png

Crop video

ffmpeg -i input.mp4 -filter:v "crop=w:h:x:y" output.mp4

Scale video

ffmpeg -i input.mp4 -vf scale=iw/2:-1 output.mp4

Convert to gif (works best with small videos)

ffmpeg -y -i .\multiple_trials_crop.mp4 -filter_complex "fps=15,split[v1][v2]; [v1]palettegen=stats_mode=full [palette]; [v2][palette]paletteuse=dither=sierra2_4a" -vsync 0 output.gif