dylan-plummer commited on
Commit
f854772
·
1 Parent(s): d5aa02d

fix ffmpeg args

Browse files
Files changed (1) hide show
  1. hls_download.py +3 -3
hls_download.py CHANGED
@@ -16,9 +16,9 @@ def download_clips(stream_url, out_dir, start_time, end_time, resize=True):
16
  'no_warnings': True,
17
  'external_downloader': 'ffmpeg',
18
  'external_downloader_args': [
19
- 'ffmpeg_i',
20
- f'-ss {max(0, start_time - 2)}', # Start 2 seconds earlier, but not before 0
21
- f'-t {duration}' # Download only the duration we need
22
  ],
23
  }
24
 
 
16
  'no_warnings': True,
17
  'external_downloader': 'ffmpeg',
18
  'external_downloader_args': [
19
+ 'ffmpeg_i:',
20
+ f'-ss {max(0, start_time - 2)}',
21
+ '-t', f'{duration}'
22
  ],
23
  }
24