diff options
author | Tom-Oliver Heidel <blackjack4494@web.de> | 2020-09-16 10:31:30 +0200 |
---|---|---|
committer | Tom-Oliver Heidel <blackjack4494@web.de> | 2020-09-16 10:31:30 +0200 |
commit | 08676fb591654adaad57d7279449c3292654079c (patch) | |
tree | 7675a4a77601579afdb6de0f126a67a502727dd3 /youtube_dlc/__init__.py | |
parent | 89233ccbfb508dee433a14d6b6357baac2bcbbae (diff) | |
parent | cd93279de828c0e73a7607f4da9750d572010f59 (diff) | |
download | hypervideo-pre-08676fb591654adaad57d7279449c3292654079c.tar.lz hypervideo-pre-08676fb591654adaad57d7279449c3292654079c.tar.xz hypervideo-pre-08676fb591654adaad57d7279449c3292654079c.zip |
Merge branch 'Zocker1999NET-ext/remuxe-video'
Diffstat (limited to 'youtube_dlc/__init__.py')
-rw-r--r-- | youtube_dlc/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dlc/__init__.py b/youtube_dlc/__init__.py index fc11642b9..13b658eff 100644 --- a/youtube_dlc/__init__.py +++ b/youtube_dlc/__init__.py @@ -209,6 +209,9 @@ def _real_main(argv=None): opts.audioquality = opts.audioquality.strip('k').strip('K') if not opts.audioquality.isdigit(): parser.error('invalid audio quality specified') + if opts.remuxvideo is not None: + if opts.remuxvideo not in ['mp4', 'mkv']: + parser.error('invalid video container format specified') if opts.recodevideo is not None: if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv', 'avi']: parser.error('invalid video recode format specified') @@ -261,6 +264,11 @@ def _real_main(argv=None): 'preferredquality': opts.audioquality, 'nopostoverwrites': opts.nopostoverwrites, }) + if opts.remuxvideo: + postprocessors.append({ + 'key': 'FFmpegVideoRemuxer', + 'preferedformat': opts.remuxvideo, + }) if opts.recodevideo: postprocessors.append({ 'key': 'FFmpegVideoConvertor', |