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

youtube-dl lacks an easy way to download best 4K format, adding sound and converting to mp4 #15593

Closed
finnianr opened this issue Feb 13, 2018 · 13 comments
Labels

Comments

@finnianr
Copy link

@finnianr finnianr commented Feb 13, 2018

A Better -best
It seems the -best option only selects streams which include both the video and sound in one container. However most UHD 4K is in a video only stream. If you want to watch 4K you have to merge it with the a separately downloaded sound stream. Also the youtube 4K format is more often than not webm, which is not very portable. Playstation consoles for example, cannot play it. It would be nice to have automatic conversion to mp4.
To solve this problem I created a utility wrapper for youtube-dl with the Eiffel programming language. See this article: https://groups.google.com/forum/#!topic/eiffel-users/DZHqE7EO3Ww
The nice thing about my tool is it very simple to use and just does this one thing well.

It would would be nice to see the youtube-dl development team making my utility redundant by improving youtube-dl. Or perhaps there is already a way to achieve what my utility does but I just didn't realise it?

@finnianr finnianr changed the title youtube-dl lacks a easy way download 4K with sound and convert to mp4 youtube-dl lacks an easy way download 4K UHD formats with sound and convert to mp4 Feb 13, 2018
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2018

youtube-dl does this by default out of the box if ffmpeg is installed.

@dstftw dstftw closed this Feb 13, 2018
@dstftw dstftw added the invalid label Feb 13, 2018
@finnianr finnianr changed the title youtube-dl lacks an easy way download 4K UHD formats with sound and convert to mp4 youtube-dl lacks an easy way to download best 4K format, adding sound and converting to mp4 Feb 13, 2018
@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

Can you please offer an example of how it works. I have ffmpeg installed.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2018

youtube-dl URL.

@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

Really! I will give it a try.

@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

I am sorry, but this does not work on my machine as you say. I have recently updated youtube-dl to latest version. This example only downloaded the resolution 1280 x 676 mp4. No 4K video. Is this because for some reason youtube-dl has failed to detect that I have ffmpeg installed?

finnian@MacMini ~/Videos $ youtube-dl https://www.youtube.com/watch?v=B_nutbvGX8M 
[youtube] B_nutbvGX8M: Downloading webpage
[youtube] B_nutbvGX8M: Downloading video info webpage
[youtube] B_nutbvGX8M: Extracting video information
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[download] Destination: Taichi Wakita at Pipeline, Jan 23rd, 2018-B_nutbvGX8M.mp4
[download] 100% of 6.89MiB in 00:16
@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

Here is my configuration

finnian@MacMini ~/Videos $ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.08
[debug] Python version 2.7.6 (CPython) - Linux-3.13.0-141-generic-x86_64-with-LinuxMint-17-qiana
[debug] exe versions: avconv 9.20-6, avprobe 9.20-6, ffmpeg 3.3.3, ffprobe 3.3.3
[debug] Proxy map: {}

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2018

WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2018

Remove avconv from $PATH or use --prefer-ffmpeg.

@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

Ok lets give that a go.

@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

I tried it but it only partially solves my problem. It does download the best 4K version and adds sound, but the V9 codec is not very portable. I won't be able to play it on my Playstation. Is there an easy way to make it re-encode with H.26x and make the container mp4?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 13, 2018

--recode-video.

@finnianr
Copy link
Author

@finnianr finnianr commented Feb 13, 2018

Thanks! will try later. Gotta go now.

@avagraha
Copy link

@avagraha avagraha commented Mar 5, 2019

Finniarn did you successfully use recode video for your link? I failed anytime with zero warnings. Very strange

@ytdl-org ytdl-org deleted a comment from phubbard Mar 19, 2020
@ytdl-org ytdl-org deleted a comment from joonas-fi Mar 19, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Mar 19, 2020
@ytdl-org ytdl-org deleted a comment from finnianr Mar 19, 2020
@ytdl-org ytdl-org deleted a comment from avagraha Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.