Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Youtube said: unable to extract video data" on downloading a video with shock content waring notification #26384

Closed
4 tasks done
r00iner opened this issue Aug 19, 2020 · 9 comments

Comments

@r00iner
Copy link

r00iner commented Aug 19, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl.exe -v --extract-audio --audio-format mp3 https://youtu.be/hRow6G5wQIw
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--extract-audio', '--audio-format', 'mp3', 'https://youtu.be/hRow6G5wQIw']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2
[debug] Proxy map: {}
[youtube] hRow6G5wQIw: Downloading webpage
ERROR: hRow6G5wQIw: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\youtube.py", line 1893, in _real_extract
youtube_dl.utils.ExtractorError: hRow6G5wQIw: YouTube said: Unable to extract video data

Description

WRITE DESCRIPTION HERE
Link https://youtu.be/hRow6G5wQIw
Tried running the program on the video with shock content notification and got this problem
ERROR: hRow6G5wQIw: YouTube said: Unable to extract video data

@cheatfreak47
Copy link

confirming this issue as well

@digbose92
Copy link

Facing the same issue

@nicolaasjan
Copy link

nicolaasjan commented Aug 21, 2020

This is an age-restricted video.
And there is already another issue open for that:
#26152
Apply the following fix in the source code and compile youtube-dl yourself:
cae18ef

If you don't know how to do that, you can apply the --cookies fix described here.

Terminal output:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '-f', 'bestaudio', '--extract-audio', '--audio-format', 'mp3', '--embed-thumbnail', '--audio-quality', '320k', '-v', 'https://www.youtube.com/watch?v=hRow6G5wQIw']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.6.9 (CPython) - Linux-4.15.0-112-generic-x86_64-with-LinuxMint-19.3-tricia
[debug] exe versions: ffmpeg N-98759-g1c7e55d, ffprobe N-98759-g1c7e55d
[debug] Proxy map: {}
[youtube] hRow6G5wQIw: Downloading webpage
[youtube] hRow6G5wQIw: Downloading embed webpage
[youtube] hRow6G5wQIw: Refetching age-gated info webpage
[youtube] {18} signature length 107, html5 player 530216c1
[youtube] {137} signature length 107, html5 player 530216c1
[youtube] {248} signature length 103, html5 player 530216c1
[youtube] {136} signature length 107, html5 player 530216c1
[youtube] {247} signature length 107, html5 player 530216c1
[youtube] {135} signature length 107, html5 player 530216c1
[youtube] {244} signature length 103, html5 player 530216c1
[youtube] {134} signature length 107, html5 player 530216c1
[youtube] {243} signature length 107, html5 player 530216c1
[youtube] {133} signature length 107, html5 player 530216c1
[youtube] {242} signature length 107, html5 player 530216c1
[youtube] {160} signature length 107, html5 player 530216c1
[youtube] {278} signature length 103, html5 player 530216c1
[youtube] {140} signature length 107, html5 player 530216c1
[youtube] {249} signature length 107, html5 player 530216c1
[youtube] {250} signature length 107, html5 player 530216c1
[youtube] {251} signature length 103, html5 player 530216c1
[youtube] hRow6G5wQIw: Downloading thumbnail ...
[youtube] hRow6G5wQIw: Writing thumbnail to: Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webp
[debug] Invoking downloader on 'https://r6---sn-5hne6nlk.googlevideo.com/videoplayback?expire=1598055580&ei=PBBAX5XDKI6S1wLcpavICg&ip=217.121.193.63&id=o-AFmD1Ew8R3LaFLBEPG08zIR6k6iIqLDktTXBo6NrKim7&itag=251&source=youtube&requiressl=yes&mh=3_&mm=31%2C29&mn=sn-5hne6nlk%2Csn-5hnedn7s&ms=au%2Crdu&mv=m&mvi=6&pl=15&initcwndbps=1818750&vprv=1&mime=audio%2Fwebm&gir=yes&clen=4413615&dur=278.461&lmt=1570882799302043&mt=1598033792&fvip=6&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAKy3eOqehVlciuTkytJm0SerCS_-am1SasQ5sbHFCvLEAiEA1b5ujLXIkE4IV5OYVRuM9Ux6a3RO1Zz0V_xbTCtGSRI%3D&sig=AOq0QJ8wRAIgP4yBa0rp0R2dhk6_b6XAbb3_BtzhZXHUaEoB9H0pEVYCIDeVNetUPYY3Xtuhss5oldPWOA1zEXgd-BOjwXXgiFCl&ratebypass=yes'
[download] Destination: Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webm
[download] 100% of 4.21MiB in 00:00
[debug] ffmpeg command line: ffprobe -show_streams 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webm'
[ffmpeg] Destination: Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.mp3
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webm' -vn -acodec libmp3lame -b:a 320k 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.mp3'
Deleting original file Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webm (pass -k to keep)
[ffmpeg] Converting thumbnail "Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webp" to JPEG
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webp' -bsf:v mjpeg2jpeg 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webp.jpg'
[ffmpeg] Adding thumbnail to "Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.mp3' -i 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.webp.jpg' -c copy -map 0 -map 1 -metadata:s:v 'title="Album cover"' -metadata:s:v 'comment="Cover (Front)"' 'file:Sabaton - The Attack of the Dead Men (Cover на русском _ RADIO TAPOK)-hRow6G5wQIw.temp.mp3'

