From ed581c74267867ed2a676efb74d74239926cbc4f Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 27 Feb 2019 09:23:44 -0700 Subject: add deep fry checkbox --- README.md | 2 +- output.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b88457d..88cc549 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can't edit all three time fields, since two of them together always determin The Output panel lets you specify where you want the output to go. You can use any format ffmpeg supports. -If you're creating a .gif, you'll likely want to check the "Improve GIF" box. For a silent video, which is just a better GIF as far as platforms like Telegram are concerned, check the "Silence" box. +To use absurdly high compression settings, which might not even work depending on your output format, check the "Compress beyond recognition" box. The "Run" button will simply run the conversion; "Run & Preview" will show your output afterwards; "Run & Quit" will quit vidslice afterwards. diff --git a/output.py b/output.py index f11aa24..766234c 100644 --- a/output.py +++ b/output.py @@ -33,6 +33,8 @@ class OutputPanel(wx.Panel): options_panel.SetSizer(options_sizer) self.silence = wx.CheckBox(options_panel, label="Silence") options_sizer.Add(self.silence, proportion=1, flag=wx.EXPAND, border=5) + self.deepfry = wx.CheckBox(options_panel, label="Compress beyond recognition") + options_sizer.Add(self.deepfry, proportion=1, flag=wx.EXPAND, border=5) self.run_panel = wx.Panel(self) root_sizer.Add(self.run_panel, flag=wx.EXPAND, border=5) @@ -89,6 +91,11 @@ class OutputPanel(wx.Panel): real_args[i:i + 2] = [] break real_args += ['-filter_complex', filter_before + filter_during + filter_after] + if self.deepfry.GetValue(): + if ext == '.mp3': + real_args += ['-q:a', '9'] + else: + real_args += ['-q:a', '0.1', '-crf', '51'] args = ['ffmpeg', '-hide_banner', '-y', '-i', self.input_path] + real_args + [output_path] print(args) -- cgit v1.2.3