mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 22:15:03 +03:00
[processor.ffmpeg] fix params in ffmpeg_download_stream
This commit is contained in:
parent
4561be553c
commit
feffcb656a
@ -212,15 +212,6 @@ def ffmpeg_download_stream(files, title, ext, params={}, output_dir='.'):
|
|||||||
if not (output_dir == '.'):
|
if not (output_dir == '.'):
|
||||||
output = output_dir + '/' + output
|
output = output_dir + '/' + output
|
||||||
|
|
||||||
ffmpeg_params = []
|
|
||||||
#should these exist...
|
|
||||||
if params is not None:
|
|
||||||
if len(params) > 0:
|
|
||||||
for k, v in params:
|
|
||||||
ffmpeg_params.append(k)
|
|
||||||
ffmpeg_params.append(v)
|
|
||||||
|
|
||||||
|
|
||||||
print('Downloading streaming content with FFmpeg, press q to stop recording...')
|
print('Downloading streaming content with FFmpeg, press q to stop recording...')
|
||||||
ffmpeg_params = [FFMPEG] + ['-y', '-re', '-i']
|
ffmpeg_params = [FFMPEG] + ['-y', '-re', '-i']
|
||||||
ffmpeg_params.append(files) #not the same here!!!!
|
ffmpeg_params.append(files) #not the same here!!!!
|
||||||
@ -230,6 +221,12 @@ def ffmpeg_download_stream(files, title, ext, params={}, output_dir='.'):
|
|||||||
else:
|
else:
|
||||||
ffmpeg_params += ['-c', 'copy', '-bsf:a', 'aac_adtstoasc']
|
ffmpeg_params += ['-c', 'copy', '-bsf:a', 'aac_adtstoasc']
|
||||||
|
|
||||||
|
if params is not None:
|
||||||
|
if len(params) > 0:
|
||||||
|
for k, v in params:
|
||||||
|
ffmpeg_params.append(k)
|
||||||
|
ffmpeg_params.append(v)
|
||||||
|
|
||||||
ffmpeg_params.append(output)
|
ffmpeg_params.append(output)
|
||||||
|
|
||||||
print(' '.join(ffmpeg_params))
|
print(' '.join(ffmpeg_params))
|
||||||
|
Loading…
Reference in New Issue
Block a user