From e46bdc189af2a3f4d7ddbc2c264d45b9dcfa4d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A8=D7=98=D7=95=5C=D7=A8=D7=A2=D7=98=D7=90=D6=B8=5C?= =?UTF-8?q?=D7=A8=D6=B5=D7=99=D7=98=D7=95=D6=B9=20=E2=80=A2=20Reto?= Date: Thu, 2 May 2024 10:55:57 +0200 Subject: [PATCH] fixes #475 (#476) --- index.html | 9 +++++---- recipes.txt | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 7584efa..e6b9c94 100644 --- a/index.html +++ b/index.html @@ -680,22 +680,23 @@ - +
-
Change Display Aspect Ratio without re-encoding video
-

ffmpeg -i input_file -c:v copy -aspect 4:3 output_file

+
Change Display Aspect Ratio without re-encoding
+

ffmpeg -i input_file -c:a copy -c:v copy -aspect 4:3 output_file

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
+
-c:a copy
Copy all mapped audio streams.
-c:v copy
Copy all mapped video streams.
-aspect 4:3
Change Display Aspect Ratio to 4:3. Experiment with other aspect ratios such as 16:9. If used together with -c:v copy, it will affect the aspect ratio stored at container level, but not the aspect ratio stored in encoded frames, if it exists.
output_file
path, name and extension of the output file
- + diff --git a/recipes.txt b/recipes.txt index c0f624d..0aebac1 100644 --- a/recipes.txt +++ b/recipes.txt @@ -37,7 +37,7 @@ ffmpeg -i input_file -filter:v "hflip,vflip" -c:a copy output_file # Transform SD to HD with pillarbox ffmpeg -i input_file -filter:v "colormatrix=bt601:bt709, scale=1440:1080:flags=lanczos, pad=1920:1080:240:0" -c:a copy output_file # Change display aspect ratio without re-encoding -ffmpeg -i input_file -c:v copy -aspect 4:3 output_file +ffmpeg -i input_file -c:a copy -c:v copy -aspect 4:3 output_file # Convert colorspace of video ffmpeg -i input_file -c:v libx264 -vf colormatrix=src:dst output_file # Modify image and sound speed