This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in (find . -type f -iname "*.webm") | |
| set int (string trim -l -c=./ $i) | |
| set name (string trim -r -c=.webm $int) | |
| echo $name | |
| ffmpeg -i $i -vn -acodec libmp3lame -q:a 2 $name.mp3 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| youtube-dl -f bestaudio -o 'The_Sounds_of_the_Monterey_Bay/%(playlist_index)s - %(title)s.%(ext)s' 'https://www.youtube.com/watch?v=oBik31cwRbY&list=PLUSRfoOcUe4aw6JiTXbwUET_wdQ1bnyoo' | |
| ## Download playlist in separate folder, audio only | |
| youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -o '%(playlist_index)s-%(title)s.%(ext)s' 'https://www.youtube.com/playlist?list=PL4BBB74C7D2A1049C' | |
| ## Download playlist with best quality |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for f in *.m4a | |
| set name (string trim --right --chars=.m4a $f) | |
| echo $name | |
| ffmpeg -i $f -acodec libmp3lame -b:a 320k $name.mp3 | |
| end |
NewerOlder