From 28651d43119b1ff747ec432d9e7b4a47ac95af7b Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Fri, 10 Feb 2023 19:25:48 +0100 Subject: [PATCH] Add more AspectRatio functions --- zsh/ffmpeg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zsh/ffmpeg b/zsh/ffmpeg index 7045e6a..bdfdac9 100644 --- a/zsh/ffmpeg +++ b/zsh/ffmpeg @@ -42,6 +42,16 @@ function ff-ar16-9() { ffmpeg -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=4/3" -aspect 16:9 -movflags faststart "_$1" } +# ffmpeg fix 5:4 AR +function ff-ar5-4() { + ffmpeg -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=1/1" -aspect 5:4 -movflags faststart "_$1" +} + +# ffmpeg fix 4:3 AR +function ff-ar4-3() { + ffmpeg -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=1/1" -aspect 4:3 -movflags faststart "_$1" +} + # ffmpeg fix Non-monotonous DTS function ff-dts() { ffmpeg -fflags +igndts -i "$1" -c copy -movflags faststart "_$1"