Skip to content

Commit

Permalink
fix(ffmpeg): string type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hldh214 committed Mar 7, 2022
1 parent a3cf50a commit e4db5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recorder/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def record(input_url, output_file, max_duration, args=None):
FFMPEG_BINARY, '-y', '-user_agent', random.choice(USER_AGENTS), '-hide_banner',
'-reconnect_streamed', '1', '-reconnect_delay_max', '20',
'-rw_timeout', TIMEOUT_US, '-timeout', TIMEOUT_US,
'-i', input_url, '-c', 'copy', '-t', max_duration
'-i', input_url, '-c', 'copy', '-t', str(max_duration)
]

if args is not None:
popen_args.extend(args)
popen_args.extend([str(each) for each in args])

popen_args.append(output_file)

Expand Down

0 comments on commit e4db5c2

Please sign in to comment.