~heckyel/librevideoconverter

e046a9b5b3b4ce18aad6a730295a93ba1af31bec — Jesús 3 years ago c35b4a9
pep8
1 files changed, 9 insertions(+), 7 deletions(-)

M lvc/video.py
M lvc/video.py => lvc/video.py +9 -7
@@ 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: