diff --git a/index.html b/index.html index ce86799..12ae891 100644 --- a/index.html +++ b/index.html @@ -499,11 +499,13 @@ path_name_and_extension_to_the_last_file

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 -i input_file -filter:v "pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2" -c:a copy output_file

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
-filter:v "pad=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 by pillarboxing, because the video filter uses relative values for input width (iw), input height (ih), output width (ow) and output height (oh).
+
-c:a
re-encodes using the same audio codec
+ For silent videos you can replace -c:a copy by -an.
output_file
path, name and extension of the output file
@@ -520,11 +522,13 @@ path_name_and_extension_to_the_last_file

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 -i input_file -filter:v "pad=iw:iw*3/4:(ow-iw)/2:(oh-ih)/2" -c:a copy 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 by letterboxing, because the video filter uses relative values for input width (iw), input height (ih), output width (ow) and output height (oh).
+
-c:a
re-encodes using the same audio codec
+ For silent videos you can replace -c:a copy by -an.
output_file
path, name and extension of the output file
@@ -540,11 +544,13 @@ path_name_and_extension_to_the_last_file