Browse Source

add ffmpeg x265

master
VirtuBox 5 months ago
parent
commit
be74e64009
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      mybashrc

+ 11
- 0
mybashrc View File

@ -755,6 +755,16 @@ _TRANSFER_AUDIO() {
fi
}
_x265_encode() {
if [ "$#" -eq 1 ]; then
ffmpeg -i "$1" -c:v libx265 -crf 28 -c:a aac -b:a 160k "${1%.*}-x265.mp4"
else
for i in "$PWD"/*; do
ffmpeg -i "$i" -c:v libx265 -crf 28 -c:a aac -b:a 160k "${i%.*}-x265.mp4"
done
fi
}
# enable color support of ls and also add handy aliases
# some more ls aliases
#alias wp='/usr/bin/wp --allow-root'
@ -783,6 +793,7 @@ alias egrep='egrep --color=auto'
alias ffmpeg-cut-start=ffmpeg_start_time
alias ffmpeg-merge=_MERGE_VIDEO
alias ffmpeg-audio=_TRANSFER_AUDIO
alias ffmpeg-x265=_x265_encode
alias ftpadd=_FTP_ADD
alias fgrep='fgrep --color=auto'
alias gg="ping google.fr"


Loading…
Cancel
Save