Batch youtube video converter, up to 60fps and works with WMP

bfh47

New member
Local time
12:04 AM
Messages
5
Hi guys,

I cobbled together a fairly useful tool which i'm hoping might come in handy for people. Those who still use Windows 7 are probably a bit backwards and weird (speaking for myself), so maybe this'll be helpful to others.

[https://drive.google.com/file/d/1rRK2rSN6EXWAEK4pyrtQHkDXDIHRfzWa/view]

1) Extract the zip to it's own folder somewhere
2) Add video URLs to the text document, one URL per line, (avoid funny stuff like spaces or commas, I don't know what it does)
3) Double click the batch script to run it, or open cmd in same directory, and then call the script from cmd.

The script will first will first check for a 720p version of the video, then 480p, then 360p, the majority of URLs will have at least one of these. Then it will download the audio.

Once it has downloaded all the files, it uses the vbs script to get rid of illegal characters in the file names (mostly successful), and then calls on ffmpeg to losslessly combine the video and audio, putting them in a folder called "conv", and deleting the original seperate video+audio.

I also included ffmpeg.exe, but when I tested the script, my ffmpeg is added to path, although an ffmpeg in the same directory should work in the exact same way for everyone else.

I think every time it successfully pushes out a video, it makes a beep noise, so watch out for that.

This is a pretty bad script, occasionally something in the filename isn't properly sanitised by the VBS, and error handling is non-existent. For some reason it also loops infinitely if you come across an age restricted video. But this works for me like 95% of the time.

The video produced plays in Windows Media Player and on old phones.

If somebody would like a version of the script that only downloads 480p and 360p videos, let me know. I don't like 720p 60fps very much, it's not great for phone battery life and can make big file sizes, I only added it because a lot of videos don't have a 480p version, and 360p is too low quality. I might update this to check for 480p, 720p, 360p in that order instead.

Hope this helps someone!

The magic tool here is the "yt-dlp.exe", this is a youtube ripper - problem is they come out with a new one like every month, because youtube keeps fighting them, and second problem is they're discontinuing windows 7 support in the future, but right now everything works.

One big optimisation I could do is have it combine video+audio whilst files are still being downloaded, current system waits for all files to download before ffmpeg kicks in.

If anyone could give any feedback, I'd appreciate it. This is made purely out of necessity to save me time.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build, dual bios uefi
OS
Windows 7 Home Premium
Back
Top