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

[tumblr] Format extraction enhancement #14764

Closed
Hrxn opened this issue Nov 16, 2017 · 0 comments
Closed

[tumblr] Format extraction enhancement #14764

Hrxn opened this issue Nov 16, 2017 · 0 comments

Comments

@Hrxn
Copy link

@Hrxn Hrxn commented Nov 16, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.11.15

  • At least skimmed through the README, most notably the FAQ and BUGS sections

  • Searched the bugtracker for similar issues including closed ones


  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Issue:

Format extraction for tumblr.com does not fetch all available formats, maybe some site change recently?
Regardless, youtube-dl only ever finds and extracts a 720p variant, even if a better resolution is available.


Current format listing:

PS E:\Test> youtube-dl --verbose --ignore-config -F "https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--ignore-config', '-F', 'https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.4.4 - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[Tumblr] 167509718448: Downloading webpage
[Tumblr] 167509718448: Downloading iframe page
[info] Available formats for 167509718448:
format code  extension  resolution note
sd           mp4        480p
hd           mp4        720p       (best)
PS E:\Test>

Running youtube-dl and testing the result:

PS E:\Test> youtube-dl --ignore-config --verbose "https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.4.4 - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[Tumblr] 167509718448: Downloading webpage
[Tumblr] 167509718448: Downloading iframe page
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://burn-and-fade.tumblr.com/video_file/t:eWCbaVg_WFLL8B-lObiI9w/167509718448/tumblr_ozg2nsWYTW1whd2ww/720'
[download] Burn and Fade — 1080p MP4-167509718448.mp4 has already been downloaded
[download] 100% of 221.72KiB
PS E:\Test> MediaInfo '.\Burn and Fade — 1080p MP4-167509718448.mp4' | sls "Width|Height"

Width                                    : 1 280 pixels
Height                                   : 720 pixels


PS E:\Test>

youtube-dl with -g

PS E:\Test> youtube-dl --ignore-config --verbose -g "https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', '-g', 'https://burn-and-fade.tumblr.com/post/167509718448/1080p-mp4']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.4.4 - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
https://burn-and-fade.tumblr.com/video_file/t:eWCbaVg_WFLL8B-lObiI9w/167509718448/tumblr_ozg2nsWYTW1whd2ww/720
PS E:\Test>

Okay, now using this link returned with -g, you can see that it redirects to this (as can be observed within the browser):

https://vt.media.tumblr.com/tumblr_ozg2nsWYTW1whd2ww_720.mp4#_=_

This URL can be changed slightly, like this:

PS E:\Test> curl -L -O "https://vt.media.tumblr.com/tumblr_ozg2nsWYTW1whd2ww.mp4"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  248k  100  248k    0     0   248k      0  0:00:01 --:--:--  0:00:01  758k
PS E:\Test> MediaInfo .\tumblr_ozg2nsWYTW1whd2ww.mp4 | sls "width|height"

Width                                    : 1 920 pixels
Height                                   : 1 080 pixels


PS E:\Test> ls tumblr_*


    Directory: E:\Test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       16.11.2017     04:29         254614 tumblr_ozg2nsWYTW1whd2ww.mp4
-a----       16.11.2017     04:27         227044 tumblr_ozg2nsWYTW1whd2ww_720.mp4


PS E:\Test>

We now have a full 1080p file.
Just as uploaded to Tumblr.

@Hrxn Hrxn mentioned this issue Jan 7, 2018
5 of 9 tasks complete
@Hrxn Hrxn closed this Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.