+
+
Transform 4:3 aspect ratio into 16:9 with pillarbox
+
Transform a video file with 4:3 aspect ratio into a video file with 16:9 aspect ration by correct pillarboxing.
+
ffmpeg -i input_file -filter:v "pad=ih*16/9:ih:(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 "ih*16/9:ih:(ow-iw)/2:(oh-ih)/2"
- video padding
This resolution independent formula is actually padding any aspect ratio into 16:9, 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
+
+
+