Profile PictureDevin Schumacher
$0+

Bulk Convert Portrait Orientation Videos to Landscape Orientation

0 ratings
Add to cart

Bulk Convert Portrait Orientation Videos to Landscape Orientation

$0+
0 ratings

Bulk Convert Portrait Orientation Videos to Landscape Orientation


DESCRIPTION:

This Python script is designed to resize video files while maintaining their aspect ratio. It's particularly useful when you have a collection of videos that you want to resize to a specific height, in this case, 1080 pixels.

The script uses the moviepy library to read video files, resize them, and write the resized videos back to disk. The videos are resized to a height of 1080 pixels, and the width is adjusted to maintain the aspect ratio of the original video.

In addition to resizing, the script also centers the resized video on a black background of a specified size (default is 1920x1080 pixels). This is useful when the aspect ratio of the original video doesn't match the aspect ratio of the desired size.

The script processes all .mp4 files in a specified input folder. For each video file, it creates a resized version and saves it to a specified output folder. The output video files are named by prefixing 'resized_' to the original file name.

$
Add to cart
Copy product URL