Page 1 of 1
VLC is not playing youtube videos
Posted: 29 Aug 2019 11:09
by FlandreScarlet64
Everytime i try to open a youtube video i get this error.
Your input can't be opened:
VLC is unable to open the MRL 'https://youtu.be/ZdtBopbuAOw'. Check the log for details.
Tried the youtube.luac from https://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD yet no such luck.
Anyone know how to fix it? note:i am using windows 7 32-bits.
Re: VLC is not playing youtube videos
Posted: 12 Sep 2019 00:45
by realdiamond
You won't be able to do any thing in the VLC app...
Youtube has taken steps to block Third party access and block all third party apps using there page URLs as reference...
They do this regular and you will have to wait for VLC or some one to post the NEW code that is required to be added to apps to by pass youtubes insistence that you use there app and there app only...
.
What you may do while you wait for VLC coders to catch up is use third party sites to convert the video page URL into a Direct google URL feed download...
There are many sites like savefrom.net that allow you to enter the youtube video page URL and give a download link.. You can copy the download link and add it to VLC ... or you can download the hole video file and then open it in VLC after but this will force an addition step..
Re: VLC is not playing youtube videos
Posted: 12 Sep 2019 02:26
by highflux7
Python script, takes yt url, parses for something yt will accept, executes yt with newly discovered url.
Usage: ./yt.py https://www.youtube.com/watch?v=hvIctUYRDtY
# yt.py
Code: Select all
#!/usr/bin/python3
# Launch VLC with an (almost) arbitrary Youtube URL.
# Assumes Python > 3.5 (or something)
'''
Copyright 2019 Carl Svensson
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''
import urllib.parse as up
import urllib.request as req
import json
import sys
import subprocess
PREF_MAXRES = 1700 # skip hd vids
inurl = sys.argv[1]
u = up.urlparse(inurl)
q = up.parse_qs(u.query)
yturl = "https://www.youtube.com/get_video_info?video_id="+q["v"][0]
raw = req.urlopen(yturl).read()
dcd = up.parse_qs(str(raw))
inf = json.loads(dcd["player_response"][0])
formats = inf["streamingData"]["formats"]
resmax = 0
vidurl = ""
for fmt in formats:
# skip webm, mp4:s should be ok for hw decoding
if "mp4" in str(fmt.get("mimeType")):
hres = fmt.get("height", 0)
if hres < PREF_MAXRES and hres > resmax:
resmax = fmt.get("height")
vidurl = fmt.get("url")
if vidurl:
subprocess.run(["vlc", vidurl, "--meta-title", "Youtube ("+inurl+")"])
else:
print("Unable to parse video URL")
Re: VLC is not playing youtube videos
Posted: 12 Sep 2019 12:18
by hamza-mostakim
Everytime i try to open a youtube video i get this error.
Your input can't be opened:
VLC is unable to open the MRL 'https://youtu.be/ZdtBopbuAOw'. Check the log for details.
Tried the youtube.luac from https://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD yet no such luck.
Anyone know how to fix it? note:i am using windows 7 32-bits.
no I can play this link : ( https://youtu.be/ZdtBopbuAOw ) in VLC ... look
.
Re: VLC is not playing youtube videos
Posted: 13 Sep 2019 19:50
by #thweiss
Hello together,
I can play the Youtube-Link 'https://youtu.be/ZdtBopbuAOw' very well with VLC-Player Version 3.0.7.1 (64-Bit) under Windows 10 Version 1903.
Try to download and install the VLC-Version 3.0.7.1 (32-Bit) under Windows 7 (32-Bit).
- 'https://download.videolan.org/vlc/3.0.7.1/win32/'
Re: VLC is not playing youtube videos
Posted: 13 Sep 2019 20:02
by hamza-mostakim
Hello together,
I can play the Youtube-Link 'https://youtu.be/ZdtBopbuAOw' very well with VLC-Player Version 3.0.7.1 (64-Bit) under Windows 10 Version 1903.
Try to download and install the VLC-Version 3.0.7.1 (32-Bit) under Windows 7 (32-Bit).
- 'https://download.videolan.org/vlc/3.0.7.1/win32/'
no friend it's run at me