youtube-dl-wpf icon indicating copy to clipboard operation
youtube-dl-wpf copied to clipboard

-merge-output-format and -f question

Open astering opened this issue 1 year ago • 2 comments

Hello, I find some weird bugs, if I let the preset "format" empty, the content of "container" will be set as argument of "-f".

For example, format = best, container = mkv, the it will be: -f best -merge-output-format mkv,

but if format is empty, container = mkv, then the argument is -f mkv.

I want to have mkv as output,merge some subtitles, but the stream maybe vp9 or h264, some videos don't have mkv, and will cause unexpected behavior.

astering avatar Dec 03 '23 15:12 astering

When I first wrote this, I made the assumption based on my understanding of the documentation that specifying --merge-output-format alone was equivalent to specifying --format with the same argument. Looks like I was wrong.

Fixing this would require a breaking change to the preset mechanism, which might break some existing user-defined presets. But it's probably the right thing to do. For now, you can leave both format and container empty, and specify --merge-output-format, mkv as extra arguments.

database64128 avatar Dec 04 '23 03:12 database64128

For now, you can leave both format and container empty, and specify --merge-output-format, mkv as extra arguments.

Yeh, that's what I set now. Thanks to custom parameters, setting any suitable parameters is always feasible.

astering avatar Dec 04 '23 03:12 astering