Skip to content

Commit 836bda8

Browse files
author
Muhammad Abdullah Khabir
committed
adding new function
1 parent 1118b38 commit 836bda8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zsh/.zsh/functions

+7
Original file line numberDiff line numberDiff line change
@@ -1180,3 +1180,10 @@ slowvid () {
11801180
ffmpeg -i "$video_to_edit" -vf "setpts=2.0*PTS" -acodec copy "$base-slow.$ext"
11811181

11821182
}
1183+
1184+
imagetovideo () {
1185+
image_file="$1"
1186+
audio_file="$2"
1187+
output_file="$3"
1188+
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"
1189+
}

0 commit comments

Comments
 (0)