Skip to content

Add support for crop #220

@muellerj

Description

@muellerj

A common usecase might be to force image/video dimensions (to fit a given container on a webpage e.g.). This may require a crop. My command atm is:

ffmpeg -i input.mov \
  -vf "scale=(iw*sar)*max(WIDTH/(iw*sar)\,HEIGHT/ih):ih*max(WIDTH/(iw*sar)\,HEIGHT/ih), crop=WIDTH:HEIGHT" \
  output.mov

where WIDTH and HEIGHT are the final dimensions.

Maybe it's worth adding this as an option in opposition to :preserve_aspect_ratio?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions