Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why has youtube-dl started giving this error message - YouTube said: Unable to extract video data

I use to download EAC videos for testing using this command line -

youtube-dl -f bestvideo[ext=mp4] --user-agent '' <youtube_url>

But now when I am running it, it gives an error message saying -

YouTube said: Unable to extract video data

Please help!

like image 242
TheAniSingh Avatar asked Dec 04 '25 10:12

TheAniSingh


2 Answers

Your question should already be answered in this thread: Youtube_dl : ERROR : YouTube said: Unable to extract video data

Basicaly use the same user agent and cookie as your browser.

Best regards

like image 52
Raphaël G. Avatar answered Dec 07 '25 20:12

Raphaël G.


I ran this command to upgrade my youtube-dl

brew upgrade youtube-dl

After upgrading, the problems seems to have gone away. But I will check this extensively by checking it on multiple videos and see if it got resolved completely or only for few videos

like image 32
TheAniSingh Avatar answered Dec 07 '25 21:12

TheAniSingh