我正在尝试从某个 URL 流式传输视频。
mplayer -fs https://www.someurl.com/video.mp4
但它会引发一个错误:
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/fa/.mplayer/input.conf': No such file or directory
Failed to open /home/fa/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.
Playing https://www.someurl.com/video.mp4.
No stream found to handle url https://www.someurl.com/video.mp4
我不知道为什么我会 未找到处理 URL 的流https://www.someurl.com/video.mp4错误。
答案1
无论如何我得到了答案,通过添加ffmpeg://
mplayer -fs ffmpeg://https://www.someurl.com/video.mp4