youtube-dl  --extract-audio --audio-quality 0 --audio-format mp3 --cache-dir /tmp/ --ffmpeg-location /usr/bin/ -o "./%(id)s.%(ext)s" -f "251" 'youtube 주소' 

--audio-quality :  (VBR) 0~9. 0이 음질 가장 좋음 /  (CBR) 128k 와 같이 직접 지정

-f : 오디오를 추출할 format code 지정

 

youtube-dl -F '유튜브 주소'  를 이용해서 지원하는 모든 포맷을 볼 수 있다.

 

 

* 참고

stackoverflow.com/questions/49804874/download-the-best-quality-audio-file-with-youtube-dl

728x90
반응형

+ Recent posts