Make ‘encode-with-ffmpeg’ to be bash-compatible
This commit is contained in:
parent
be5b07d9d1
commit
f58b40ced3
4
zshrc
4
zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue