+
+
Transform 16:9 aspect ratio video into 4:3 with letterbox
+
Transform a video file with 16:9 aspect ratio into a video file with 4:3 aspect ration by correct letterboxing.
+
ffmpeg -i input_file -filter:v "pad=iw:iw*3/4:(ow-iw)/2:(oh-ih)/2" output_file
+
+ - ffmpeg
- starts the command
+ - -i input_file
- path, name and extension of the input file
+ - -filter:v "pad=iw:iw*3/4:(ow-iw)/2:(oh-ih)/2"
- video padding
This resolution independent formula is actually padding any aspect ratio into 4:3, because the video filter uses relative values for input width (iw), input height (ih), output width (ow) and output height (oh).
+ - output_file.mpg
- path and name of the output file
+
+
+