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

Viki has stopped working #282

Open
shivsah opened this issue Dec 10, 2020 · 12 comments
Open

Viki has stopped working #282

shivsah opened this issue Dec 10, 2020 · 12 comments

Comments

@shivsah
Copy link

shivsah commented Dec 10, 2020

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '--username', 'PRIVATE', '--password', 'PRIVATE', '--list-sub', 'https://www.viki.com/videos/1172625v-true-beauty-episode-1', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.12.07
[debug] Python version 3.7.3 (CPython) - Linux-4.19.0-12-cloud-amd64-x86_64-with-debian-10.7
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
[viki] Logging in
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/home/sysad/.local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 632, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/home/sysad/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2248, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

@october262
Copy link

this link - 'https://www.viki.com/videos/1172625v-true-beauty-episode-1'
works if i use youtube-dl but does not work with youtube-dlc yet.

@shivsah
Copy link
Author

shivsah commented Dec 10, 2020 via email

@pukkandan
Copy link
Contributor

pukkandan commented Dec 10, 2020

This was caused by a mistake I made while merging youtube-dl #245. The part that works in yt-dl will be fixed in #280

@zackmark29
Copy link

zackmark29 commented Dec 12, 2020

All viki content already DRM protected. There's nothing you can do about it :) And the stream API only returning with MPD Url not the direct links. or try from other country.

1

@shivsah
Copy link
Author

shivsah commented Dec 23, 2020

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '--username', 'PRIVATE', '--password', 'PRIVATE', '--add-header', 'x-viki-app-ver: 2.2.5.1428709186', '--add-header', 'x-viki-as-id: 100005a', 'https://www.viki.com/videos/1172625v-true-beauty-episode-1', '-v']
[debug] Adding header from command line option x-viki-app-ver: 2.2.5.1428709186
[debug] Adding header from command line option x-viki-as-id: 100005a
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.12.22
[debug] Python version 3.7.3 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2, ffprobe 4.2
[debug] Proxy map: {}
[viki] Logging in
[viki] 1172625v: Downloading video JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[viki] 1172625v: Downloading video streams JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[info] Available formats for 1172625v:
format code extension resolution note
mpd-http-6 m4a audio only DASH audio 49k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-7 m4a audio only DASH audio 65k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-5 m4a audio only DASH audio 81k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-8 m4a audio only DASH audio 193k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-9 m4a audio only DASH audio 193k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-1 mp4 426x238 DASH video 221k , mp4_dash container, avc1.640015, 30fps, video only
mpd-http-2 mp4 640x360 DASH video 420k , mp4_dash container, avc1.64001E, 30fps, video only
mpd-http-3 mp4 852x480 DASH video 657k , mp4_dash container, avc1.64001F, 30fps, video only
mpd-http-4 mp4 1280x720 DASH video 1312k , mp4_dash container, avc1.64001F, 30fps, video only (best)

I've tried to get the mpd file for 1080p from Germany, US ,UK and India to no avail, looks like they've made 1080p stream DRM only...

@zackmark29 Any idea as to which country has mpd 1080p stream..?

@zackmark29
Copy link

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '--username', 'PRIVATE', '--password', 'PRIVATE', '--add-header', 'x-viki-app-ver: 2.2.5.1428709186', '--add-header', 'x-viki-as-id: 100005a', 'https://www.viki.com/videos/1172625v-true-beauty-episode-1', '-v']
[debug] Adding header from command line option x-viki-app-ver: 2.2.5.1428709186
[debug] Adding header from command line option x-viki-as-id: 100005a
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.12.22
[debug] Python version 3.7.3 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2, ffprobe 4.2
[debug] Proxy map: {}
[viki] Logging in
[viki] 1172625v: Downloading video JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[viki] 1172625v: Downloading video streams JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[info] Available formats for 1172625v:
format code extension resolution note
mpd-http-6 m4a audio only DASH audio 49k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-7 m4a audio only DASH audio 65k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-5 m4a audio only DASH audio 81k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-8 m4a audio only DASH audio 193k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-9 m4a audio only DASH audio 193k , m4a_dash container, mp4a.40.2 (48000Hz)
mpd-http-1 mp4 426x238 DASH video 221k , mp4_dash container, avc1.640015, 30fps, video only
mpd-http-2 mp4 640x360 DASH video 420k , mp4_dash container, avc1.64001E, 30fps, video only
mpd-http-3 mp4 852x480 DASH video 657k , mp4_dash container, avc1.64001F, 30fps, video only
mpd-http-4 mp4 1280x720 DASH video 1312k , mp4_dash container, avc1.64001F, 30fps, video only (best)

I've tried to get the mpd file for 1080p from Germany, US ,UK and India to no avail, looks like they've made 1080p stream DRM only...

@zackmark29 Any idea as to which country has mpd 1080p stream..?

I think any country, the 1080p already DRM. I can still download it but with my personal tool only.

@shivsah
Copy link
Author

shivsah commented Dec 23, 2020

Any idea as to why youtube-dl doesn't pick it up..?

@zackmark29
Copy link

zackmark29 commented Dec 23, 2020

Any idea as to why youtube-dl doesn't pick it up..?

Because it's DRM related.

@october262
Copy link

october262 commented Dec 23, 2020

works ok for me using youtube-dl - $ youtube-dl https://www.viki.com/videos/1172625v-true-beauty-episode-1
[viki] 1172625v: Downloading video JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[viki] 1172625v: Downloading video streams JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[download] Destination: True Beauty - Episode 1-1172625v.fmpd-http-2.mp4
[download] 1.4% of 230.12MiB at 1.12MiB/s ETA 03:22^C
ERROR: Interrupted by user

@october262
Copy link

Any idea as to why youtube-dl doesn't pick it up..?

Because it's DRM related.

does youtube-dl actually say that the 1080p version is DRM protected ??

@shivsah
Copy link
Author

shivsah commented Dec 25, 2020

works ok for me using youtube-dl - $ youtube-dl https://www.viki.com/videos/1172625v-true-beauty-episode-1
[viki] 1172625v: Downloading video JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[viki] 1172625v: Downloading video streams JSON
[viki] 1172625v: Downloading MPD manifest
WARNING: [viki] Unknown MIME type image/jpeg in DASH manifest
[download] Destination: True Beauty - Episode 1-1172625v.fmpd-http-2.mp4
[download] 1.4% of 230.12MiB at 1.12MiB/s ETA 03:22^C
ERROR: Interrupted by user

That's a 360p stream

@Anutrix
Copy link

Anutrix commented May 10, 2021

How to get 360p or 480p stream, assuming it is still drm-free?

siikamiika pushed a commit to siikamiika/yt-dlc that referenced this issue Jun 19, 2021
Closes blackjack4494#282

* Refactor authorization as an extension to `_download_json`
* Better error messages and warnings
* Respect `--ignore-no-formats-error`
* Extract subtitles from manifests
* Try with crackle's geo-location service if all hard-coded countries fail
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