Chrome OS 要安裝 youtube-dl 很簡單直接照著官網做
http://ytdl-org.github.io/youtube-dl/download.html
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl.sig -O youtube-dl.sig
gpg --verify youtube-dl.sig /usr/local/bin/youtube-dl
rm youtube-dl.sig
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl.sig -O youtube-dl.sig
gpg --verify youtube-dl.sig /usr/local/bin/youtube-dl
rm youtube-dl.sig
之後只要在終端機打上 Youtube-dl 會出現
‘python’: No such file or directory
解決方法很簡單
apt-get install python3
whereis python3
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo apt install python-is-python3
然後編碼可以順便安裝
sudo apt install ffmpeg
ffmpeg 可以讓下載影片更方便
特別是可以在 Microsoft Edge 安裝 hls-stream-capture擴充程式
點選 youtube-dl command + m3u8 複製指令後 可以直接在終端機上下載影片
https://microsoftedge.microsoft.com/addons/detail/hls-stream-capture/degfdiljllaajjkldokdnbmjncibpdbd
留言