[EDIT]
If embedding the thumbnail doesn't work, the following fix can be applied:
777d5a4
[EDIT2]
You might consider updating your ffmpeg version and Python as well.

@antdude
Copy link

antdude commented Aug 22, 2020

Same here with https://www.youtube.com/watch?v=za8PP4xLHdQ (Lovecraft Country: “Sundown” (Episode 1 - Full Episode) | HBO Max) from two different 64-bit Linux boxes:

$ youtube-dl -v https://www.youtube.com/watch?v=za8PP4xLHdQ
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=za8PP4xLHdQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.7.8 (CPython) - Linux-5.5.11-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] za8PP4xLHdQ: Downloading webpage
ERROR: za8PP4xLHdQ: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1893, in _real_extract
'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: za8PP4xLHdQ: YouTube said: Unable to extract video data

$ youtube-dl -v https://www.youtube.com/watch?v=za8PP4xLHdQ
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=za8PP4xLHdQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.2 (CPython) - Linux-3.16.0-11-amd64-x86_64-with-debian-8.11
[debug] exe versions: ffmpeg 3.2.10-1, ffprobe 3.2.10-1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] za8PP4xLHdQ: Downloading webpage
ERROR: za8PP4xLHdQ: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1893, in _real_extract
'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: za8PP4xLHdQ: YouTube said: Unable to extract video data

