aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-02 18:21:14 -0500
committerJesús <heckyel@hyperbola.info>2020-06-02 18:21:14 -0500
commite046a9b5b3b4ce18aad6a730295a93ba1af31bec (patch)
tree8a167f58ba5f5e3d802e09d30cd387b4fe977ae1
parentc35b4a90354daf442e989ba7007822ee6b12b534 (diff)
downloadlibrevideoconverter-e046a9b5b3b4ce18aad6a730295a93ba1af31bec.tar.lz
librevideoconverter-e046a9b5b3b4ce18aad6a730295a93ba1af31bec.tar.xz
librevideoconverter-e046a9b5b3b4ce18aad6a730295a93ba1af31bec.zip
pep8
-rw-r--r--lvc/video.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/lvc/video.py b/lvc/video.py
index caa9ded..610fcf4 100644
--- a/lvc/video.py
+++ b/lvc/video.py
@@ -1,5 +1,5 @@
import logging
-import os
+# import os
import re
import tempfile
import threading
@@ -279,12 +279,14 @@ def get_thumbnail_synchronous(filename, width, height, output, skip=0):
filter_ = 'scale=%i:%i' % (width, height)
# bz19571: temporary disable: libav ffmpeg does not support this filter
# if 'ffmpeg' in executable:
- # # supports the thumbnail filter, we hope
- # filter_ = 'thumbnail,' + filter_
- commandline = [executable,
- '-ss', str(skip),
- '-i', convert_path_for_subprocess(filename),
- '-vf', filter_, '-vframes', '1', output]
+ # # supports the thumbnail filter, we hope
+ # filter_ = 'thumbnail,' + filter_
+ commandline = [
+ executable,
+ '-ss', str(skip),
+ '-i', convert_path_for_subprocess(filename),
+ '-vf', filter_, '-vframes', '1', output
+ ]
try:
execute.check_output(commandline)
except execute.CalledProcessError as e: