From e237788111c593b35acd356589632ed27f09ff9f Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 23 Oct 2023 08:33:37 +0200 Subject: bash-aliases: add volume correction commands --- bash/dot-bash_aliases | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bash/dot-bash_aliases b/bash/dot-bash_aliases index 054ec87..698ac08 100644 --- a/bash/dot-bash_aliases +++ b/bash/dot-bash_aliases @@ -65,6 +65,14 @@ alias mail='vim +"set ft=markdown"' alias yt-album-playlist='yt-dlp --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --parse-metadata "playlist_index:%(track_number)s" --add-metadata --embed-metadata --output "%(playlist_autonumber)02d - %(title)s.%(ext)s" --yes-playlist' # Easy audio recording +function audio-volume-detect { + # https://trac.ffmpeg.org/wiki/AudioVolume + ffmpeg -i "$1" -filter:a volumedetect -f null /dev/null +} +function audio-volume-up-db { + # https://trac.ffmpeg.org/wiki/AudioVolume + ffmpeg -i "$1" -filter:a "volume=$3dB" "$2" +} alias audio_list_sources="pactl list short sources" function audio_record_from { # https://trac.ffmpeg.org/wiki/Capture/PulseAudio -- cgit v1.2.3