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.
Allow merging formats #1612
Allow merging formats #1612
Comments
|
Great, this will take care of missing 1080p. Pls. do this with priority. |
|
We also need -f 135 as 480p is now only available as dash video. |
|
This need to be put as default if other 1080p is not available. |
|
Perfect! I just came here to file an issue asking for much less (saving audio from dash streams with an extension different from those of the videos---namely, saving AAC audio with extension Otherwise, to download 480p videos (which I do for lectures and so on with other projects of mine, like The way we are right now, calling youtube-dl once for format 135 results in a file ending with extension mp4 and doing a successive download call to format 140 gives me the message that the file was already downloaded. I can obviously workaround this, renaming the files, taking care of the muxing of both the audio and the video etc., but that would be a pain. Great that other people also felt the same way that I did. :) Regards, Rogério. |
|
Another thing: the templates for file naming don't seem to have (after a quick look) a string for the format of the video. This would be a very welcome addition, IMVHO. It would also fix a bug that I received in Debian quite some time ago: bugs.debian.org/cgi-bin/bugreport.cgi?bug=643831 Should I open a separate issue for the bug above? Thanks. |
|
That is entirely a separate bug. I think you should open a separate ticket. On Sat, Oct 19, 2013 at 1:27 AM, Rogério Brito notifications@github.comwrote:
|
$ youtube-dl b6vSf0cA9qY -o "%(format)s.%(ext)s" [youtube] Setting language [youtube] b6vSf0cA9qY: Downloading video webpage [youtube] b6vSf0cA9qY: Downloading video info webpage [youtube] b6vSf0cA9qY: Extracting video information [download] Destination: 22 - 720x1280.mp4 [download] 100% of 46.49MiB in 00:14 |
|
@phihag, thanks. I missed that, but I also sent a micro-pull request with another way of working around the output naming. |
|
|
|
@hdevelop Thank you, we are well aware of basic ffmpeg muxing. If you post, please don't include the names of malicious software. Thanks! |
|
Just for the record, when muxing we may want to partially get rid of With this option turned on, two muxes of the same audio and video are Nice way to help deduplicating filesystems if you happen to download Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
|
|
|
With Windows Media Player Classic when you play a DASH-video (mp4), it automatically detects the DASH-audio (m4a). To make it work, I changed the following setting : I don't know if the other video players also automatically detects m4a-files when playing mp4-files. I would prefer that in youtube-dl, there is an option to enable/disable the automatically merge of DASH-video+DASH-audio to a single file with ffmpeg. |
|
ok thanx to info by jaimeFM managed a 4k here which plays on my ubuntu perfectly with mpv https://launchpad.net/~mc3man/+archive/mpv-tests youtube-dl -t -f 138 k_okcNVZqqI mediainfo '00001-INK DROPS 4K (ULTRA HD)-k_okcNVZqqI.mp4' Video 4kdrops.mp4 Video Audio then audio youtube-dl -t --extract-audio -f 141 k_okcNVZqqI Video Audio Complete name : 4kdrops.mp4 Video Audio [youtube] k_okcNVZqqI: Extracting video information to bind mute mp4 and sound m4a 256k ffmpeg -i INK.mp4 -i INK.m4a -c copy 4kdrops.mp4 which gives us 4kdrops.mp4 Video Audio |
|
Good to see it solved. While I think it would be better to auto delete the orig files after they were successful merged. |
|
Is the doc updated somewhere ? (I'm using $ youtube-dl -f 137+140 http://www.youtube.com/watch?v=yPeH888D9HgWould download both |
|
@Glideh No, the feature is not documented because there are some things that need to be improved. |
|
Ho ok thanks. It works here |
|
what is the combination of '18' format id? |
Allow individual formats in
-fto consist of multiple format IDs, for exampleA format is picked only if all the IDs it consists of are present (and ffmpeg is available?). If this options is set, the format name is automatically appended to the video filename while downloading, i.e. we'll get
title-id.ext.f137andtitle-id.ext.f1141by default. If a format with a plus is picked, the extracted information contains a_postprocessing: {type:"ffmpeg-merge", "files": ["title-id.ext.f137", "title-id.ext.f1141"]}hint, and ffmpeg is automatically invoked to create a single file.