Browse Source

Add strip_audio

master
VirtuBox 3 months ago
parent
commit
8eab3a647f
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      mybashrc

+ 10
- 0
mybashrc View File

@ -785,6 +785,14 @@ _x265_encode() {
fi
}
_extract_audio() {
ffmpeg -i "$1" -vn -acodec copy "${1%.*}.aac"
}
_strip_audio() {
ffmpeg -i "$1" -codec copy -an "${1%.*}-muted.mp4"
}
_identify_resolution() {
for i in "$PWD"/*.mp4; do
@ -824,6 +832,8 @@ alias ffmpeg-merge=_MERGE_VIDEO
alias ffmpeg-audio=_TRANSFER_AUDIO
alias ffmpeg-x265=_x265_encode
alias ffmpeg-resolution=_identify_resolution
alias ffmpeg-aac=_extract_audio
alias ffmpeg-strip=_strip_audio
alias ftpadd=_FTP_ADD
alias fgrep='fgrep --color=auto'
alias gg="ping google.fr"


Loading…
Cancel
Save