Need help with the batch file for yt-dlp_x86.exe

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
cpm1a+_
Blank Cone
Blank Cone
Posts: 38
Joined: 25 May 2022 09:08

Need help with the batch file for yt-dlp_x86.exe

Postby cpm1a+_ » 10 Sep 2022 14:10

i replaced youtube-dl.exe with yt-dlp_x86.exe and set the correct path to VLC.exe:
==============
@echo off
set VLC="d:\Programs\vlc-3.0.17.4\vlc.exe"
set /p yturl=Youtube URL (right-click):
yt-dlp_x86.exe -F %yturl:&=^&%
set /p ytdlfmt=Format:
yt-dlp_x86.exe -g -f %ytdlfmt% %yturl:&=^&% > yt-dl.m3u
echo VLC...
%VLC% --meta-title=youtube-dl yt-dl.m3u
=============
Then i run it: right click for pasting the Youtube URL, and when it asks for the format I enter 22

VLC reports an error:
Your input can't be opened:
VLC is unable to open the MRL 'file:///D:/wavs/yt-dl.m3u'. Check the log for details.

whai am i doing wrong?

Lotesdelere
Cone Master
Cone Master
Posts: 9717
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Need help with the batch file for yt-dlp_x86.exe

Postby Lotesdelere » 12 Sep 2022 13:53

Well, I've already explained in your Youtube thread that recent x86 versions of YT-DLP require at least Vista SP2. The latest available version for XP is from 9 june 2021 so it's possible that this version can't extract the video links of some Youtube URLs.
https://forum.videolan.org/viewtopic.ph ... 37#p530837

Live with it. Or drop XP for Windows 7, at least.
That said, you're trying to open the yt-dl.m3u file from a folder called WAVS which doesn't appear anywhere in your batch file. The yt-dl.m3u file is created where yt-dlp_x86.exe is.
BTW, what's wrong with the latest LUA script ? That should work on any Windows version.

cpm1a+_
Blank Cone
Blank Cone
Posts: 38
Joined: 25 May 2022 09:08

Re: Need help with the batch file for yt-dlp_x86.exe

Postby cpm1a+_ » 12 Sep 2022 14:24

>BTW, what's wrong with the latest LUA script ? That should work on any Windows version.
NOW the latest LUA script works perfectly, but wil it be updated IN THE FUTURE?

Lotesdelere
Cone Master
Cone Master
Posts: 9717
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Need help with the batch file for yt-dlp_x86.exe

Postby Lotesdelere » 13 Sep 2022 09:48

It's a non stop cat and mouse game :)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 25 guests