Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
some videos on 1tv.ru are downloaded in lower quality than the highest available, because youtube-dl fails to detect their *.m3u8 URI #13246
Comments
|
Thank you @dstftw ! |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.05.29. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
When downloading videos from 1tv.ru, most videos are downloaded in the highest quality possible, as expected, but for some reason, some videos are downloaded in the low quality.
Above, I provided two examples: example ...285-...vo_dvore is the lower quality one, ...271-...90_chelovek -- high quality.
When downloading ...vo_dvore (low quality) video, youtube-dl outputs:
[debug] Invoking downloader on 'http://redirect.1tv.ru/video/multibitrate/video/2017/05/31/a447ddc6-655c-4592-8e86-72dc3e717758_HD-news-2017_05_31-21_42_23_3800.mp4', when downloading ...90_chelovek (high quality), it outputs:
[debug] Invoking downloader on 'http://v5-dtln.1internet.tv/video/multibitrate/video/2017/05/31/02575d04-fd46-4189-bd1d-1ea41107e97c_HD-news-2017_05_31-21_17_15_,350,950,3800,.mp4.urlset/index-f3-v1-a1.m3u8'As you can see, their URIs are of the same form, but for some reason youtube-dl correctly detects the first *.m3u8 file location for the high quality video, but is unable to detect it for the lower quality one, therefore, it fallbacks to download it directly by *.mp4 URI. (If I understand it correctly, this is a fallback, right?)
I tried myself to open those initial URIs in browser and to play videos in video player in browser and to watch what is the difference in browser between those videos. I found that both of them are played the same, they both have high quality version. Then in dev tools I looked: what is the URI of the *.m3u8 playlist which the browser player is invoking. The low quality video had the following *.m3u8 URI: http://v4-dtln.1internet.tv/video/multibitrate/video/2017/05/31/a447ddc6-655c-4592-8e86-72dc3e717758_HD-news-2017_05_31-21_42_23_,350,950,3800,.mp4.urlset/index-f3-v1-a1.m3u8 . As you can see, it has the same form as the URI invoked by youtube-dl for the high quality video. Then I tried to download it directly by youtube-dl, and it was downloaded correctly, as it is shown in command prompt log above.
So, the "low quality video" actualy has a high quality version and youtube-dl successfully downloads it when invoked directly by manually entering *.m3u8 URI, but for some reason youtube-dl is unable itself to extract that *.m3u8 URI from the initial URI, while the player on 1tv.ru in browser successfully does that. Could you please fix that so that youtube-dl downloads such videos in the highest quality available, like it does this with other ones?
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.