From 836bda861870be1eeb2bac39a50a5c2c9d3dc23c Mon Sep 17 00:00:00 2001 From: Muhammad Abdullah Khabir Date: Wed, 24 Jan 2024 00:24:44 +0500 Subject: [PATCH] adding new function --- zsh/.zsh/functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/.zsh/functions b/zsh/.zsh/functions index 52cc811..4472a32 100755 --- a/zsh/.zsh/functions +++ b/zsh/.zsh/functions @@ -1180,3 +1180,10 @@ slowvid () { ffmpeg -i "$video_to_edit" -vf "setpts=2.0*PTS" -acodec copy "$base-slow.$ext" } + +imagetovideo () { + image_file="$1" + audio_file="$2" + output_file="$3" + ffmpeg -loop 1 -i "$image_file" -i "$audio_file" -c:v libx264 -pix_fmt yuv420p -c:a aac -strict experimental -b:a 192k -shortest -movflags +faststart "$output_file" +}