aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2019-02-27 09:23:44 -0700
committerMelody Horn <melody@boringcactus.com>2019-02-27 09:23:44 -0700
commited581c74267867ed2a676efb74d74239926cbc4f (patch)
treeb8e71a1ab11af59495a1055bfe40b54854810e96
parentba913f5f841c799a9d377874e8bed78e981416be (diff)
downloadvidslice-ed581c74267867ed2a676efb74d74239926cbc4f.tar.gz
vidslice-ed581c74267867ed2a676efb74d74239926cbc4f.zip
add deep fry checkbox
-rw-r--r--README.md2
-rw-r--r--output.py7
2 files changed, 8 insertions, 1 deletions
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)