Determine merge container better (See desc) (#1482)

* Determine the container early. Closes #4069
* Use codecs instead of just file extensions
* Obey `--prefer-free-formats`
* Allow fallbacks in `--merge-output`

Authored by: pukkandan, selfisekai
This commit is contained in:
Lauren N. Liberda 2022-08-04 02:42:12 +02:00 committed by GitHub
parent fe0918bb65
commit fc61aff41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 84 additions and 39 deletions

View file

@ -782,7 +782,8 @@ def create_parser():
'--merge-output-format',
action='store', dest='merge_output_format', metavar='FORMAT', default=None,
help=(
'Container to use when merging formats (e.g. bestvideo+bestaudio). Ignored if no merge is required. '
'Containers that may be used when merging formats, separated by "/" (Eg: "mp4/mkv"). '
'Ignored if no merge is required. '
f'(currently supported: {", ".join(sorted(FFmpegMergerPP.SUPPORTED_EXTS))})'))
video_format.add_option(
'--allow-unplayable-formats',