Skip to content

Commit

Permalink
fix bug with encoding of the ffmpeg optput
Browse files Browse the repository at this point in the history
  • Loading branch information
fsadannn committed Sep 16, 2020
1 parent 51da193 commit d26b0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video_diet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def convert_video_progress_bar(source: str, dest: str, manager=None):
args = map(lambda x: '"'+x+'"' if '\\' in x or '/' in x else x,args)
args = list(args)
name = source.rsplit(os.path.sep,1)[-1]
proc = expect.spawn(' '.join(args))
proc = expect.spawn(' '.join(args), encoding='utf-8')
pbar = None
try:
proc.expect(pattern_duration)
Expand Down

0 comments on commit d26b0c5

Please sign in to comment.