Make ‘encode-with-ffmpeg’ to be bash-compatible

This commit is contained in:
Daniel - 2019-06-08 15:39:49 +02:00
parent be5b07d9d1
commit f58b40ced3
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 2 deletions

4
zshrc
View File

@ -139,8 +139,8 @@ alias grep="grep --color=auto --binary-files=without-match --exclude=.svn"
# Utility functions
function encode-with-ffmpeg () {
$movie = $1
$output = $2
movie=$1
output=$2
ffmpeg -y -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 1 -c:a aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 2 -c:a aac -b:a 128k $output