我想通过 VLC Player 播放 YouTube 视频,因此我启动了 VLC Player 并执行“从剪贴板打开位置”,但是当尝试播放时这个视频我刚刚收到这个错误:
Your input can't be opened: VLC is unable to open the MRL
'https://r3---sn-aigllnz7.googlevideo.com/videoplayback?initcwndbps=1542500&ip=82.68.87.54&key=yt6&mm=31&mn=sn-aigllnz7&gcr=gb&mv=m&id=o-AH9ajBwPvx0EAxQ6L2DcUcI_TSBAnjN7Hh6VIBGzdF7r&ms=au&source=youtube&lmt=1431931684487017&dur=250.009&sver=3&mime=video%2Fmp4&fexp=9408710%2C9414764%2C9416126%2C9416985%2C9417655%2C9417683%2C9418203%2C9419837%2C9420453%2C9421252%2C9421710%2C9422436%2C9422596%2C9422618%2C9422990%2C9423299%2C9423392%2C9423510%2C9423662%2C9423665%2C9423791%2C9424192&itag=22&upn=Pf3jNimMyMo&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&pl=22&requiressl=yes&mt=1447701954&ipbits=0&ratebypass=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1447723621&signature=33FD8D2110F931A28926207650A21F4FD60DBFEC6.DA4C9EC72BA62AF043526206B5113CCCF840630B'.
Check the log for details.
终端中输出如下内容:
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[00000000022ab148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f287c031138] lua demux error: Couldn't process youtube video URL, please check for updates to this script
[0000000002393d88] core playlist: stopping playback
[00007f287c000bf8] http access error: error: HTTP/1.1 403 Forbidden
[00007f287c000bf8] http access error: error: HTTP/1.1 403 Forbidden
[00007f2880006288] core input error: open of `https://r3---sn-aigllnz7.googlevideo.com/videoplayback?initcwndbps=1542500&ip=82.68.87.54&key=yt6&mm=31&mn=sn-aigllnz7&gcr=gb&mv=m&id=o-AH9ajBwPvx0EAxQ6L2DcUcI_TSBAnjN7Hh6VIBGzdF7r&ms=au&source=youtube&lmt=1431931684487017&dur=250.009&sver=3&mime=video%2Fmp4&fexp=9408710%2C9414764%2C9416126%2C9416985%2C9417655%2C9417683%2C9418203%2C9419837%2C9420453%2C9421252%2C9421710%2C9422436%2C9422596%2C9422618%2C9422990%2C9423299%2C9423392%2C9423510%2C9423662%2C9423665%2C9423791%2C9424192&itag=22&upn=Pf3jNimMyMo&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&pl=22&requiressl=yes&mt=1447701954&ipbits=0&ratebypass=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1447723621&signature=33FD8D2110F931A28926207650A21F4FD60DBFEC6.DA4C9EC72BA62AF043526206B5113CCCF840630B' failed
那么如何在 VLC Player 中播放 YouTube 视频?或者我不能播放?我的意思是,我知道你可以使用它下载 YouTube 视频,那么为什么不播放它们呢?
操作系统信息:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Flavour: GNOME
GNOME Version: 3.18
封装信息:
vlc:
Installed: 2.2.1-3
Candidate: 2.2.1-3
Version table:
*** 2.2.1-3 0
500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
100 /var/lib/dpkg/status
答案1
好吧,我不确定您如何在问题中获得该 URL,但只需https://youtu.be/VoeCcCQuJrM
从 URL 栏或共享框中复制视频的 Youtube URL(例如):
在 VLC 2.2.0 Weatherwax 中对我来说运行得很好。
您应该能够复制任一 URL 并通过Media
->将其粘贴到 VLC 中Open Network Stream
。我相信默认情况下它会流式传输 720p。
如果这不起作用,请尝试更新 Lua 脚本以进行 Youtube 解析,如上所述在这个答案中。
答案2
尝试安装直播者,对我来说很好用,而且您还可以选择所观看视频的质量。
如果你使用的是 Ubuntu,你可以通过输入以下命令来下载:
apt-get install livestreamer
该程序还适用于 Twitch、Youtube、Dailymotion。
您可以通过输入以下内容来使用该程序:
livestreamer [url of your video] [quality preset]
如果你想知道你想观看的链接有哪些质量预设,你可以输入命令而不[质量预设]最后它会向你展示可用的不同质量预设。