:(

@nicolaasjan
Copy link

Same here with Lovecraft Country: “Sundown” (Episode 1 - Full Episode) | HBO Max (Lovecraft Country: “Sundown” (Episode 1 - Full Episode) | HBO Max) from two different 64-bit Linux boxes:
---snip---
:(

That one works here with the youtube.py fix (cae18ef), even without the cookies.txt option...:

youtube-dl --ignore-config -F -v https://www.youtube.com/watch?v=za8PP4xLHdQ
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '-F', '-v', 'https://www.youtube.com/watch?v=za8PP4xLHdQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.6.9 (CPython) - Linux-4.15.0-112-generic-x86_64-with-LinuxMint-19.3-tricia
[debug] exe versions: ffmpeg N-98759-g1c7e55d, ffprobe N-98759-g1c7e55d
[debug] Proxy map: {}
[youtube] za8PP4xLHdQ: Downloading webpage
[youtube] za8PP4xLHdQ: Downloading embed webpage
[youtube] za8PP4xLHdQ: Refetching age-gated info webpage
[info] Available formats for za8PP4xLHdQ:
format code  extension  resolution note
249          webm       audio only tiny   58k , opus @ 50k (48000Hz), 22.61MiB
250          webm       audio only tiny   75k , opus @ 70k (48000Hz), 28.64MiB
140          m4a        audio only tiny  133k , m4a_dash container, mp4a.40.2@128k (44100Hz), 63.60MiB
251          webm       audio only tiny  144k , opus @160k (48000Hz), 56.56MiB
278          webm       256x144    144p   88k , webm container, vp9, 24fps, video only, 36.30MiB
160          mp4        256x144    144p  110k , avc1.4d400c, 24fps, video only, 23.62MiB
242          webm       426x240    240p  195k , vp9, 24fps, video only, 48.08MiB
133          mp4        426x240    240p  300k , avc1.4d4015, 24fps, video only, 44.46MiB
243          webm       640x360    360p  417k , vp9, 24fps, video only, 96.93MiB
134          mp4        640x360    360p  543k , avc1.4d401e, 24fps, video only, 77.36MiB
244          webm       854x480    480p  768k , vp9, 24fps, video only, 161.19MiB
135          mp4        854x480    480p  805k , avc1.4d401e, 24fps, video only, 112.37MiB
136          mp4        1280x720   720p 1146k , avc1.4d401f, 24fps, video only, 183.39MiB
247          webm       1280x720   720p 1517k , vp9, 24fps, video only, 286.00MiB
248          webm       1920x1080  1080p 2667k , vp9, 24fps, video only, 506.82MiB
137          mp4        1920x1080  1080p 6461k , avc1.640028, 24fps, video only, 689.23MiB
18           mp4        640x360    360p  424k , avc1.42001E, 24fps, mp4a.40.2@ 96k (44100Hz), 208.52MiB
22           mp4        1280x720   720p  502k , avc1.64001F, 24fps, mp4a.40.2@192k (44100Hz) (best)

@antdude
Copy link

antdude commented Aug 23, 2020

Thanks nicolaasjan. I'll wait for the official binary. I hope it is very soon!

@nicolaasjan
Copy link

nicolaasjan commented Aug 23, 2020

Thanks nicolaasjan. I'll wait for the official binary. I hope it is very soon!

Since you are on Linux, compiling the binary is quite simple.
(of course run make after you applied the changes in youtube.py):

git clone https://github.com/ytdl-org/youtube-dl.git
cd youtube-dl
make

Then copy youtube-dl to /usr/local/bin.

@antdude
Copy link

antdude commented Aug 23, 2020

No luck on two boxes:

$ git clone https://github.com/ytdl-org/youtube-dl.git
Cloning into 'youtube-dl'...
remote: Enumerating objects: 98251, done.
remote: Total 98251 (delta 0), reused 0 (delta 0), pack-reused 98251
Receiving objects: 100% (98251/98251), 56.27 MiB | 21.13 MiB/s, done.
Resolving deltas: 100% (72379/72379), done.
Checking connectivity... done.
$ cd youtube-dl/
$ time make
mkdir -p zip
for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do
mkdir -p zip/$d ;
cp -pPR $d/.py zip/$d/ ;
done
touch -t 200001010101 zip/youtube_dl/
.py zip/youtube_dl//.py
mv zip/youtube_dl/main.py zip/
cd zip ; zip -q ../youtube-dl youtube_dl/.py youtube_dl//*.py main.py
rm -rf zip
echo '#!/usr/bin/env python' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl
COLUMNS=80 /usr/bin/env python youtube_dl/main.py --help | /usr/bin/env python devscripts/make_readme.py
/usr/bin/env python devscripts/make_contributing.py README.md CONTRIBUTING.md
/bin/sh: 1: pandoc: not found
/bin/sh: 1: [: =: unexpected operator
pandoc -f markdown -t plain README.md -o README.txt
make: pandoc: Command not found
Makefile:92: recipe for target 'README.txt' failed
make: *** [README.txt] Error 127

real 0m2.448s
user 0m1.964s
sys 0m0.300s

$ git clone https://github.com/ytdl-org/youtube-dl.git
Cloning into 'youtube-dl'...
remote: Enumerating objects: 98251, done.
remote: Total 98251 (delta 0), reused 0 (delta 0), pack-reused 98251
Receiving objects: 100% (98251/98251), 56.28 MiB | 19.71 MiB/s, done.
Resolving deltas: 100% (72378/72378), done.
$ cd youtube-dl/
$ time make
mkdir -p zip
for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do
mkdir -p zip/$d ;
cp -pPR $d/.py zip/$d/ ;
done
touch -t 200001010101 zip/youtube_dl/
.py zip/youtube_dl//.py
mv zip/youtube_dl/main.py zip/
cd zip ; zip -q ../youtube-dl youtube_dl/.py youtube_dl//*.py main.py
rm -rf zip
echo '#!/usr/bin/env python' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl
COLUMNS=80 /usr/bin/env python youtube_dl/main.py --help | /usr/bin/env python devscripts/make_readme.py
/usr/bin/env python devscripts/make_contributing.py README.md CONTRIBUTING.md
/bin/sh: pandoc: command not found
/bin/sh: line 0: [: =: unary operator expected
pandoc -f markdown -t plain README.md -o README.txt
make: pandoc: Command not found
make: *** [Makefile:92: README.txt] Error 127

real 0m1.382s
user 0m0.955s
sys 0m0.197s

I will just wait for the official binaries. ;)

@nicolaasjan
Copy link

No luck on two boxes:

---snip---

I will just wait for the official binaries. ;)

make: pandoc: Command not found

Don't you have pandoc installed? ;)
(necessary for making the documentation)

@dstftw dstftw closed this as completed in 16ee69c Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants