2 added 2 characters in body
source | link

Here's an example of how to crop landscape videos to square (1:1 aspect), while not cropping portrait videos:

-filter_complex "[0:v]crop='if(lt(in_h,in_w),in_h,in_w):in_h'[out]"-filter_complex "[0:v]crop='if(lt(in_h,in_w),in_h,in_w):in_h'[out]"

Here's an example of how to crop landscape videos to square (1:1 aspect), while not cropping portrait videos:

-filter_complex "[0:v]crop='if(lt(in_h,in_w),in_h,in_w):in_h'[out]"

Here's an example of how to crop landscape videos to square (1:1 aspect), while not cropping portrait videos:

-filter_complex "[0:v]crop='if(lt(in_h,in_w),in_h,in_w):in_h'[out]"

1
source | link

Here's an example of how to crop landscape videos to square (1:1 aspect), while not cropping portrait videos:

-filter_complex "[0:v]crop='if(lt(in_h,in_w),in_h,in_w):in_h'[out]"