Audio and video ffmpeg video cropping

Crops the width and height of the input video frame to the specified width and height from the position represented by the x and y values; x and y are the coordinates of the upper left corner of the output, and the center of the coordinated system is the upper left corner of the input video frame.
If the optional keep_aspect parameter is used, the output SAR (sample aspect ratio) will be changed to compensate for the new DAR (display aspect ratio)

crop=ow[:oh[:x[:y[:keep_aspect]]]]

I recommend a Lingsheng Academy project class. I personally think the teacher taught it well. I would like to share it with you:
Lingsheng Platinum Learning Card (including infrastructure/high-performance storage/golang cloud native/audio and video/Linux kernel)
https://xxetb.xet .tech/s/VsFMs

Guess you like

Origin blog.csdn.net/qq_40135848/article/details/132606430