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.
--format='bestvideo+bestaudio' --get-url crashes #2883
Comments
|
I don't think that this is supported, youtube-dl doesn't mux DASH files, you have to do it yourself and download both files separately, then use ffmpeg or something similar to mux both files. |
|
Also for this use case i do not need to mux video and audio, i just need urls, mpv will do the rest. |
|
@jaimeMF Oh, didn't see, that's quite handy. Will try that asap. |
|
The above referenced commit (16ae61f) fixes this bug and outputs URLs separated by new lines. You can split the output, to use with mpv for example, in a script with something like this (bash): urls=( $(youtube-dl --format='bestvideo+bestaudio' --get-url "https://www.youtube.com/watch?v=MjQG1s3Isgg") )
video_url="${urls[0]}"
audio_url="${urls[1]}"
mpv --audio-file "$audio_url" "$video_url" |
Handle --get-url with merged formats (fixes #2883)
Many videos are available in 1080p only in DASH formats. Often i prefer to play videos in mpv instead of saving to file, it supports external audio tracks. I guess youtube-dl should return several urls, may be in some special or custom format. Now it just crashes: