aboutsummaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authortassaron2017-07-16 23:13:00 -0400
committertassaron2017-07-16 23:13:00 -0400
commitaa464632c64725201dc7584ebf6bf2c3d06b47b6 (patch)
treed0acb70a5fc839a1810a962f2ff9b4a9a931025a /src/core.py
parentec0abd190273b7b636c7085d7caed8220ab09172 (diff)
new hotkey to preview the ffmpeg command
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 324b04f..a0a028b 100644
--- a/src/core.py
+++ b/src/core.py
@@ -541,6 +541,10 @@ class Core:
extraInputFile, params = params
ffmpegCommand.extend([
'-t', safeDuration,
+ # Tell ffmpeg about shorter clips (seemingly not needed)
+ # streamDuration = self.getAudioDuration(extraInputFile)
+ # if streamDuration > float(safeDuration)
+ # else "{0:.3f}".format(streamDuration),
'-i', extraInputFile
])
# Construct dataset of extra filters we'll need to add later
@@ -551,7 +555,7 @@ class Core:
ffmpegFilter, params[ffmpegFilter]
))
- # Start creating avfilters!
+ # Start creating avfilters! Popen-style, so don't use semicolons;
extraFilterCommand = []
if globalFilters <= 0: