diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | output.py | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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. @@ -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) |