mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:00:48 +01:00
[ffmpeg] Clarify rationale for pipe(-) exclusion in _ffmpeg_filename_argument
This commit is contained in:
parent
d868f43c58
commit
b9f2fdd37f
@ -175,6 +175,7 @@ def _ffmpeg_filename_argument(self, fn):
|
|||||||
# Always use 'file:' because the filename may contain ':' (ffmpeg
|
# Always use 'file:' because the filename may contain ':' (ffmpeg
|
||||||
# interprets that as a protocol) or can start with '-' (-- is broken in
|
# interprets that as a protocol) or can start with '-' (-- is broken in
|
||||||
# ffmpeg, see https://ffmpeg.org/trac/ffmpeg/ticket/2127 for details)
|
# ffmpeg, see https://ffmpeg.org/trac/ffmpeg/ticket/2127 for details)
|
||||||
|
# Also leave '-' intact in order not to break streaming to stdout.
|
||||||
return 'file:' + fn if fn != '-' else fn
|
return 'file:' + fn if fn != '-' else fn
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user