-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement user-configurable format selection (with support for a list of sane presets of configuration combinations) #11
Comments
I'd like to add: you probably want to add the For audio-only, Regarding audio-only, there might be several clean solutions:
|
I think it's wise to keep specifying an Using
YouTube doesn't serve the high-quality videos as single files but instead provides the audio and video in two different files (DASH). Hence, we need to make sure we grab the highest quality stream (audio and video) individually. I feel like the Ideally, I'd love to allow the user to specify any format selection that's supported by youtube-dl, Perhaps it'd make sense to leave that to the user and define some easy profile preset for everyday UI usage (e.g. keeping the current default for video+audio plus adding an audio-only one) and let advanced users supply their own What I mean by that is, for example, adding an optional I really need to think about this. |
--merge-output-format
for audio-only profiles.
Thanks for your answer and clarification!
Sounds good to me! Note the following:
|
I have just discussed some ideas with @thrdroom and we ended up with the following battle-plan: We will drop the fixed Dropping the file extension allows us to target many different format configurations. However, this comes with the cost of not having deterministic filenames anymore. Now with that out of the way, we can allow youtube-dl to drop non-mkvs, such as our old example goal... mp3s! The bad news is, that YouTube doesn't deliver mp3s, and if we just do @thrdroom mentioned the desire to be able to remux the file to another container. So far, we've been attempting this with In summary, as for the user-facing configurations that we can pass to youtube-dl:
In addition to those, a remux target container will be configurable. It will be passed to ffmpeg's output filename extension and also passed to youtube-dl via Further considerations#18 will be resolved by this plan as we're not going to be forcing non-mkv-compatible subtitles into mkv containers (or really, we're not forcing any codec into any container! youtube-dl decides the output container and we allow it to set the correct filename extension). The idea with presets that has been first mentioned two comments above this one can be altered to integrate nicely with this plan: We will build a list into youtube-sync that is supposed to list all the popular use cases of youtube-sync. Two example configurations:
These presets will specify values for all the relevant configurations that have been explained in the first part of this comment. I will consider the presets to be the default operating modes of youtube-sync. If you want another operating mode (e.g. "I want to download the best possible audio stream, convert it to mp3 and put it into an mka-container"), you will not be using one of the presets but instead you will specify the relevant configuration yourself. This will of course be documented. The goal, however, is to make sure that common choices are going to be represented by presets. This avoids user errors (e.g. youtube-dl dropping an mp3 file and then we try to remux that into a wav file). |
The current plan for everything related to formats, filenames and codecs is now located here
Old issue description:
#9 has added a way to set the -f parameter for all downloads within a profile.
This is not exposed in the UI yet, requiring manual user intervention.
Implement a way to deal with this from within the UI.
Also see #8 (comment)
The text was updated successfully, but these errors were encountered: