-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Streamable.com reports two formats, only one gets downloaded #33007
Comments
This looks like the expected behaviour, for a slightly non-obvious reason. yt-dl downloads what it considers to be the best version of the content (preferring the best separate video and audio streams if available). Here we have In the first case we seem to be getting the wrong format, but actually any extension such as
and that is actually the format $ youtube-dl-20241217 -f '[format_id=mp4]' 'https://streamable.com/fh3uim'
[Streamable] fh3uim: Downloading JSON metadata
[download] Destination: unnamed-fh3uim.mp4
[download] 100% of 4.61MiB in 00:05
$ |
When I specify format I choose, and I choose 'not to be chosen' automatically.
which is specific to automatic choice.
As above - I did prefer, not a program. So program should not tech me what to do.
I don't think so, as in case of wrong format I would get an error
So, clearly, 'mp4' is not 'wrong format' - otherwise it would issue an error.
I don't get that - what's the difference between |
Read the quoted excerpt from the Manual above: Basically, this issue is the same as yt-dlp/yt-dlp#1282; we should implement a similar additional format ID sanitisation step to avoid the case that a |
Understood. |
So with a suitable patch: $ python -m youtube_dl -vF 'https://streamable.com/fh3uim'
[debug] System config: [u'--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'https://streamable.com/fh3uim']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: d55d1f423
[debug] Python 2.7.18 (CPython i686 32bit) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial - OpenSSL 1.1.1w 11 Sep 2023 - glibc 2.15
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[Streamable] fh3uim: Downloading JSON metadata
[info] Available formats for fh3uim:
format code extension resolution note
fmp4 mp4 460x612 321k, 30fps, 4.61MiB
mp4-mobile mp4 359x478 383k, 30fps, 5.49MiB (best)
$ python -m youtube_dl -f mp4 --get-format 'https://streamable.com/fh3uim'
mp4-mobile - 359x478
$ python -m youtube_dl -f fmp4 --get-format 'https://streamable.com/fh3uim'
fmp4 - 460x612
$ |
Checklist
Verbose log
Description
Streamable.com reports two formats, only one gets downloaded.
Streamable reports two formats, only one gets downloaded - bottom one.
It happens when they are reported in this, particular order: 'mp4, mp4-mobile'.
Checked with other videos (id: 315u24, 2fu687) and the result is the same.
Funny thing is - it's not always the case, like for these: 62pbzs, bibj5o, work fine.
This time the formats are reported as 'mp4-mobile, mp4', and they both get downloaded.
It may not be our fault. If so, feel free to close it without notice.
The text was updated successfully, but these errors were encountered: