diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-10-23 08:33:37 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-10-23 08:33:37 +0200 |
commit | e237788111c593b35acd356589632ed27f09ff9f (patch) | |
tree | 1918caf6cee4a91189c3a8632303fdd35a8966fe /bash | |
parent | 81107b6e6348aed2f61f6c11d435d8888e8ef832 (diff) |
bash-aliases: add volume correction commands
Diffstat (limited to 'bash')
-rw-r--r-- | bash/dot-bash_aliases | 8 |
1 files changed, 8 insertions, 0 deletions
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 |