mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-13 15:15:36 +08:00
Fix formatting
This commit is contained in:
parent
09ce144663
commit
c74aa7088c
@ -22,6 +22,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
from collections import Iterable
|
from collections import Iterable
|
||||||
|
|
||||||
|
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
def __init__(self, cmd, stdout, stderr):
|
def __init__(self, cmd, stdout, stderr):
|
||||||
super(Error, self).__init__(
|
super(Error, self).__init__(
|
||||||
@ -139,9 +140,7 @@ def _get_output_args(node, stream_name_map):
|
|||||||
args += ['-b:a', str(kwargs.pop('audio_bitrate'))]
|
args += ['-b:a', str(kwargs.pop('audio_bitrate'))]
|
||||||
if 'video_size' in kwargs:
|
if 'video_size' in kwargs:
|
||||||
video_size = kwargs.pop('video_size')
|
video_size = kwargs.pop('video_size')
|
||||||
if not isinstance(video_size, basestring) and isinstance(
|
if not isinstance(video_size, basestring) and isinstance(video_size, Iterable):
|
||||||
video_size, Iterable
|
|
||||||
):
|
|
||||||
video_size = '{}x{}'.format(video_size[0], video_size[1])
|
video_size = '{}x{}'.format(video_size[0], video_size[1])
|
||||||
args += ['-video_size', video_size]
|
args += ['-video_size', video_size]
|
||||||
args += convert_kwargs_to_cmd_line_args(kwargs)
|
args += convert_kwargs_to_cmd_line_args(kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user