LoginSignup
2
0

More than 1 year has passed since last update.

【youtube-dl】YouTube said: Unable to extract video dataと出てDLできない

Last updated at Posted at 2021-06-22

はじめに

youtube-dlで音声データを抽出しようとしたら以下のようなエラーが出る。

Terminal
❯❯❯ youtube-dl "https://www.youtube.com/watch?v=hogehoge" -x --audio-format wav 
[youtube] hogehoge: Downloading webpage
[youtube] hogehoge: Downloading video info webpage
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
ERROR: hogehoge: YouTube said: Unable to extract video data

試したこと

  • とりあえずアップデート
Terminal
❯❯❯ youtube-dl --update
Updating to version 2021.06.06 ...
ERROR: no write permissions on /usr/local/bin/youtube-dl

書き込み権限がないとか今更そういうこと言う?
とりあえずsudoで再試行。

Terminal
❯❯❯ sudo youtube-dl --update
Password:
Updating to version 2021.06.06 ...
Updated youtube-dl. Restart youtube-dl to use the new version.

updateできたっぽいのでterminal再起動したらちゃんと更新できてた。

Terminal
❯❯❯ youtube-dl --version
2021.06.06

というわけでリトライ

Terminal
❯❯❯ youtube-dl "https://www.youtube.com/watch?v=hogehoge" -x --audio-format wav
[youtube] hogehoge: Downloading webpage
[download] Destination: hogehoge.m4a
[download] 100% of 1000.01KiB in 00:00
[ffmpeg] Correcting container in hogehoge.m4a"
ERROR:   Reason: image not found

なんかwav指定したつもりだったけど何故かm4aになってるしエラー出てるけどとりあえず音声データは無事生成されたのでヨシ

結論

とりあえずアプデ

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0