Download bilbili videos in 1080p resolution?
See original GitHub issueDO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I remove or skip any mandatory* field
Checklist
- I’m asking a question and not reporting a bug or requesting a feature
- I’ve looked through the README
- I’ve verified that I’m running yt-dlp version 2022.11.11 (update instructions) or later (specify commit)
- I’ve searched the bugtracker for similar questions including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Please make sure the question is worded well enough to be understood
How can I download bilbili videos in 1080p resolution? By default the videos get downloaded either in 720p or 480p resolution. I suppose that’s because to access full HD resolution viewing, Bilibili requires login. What’s the workaround?
I also tried using the cookies method by logging into bilbili and exporting my cookies.txt file. Then I used this command. But still the resolution of video was low.
yt-dlp https://www.bilibili.com/video/BV1W8411b7K5/?=8&share_source=copy_web&vd_source=14d801274def2dd112297a8c82660e8c res:1080–cookies cookies.txt
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
Microsoft Windows [Version 10.0.19045.2251]
(c) Microsoft Corporation. All rights reserved.
D:\YTDOWN> yt-dlp -vU https://www.bilibili.com/video/BV1W8411b7K5/?=8&share_source=copy_web&vd_source=14d801274def2dd112297a8c82660e8c res:1080--cookies cookies.txt
[debug] Command-line config: ['-vU', 'https://www.bilibili.com/video/BV1W8411b7K5/?=8']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b64402] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 5.1.1-full_build-www.gyan.dev (setts), ffprobe 5.1.1-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)
[debug] [BiliBili] Extracting URL: https://www.bilibili.com/video/BV1W8411b7K5/?=8
[BiliBili] 1W8411b7K5: Downloading webpage
[BiliBili] BV1W8411b7K5: Extracting videos in anthology
[BiliBili] Downloading playlist BV1W8411b7K5 - add --no-playlist to download just the video BV1W8411b7K5
[download] Downloading playlist: 【c4d高端操作】俄国动态MSE-DOV03
[BiliBili] Playlist 【c4d高端操作】俄国动态MSE-DOV03: Downloading 20 videos of 20
[download] Downloading video 1 of 20
[debug] [BiliBili] Extracting URL: https://www.bilibili.com/video/BV1W8411b7K5?p=1
[BiliBili] 1W8411b7K5: Downloading webpage
[BiliBili] BV1W8411b7K5: Extracting videos in anthology
[BiliBili] Format(s) 720P 高清, 1080P 高码率, 1080P 高清 are missing; you have to login or become premium member to download them
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[BiliBili] 218329869: Extracting chapters
[debug] Default format spec: bestvideo*+bestaudio/best
[info] BV1W8411b7K5_p1: Downloading 1 format(s): 6+2
[debug] Invoking http downloader on "https://upos-hz-mirrorakam.akamaized.net/upgcxcode/51/05/840850551/840850551-1-100023.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1669557288&gen=playurlv2&os=akam&oi=3075724705&trid=ef8764defcf34cb4bd3a07246d6f8f79u&mid=0&platform=pc&upsig=62096b70bcf937a30b710a99701f0eca&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&hdnts=exp=1669557288~hmac=97385e8a6f98a467d1e03631ae0933b1ea2bc280781dc09dc5cbd9efc8649f9f&bvc=vod&nettype=0&orderid=0,1&buvid=&build=0&agrr=0&bw=94216&logo=80000000"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: 【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f6.mp4
[download] 100% of 1.08MiB in 00:00:00 at 2.62MiB/s
[debug] Invoking http downloader on "https://upos-hz-mirrorakam.akamaized.net/upgcxcode/51/05/840850551/840850551-1-30280.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1669557288&gen=playurlv2&os=akam&oi=3075724705&trid=ef8764defcf34cb4bd3a07246d6f8f79u&mid=0&platform=pc&upsig=ca897f22769106ce2050a7ba3be59f26&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&hdnts=exp=1669557288~hmac=9c28d7f047d1e7c62b27d96e7d09cf2ae9647779370bc8604804f95bccffaa0c&bvc=vod&nettype=0&orderid=0,1&buvid=&build=0&agrr=0&bw=33934&logo=80000000"
[download] Destination: 【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f2.m4a
[download] 100% of 397.67KiB in 00:00:00 at 2.60MiB/s
[Merger] Merging formats into "【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f6.mp4" -i "file:【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f2.m4a" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].temp.mp4"
Deleting original file 【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f6.mp4 (pass -k to keep)
Deleting original file 【c4d高端操作】俄国动态MSE-DOV03 p01 Cube [BV1W8411b7K5_p1].f2.m4a (pass -k to keep)
[download] Downloading video 2 of 20
[debug] [BiliBili] Extracting URL: https://www.bilibili.com/video/BV1W8411b7K5?p=2
[BiliBili] 1W8411b7K5: Downloading webpage
[BiliBili] BV1W8411b7K5: Extracting videos in anthology
[BiliBili] Format(s) 1080P 高清, 720P 高清 are missing; you have to login or become premium member to download them
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[BiliBili] 218329869: Extracting chapters
[debug] Default format spec: bestvideo*+bestaudio/best
[info] BV1W8411b7K5_p2: Downloading 1 format(s): 4+2
[debug] Invoking http downloader on "https://upos-hz-mirrorakam.akamaized.net/upgcxcode/49/66/840856649/840856649-1-30032.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1669557292&gen=playurlv2&os=akam&oi=3075724705&trid=6d844d3573574bf39ad303f57cfd5a9cu&mid=0&platform=pc&upsig=697da61808bb3f7ce414097d2a092585&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&hdnts=exp=1669557292~hmac=246ae958a0bc38e3432c675fb7919aeab9983adb412909c56c385673d6451b70&bvc=vod&nettype=0&orderid=0,1&buvid=&build=0&agrr=0&bw=30452&logo=80000000"
[download] Destination: 【c4d高端操作】俄国动态MSE-DOV03 p02 Design & Light _ Redshift _ XP Dynamics [BV1W8411b7K5_p2].f4.mp4
[download] 23.5% of 77.45MiB at 1.31MiB/s ETA 00:45
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to Download Bilibili Videos in HD
How to Download Bilibili Videos in HD ; 1. Launch 4K Video Downloader. It's available for macOS, Windows and Linux, and Android. ;...
Read more >4 Ways to Download Bilibili Videos or Playlist to MP4, MP3, etc.
How to Download Bilibili Videos and Playlist to MP4, MP3, or Others ... it's able to safely download Bilibili videos in 1080p, 4K...
Read more >Free BiliBili Video Downloader HD Quality Fast
Free online BiliBili video downloader. Download BiliBili HD video fast and unlimited free. Just paste your URL here.
Read more >3 Best Ways to Download Videos from Bilibili 2022 - Jihosoft
Method 2. Use VideoFK downloader · Step 1. Go to the Bilibili website, click on whatever video you like, and copy its link...
Read more >Download Bilibili videos in HD - YouTube 4K downloader
Bilibili video downloader to download videos from Bilibili at the best quality. Download Bilibili videos and convert to MP4 quickly and easily for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Non-premium users have access up to basic 1080p, when using a premium account a higher bitrate version is unlocked, maybe up to 4K+ if available.
Full verbose output using a non-premium account:
I remember it works. But it just logs wrong that it can’t distinguish if it’s because not logged in or just not premium account. https://github.com/yt-dlp/yt-dlp/blob/a9d069f5b8540f15caaf696bc39ce6a969f8b11c/yt_dlp/extractor/bilibili.py#L64-L69