If you’re trying to shrink a video by half along the lines of this, you may encounter an error about “width not divisible by 2” during processing, or you just might get an empty mp4 file: The problem happens when you get interesting video dimensions, such as a vertical video that might be 1080 wide […]
Tag: ffmpeg
Grab video meta data from an archive of video files on S3
I had thousands of video files on an S3 bucket, but no record of their file sizes or video meta details ( resolution, encoding, container, etc..) This quick little bash script will use ffprobe to read the meta details from the S3 file without downloading the entire file locally. #!/bin/bash ## Usage: ./get-video-sizes.sh while IFS=”” read […]