Skip to content

Commit

Permalink
adding new function
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Abdullah Khabir committed Jan 23, 2024
1 parent 1118b38 commit 836bda8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zsh/.zsh/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 836bda8

Please sign in to comment.