aboutsummaryrefslogtreecommitdiffstats
path: root/mvc/video.py
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2017-08-17 17:01:49 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2017-08-17 17:01:49 -0500
commitd48ff5d2ab1db24e82a296a6646336844487d8ef (patch)
treeda7220d0a7fc4d8c13a4bb94210742a5fbca11a6 /mvc/video.py
parente1180428ed3e7634fe1596103511fbb1da05f228 (diff)
downloadlibrevideoconverter-d48ff5d2ab1db24e82a296a6646336844487d8ef.tar.lz
librevideoconverter-d48ff5d2ab1db24e82a296a6646336844487d8ef.tar.xz
librevideoconverter-d48ff5d2ab1db24e82a296a6646336844487d8ef.zip
video.py fixed string
Diffstat (limited to 'mvc/video.py')
-rw-r--r--mvc/video.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mvc/video.py b/mvc/video.py
index fb46df9..576286d 100644
--- a/mvc/video.py
+++ b/mvc/video.py
@@ -261,10 +261,10 @@ def get_media_info(filepath):
def get_thumbnail(filename, width, height, output, completion, skip=0):
name = 'Thumbnail - %r @ %sx%s' % (filename, width, height)
def run():
- rv = get_thumbnail_synchronous(filename, width, height, output, skip)
- idle_add(lambda: completion(rv))
- t = threading.Thread(target=run, name=name)
- t.start()
+ rv = get_thumbnail_synchronous(filename, width, height, output, skip)
+ idle_add(lambda: completion(rv))
+ t = threading.Thread(target=run, name=name)
+ t.start()
def get_thumbnail_synchronous(filename, width, height, output, skip=0):
executable = get_ffmpeg_executable_path()
@@ -275,8 +275,8 @@ def get_thumbnail_synchronous(filename, width, height, output, skip=0):
# filter_ = 'thumbnail,' + filter_
commandline = [executable,
'-ss', str(skip),
- '-i', convert_path_for_subprocess(filename),
- '-vf', filter_, '-vframes', '1', output]
+ '-i', convert_path_for_subprocess(filename),
+ '-vf', filter_, '-vframes', '1', output]
try:
execute.check_output(commandline)
except execute.CalledProcessError, e: