aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_downloader_external.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-07-21 21:32:49 -0500
committerGitHub <noreply@github.com>2023-07-22 02:32:49 +0000
commite57eb98222d29cc4c09ee975d3c492274a6e5be3 (patch)
tree153680a864b181c37df28a69907b50e0971b6d2f /test/test_downloader_external.py
parent9b16762f48914de9ac914601769c76668e433325 (diff)
downloadhypervideo-pre-e57eb98222d29cc4c09ee975d3c492274a6e5be3.tar.lz
hypervideo-pre-e57eb98222d29cc4c09ee975d3c492274a6e5be3.tar.xz
hypervideo-pre-e57eb98222d29cc4c09ee975d3c492274a6e5be3.zip
[fd/external] Fix ffmpeg input from stdin (#7655)
Bugfix for 1ceb657bdd254ad961489e5060f2ccc7d556b729 Authored by: bashonly
Diffstat (limited to 'test/test_downloader_external.py')
-rw-r--r--test/test_downloader_external.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_downloader_external.py b/test/test_downloader_external.py
index d3d74df04..62f7d45d4 100644
--- a/test/test_downloader_external.py
+++ b/test/test_downloader_external.py
@@ -129,6 +129,11 @@ class TestFFmpegFD(unittest.TestCase):
'ffmpeg', '-y', '-hide_banner', '-cookies', 'test=ytdlp; path=/; domain=.example.com;\r\n',
'-i', 'http://www.example.com/', '-c', 'copy', '-f', 'mp4', 'file:test'])
+ # Test with non-url input (ffmpeg reads from stdin '-' for websockets)
+ downloader._call_downloader('test', {'url': 'x', 'ext': 'mp4'})
+ self.assertEqual(self._args, [
+ 'ffmpeg', '-y', '-hide_banner', '-i', 'x', '-c', 'copy', '-f', 'mp4', 'file:test'])
+
if __name__ == '__main__':
unittest.main()