工具名稱
yt-dlp
下載方法
- 安裝Python環(huán)境
- pip install yt-dlp
使用方法
yt-dlp -v https://www.youtube.com/watch?v=LeMVDuIO3J0
默認(rèn)格式,高于720P的格式一般是 webm 格式
yt-dlp https://youtu.be/sKrT6mBrosc
下載視頻轉(zhuǎn)換成mp4(用–merge-output-format參數(shù))
yt-dlp –merge-output-format mp4 https://youtu.be/sKrT6mBrosc
1.只下載音頻
找m4a格式,列表越靠后越清晰。比如ID:140 | EXT:m4a | audio only
yt-dlp -f140 https://youtu.be/sKrT6mBrosc
2.下載音頻轉(zhuǎn)換成mp3(加上-x –audio-format參數(shù))
yt-dlp -f140 -x –audio-format mp3 https://youtu.be/sKrT6mBrosc
3.下載視頻(帶音頻)ID:22 | EXT:mp4 | 1280*720
yt-dlp -f22 https://youtu.be/sKrT6mBrosc文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-549092.html
下載的數(shù)據(jù)集:YouCook2
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-549092.html
到了這里,關(guān)于下載YouTube視頻的一種方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!