mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-15 07:42:42 +00:00
[download/external] pass rtmp_conn to ffmpeg
This commit is contained in:
parent
f8987163fb
commit
d7d86fdd49
1 changed files with 6 additions and 0 deletions
|
@ -289,6 +289,7 @@ class FFmpegFD(ExternalFD):
|
||||||
tc_url = info_dict.get('tc_url')
|
tc_url = info_dict.get('tc_url')
|
||||||
flash_version = info_dict.get('flash_version')
|
flash_version = info_dict.get('flash_version')
|
||||||
live = info_dict.get('rtmp_live', False)
|
live = info_dict.get('rtmp_live', False)
|
||||||
|
conn = info_dict.get('rtmp_conn')
|
||||||
if player_url is not None:
|
if player_url is not None:
|
||||||
args += ['-rtmp_swfverify', player_url]
|
args += ['-rtmp_swfverify', player_url]
|
||||||
if page_url is not None:
|
if page_url is not None:
|
||||||
|
@ -303,6 +304,11 @@ class FFmpegFD(ExternalFD):
|
||||||
args += ['-rtmp_flashver', flash_version]
|
args += ['-rtmp_flashver', flash_version]
|
||||||
if live:
|
if live:
|
||||||
args += ['-rtmp_live', 'live']
|
args += ['-rtmp_live', 'live']
|
||||||
|
if isinstance(conn, list):
|
||||||
|
for entry in conn:
|
||||||
|
args += ['-rtmp_conn', entry]
|
||||||
|
elif isinstance(conn, compat_str):
|
||||||
|
args += ['-rtmp_conn', conn]
|
||||||
|
|
||||||
args += ['-i', url, '-c', 'copy']
|
args += ['-i', url, '-c', 'copy']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue