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.
Include DASH for default max resolution selection & download #1643
Comments
|
+1 i just started using youtube-dl and was wondering why everything was in 720p :( |
|
For *nix users, this is a sh script that does basically the same thing as the cmd script above:
I think if this functionality is integrated into youtube-dl, it should probably be an option rather than default behavior, since ffmpeg seems to be an optional dependency. |
|
This script will download and merge >1080p or 1080 video, otherwise fallback to default youtube-dl behaviour. Just tweak it's options.
|
|
Based on the davidscholberg's script I'd suggest this modify:
|
|
Since you can't download whole playlists with these helper scripts, I built a small python script that lists all playlist video URLs. This, combined with xargs, allows the download of full playlists. Source: https://gist.github.com/Strayer/7627277 I also made some changes to the script of davidscholberg to avoid incomplete files and skip fully downloaded ones: Edit: Small change to the youtube-dl-dash script since I stumbled upon a video id that begins with a Edit no. 2: The script now uses the best formats available and is not hardcoded to 1080p anymore, falls back to default youtube-dl if there are no DASH Video sources. (Are there actually any videos without DASH now?) |
|
Zombie issue found. Needs to be closed ASAP. |
|
This has been the default behaviour for a long time. Closing. Thanks @Hrxn. |
When the highest resolution is DASH, automatically download & mux max-res DASH-VIDEO (say 137) with max bitrate DASH-AUDIO (say 141) as part of the default max resolution selection & download algorithm.
Currently I manually determine if 1080p is only in DASH format and if so run a cmd-script (like below) and thought it could probably be included in youtube-dl itself.
set URL=%*
youtube-dl --get-filename %URL% >tmpfile
set /p fname= <tmpfile
del tmpfile
echo %fname%
youtube-dl --no-mtime --retries 20 -f 137 %URL% -o tmp.vid
youtube-dl --no-mtime --retries 20 -f 141 %URL% -o tmp.aud
ffmpeg -i tmp.vid -i tmp.aud -c copy "%fname%"
del tmp.vid
del tmp.aud