Skip to content

Commit

Permalink
fixed encode_video_comparison() parsing error (#379)
Browse files Browse the repository at this point in the history
Co-authored-by: Sherry Wang <[email protected]>
  • Loading branch information
shaishaicookie and ywangsherry authored Jul 7, 2024
1 parent b309530 commit 5f1461f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stable_whisper/video_output.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shlex
import subprocess as sp
import warnings
from typing import List
Expand Down Expand Up @@ -98,6 +99,7 @@ def encode_video_comparison(
output_videopath = f'{name}_sub_comparison.mp4'
cmd = (f'ffmpeg {ow} {background} {border} {audio} '
f'-filter_complex "{final_fil}"{vc}{ac} -shortest "{output_videopath}"')
cmd = shlex.split(cmd)
if only_cmd:
return cmd
if verbose:
Expand Down

0 comments on commit 5f1461f

Please sign in to comment.