diff --git a/.gitignore b/.gitignore index 780f20e4..1aed517d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .cache .eggs +.idea/ .tox/ dist/ ffmpeg/tests/sample_data/out*.mp4 diff --git a/ffmpeg/_run.py b/ffmpeg/_run.py index f42d1d73..1fb3e6c8 100644 --- a/ffmpeg/_run.py +++ b/ffmpeg/_run.py @@ -189,7 +189,7 @@ def compile(stream_spec, cmd='ffmpeg', overwrite_output=False): cmd = [cmd] elif type(cmd) != list: cmd = list(cmd) - return cmd + get_args(stream_spec, overwrite_output=overwrite_output) + return cmd + list(filter(lambda x: x != '', get_args(stream_spec, overwrite_output=overwrite_output))) @output_operator()