|
|
|
|
|
by peterburkimsher
1760 days ago
|
|
Here's the aliases that I typically use. I'm very pleased to see that yt-dlp added --split-chapters, it's great for separating long videos into separate songs! e.g. the Faça Você Mesmo EP from Under Control, a Brazilian punk rock bank https://www.youtube.com/watch?v=xSHEZ_HdjHs alias yt-mp3='yt-dlp --extract-audio --audio-format mp3 --split-chapters --no-check-certificate'
alias youtube-mp3='youtube-dl --extract-audio --audio-format mp3 '
alias youtube-mp4='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
alias youtube-mp4-480p='youtube-dl -f "bestvideo[height<=480]+bestaudio/best[height<=480]"'
alias youtube-playlist='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4" -ciw -o "%(title)s.%(ext)s" -v '
#alias ffmpeg-mkv=find . -type f -name "*.mkv" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;
#alias ffmpeg-webm=find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \;
#alias ffmpeg-mp3=find . -type f -iname "*.mp4" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -y "${FILE%.mp4}.mp3";' _ '{}' \;
|
|