YouTubeDL Material – A Self-Hosted YouTube Video Downloader

Currently reading
YouTubeDL Material – A Self-Hosted YouTube Video Downloader

Let me tell you, I have been through the ringer trying to find ways to download videos from YouTube for my 4 year old son. Having the hard copies for me, is a must for peace of mind. I could go into details about that but the list would make this article much longer than you might desire. You can imagine the reasons yourself.

I have tried a couple desktop applications like 4K Video Downloader and Tartube but they just aren’t as convenient as setting up a server side web application. You have to make sure they are always running. Another issue I ran into was IP blocking.

Continue reading...
 
Let me tell you, I have been through the ringer trying to find ways to download videos from YouTube for my 4 year old son. Having the hard copies for me, is a must for peace of mind. I could go into details about that but the list would make this article much longer than you might desire. You can imagine the reasons yourself.

I have tried a couple desktop applications like 4K Video Downloader and Tartube but they just aren’t as convenient as setting up a server side web application. You have to make sure they are always running. Another issue I ran into was IP blocking.

Continue reading...

Really nice! I did the installation in my Docker, it is running, but does not want to download YT video files. After few seconds it says "Downoad fialed!". Do I have to do some extra ster like add some port forwarding rules in my router (SRM) or add some firewall rules (in router or in DSM)? Thanks.
 
Really nice! I did the installation in my Docker, it is running, but does not want to download YT video files. After few seconds it says "Downoad fialed!". Do I have to do some extra ster like add some port forwarding rules in my router (SRM) or add some firewall rules (in router or in DSM)? Thanks.
could be permission problems with mappings. Have you looked at the log? Maybe there is more info inside it. There is a specific error.log file, check it as see if there are more details on the error.

Also, check if you have mapped your folders and /video, /audio folders correctly.
 
Permisions should be OK, I also mapped all folders, as described in videotutorial.

I get these errors (excerpt from the error.log):

Code:
2020-05-17T22:55:11.044Z ERROR: Error during parsing:Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json http://www.youtube.com/watch?v=LG_GqzR8c4A
2020-05-17T22:55:11.045Z ERROR: failed to parse for urls starting with https://www.youtube.com/watch?v=LG_GqzR8c4A&t=7s
2020-05-17T22:55:20.397Z ERROR: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json -f best -o video/%(title)s.mp4 -f best[ext=mp4] --write-info-json --print-json http://www.youtube.com/watch?v=LG_GqzR8c4A
 
Really nice! I did the installation in my Docker, it is running, but does not want to download YT video files. After few seconds it says "Downoad fialed!". Do I have to do some extra ster like add some port forwarding rules in my router (SRM) or add some firewall rules (in router or in DSM)? Thanks.
This could be because you have been downloading videos already and they blocked your IP from downloading. I'm still trying to figure out a way around this.
 
I have already downloaded many videos and everything is still working. So I don't think this is a problem.
Just wait for it. It can take a couple days. When it does, it just looks like the app is broken but if you check the console you will see an error 409. That's the one. I'm forunate enough to change my IP via MAC address cloning through my modem but that is tedious. I spoke to the dev of this app and he said he's working on a fix that involves cookies and a sleep timer. Standing by.
 
Not sure, what I did wrong. Just in case, I tried to instal it in the same way in my second device (DS918+) sitting in my office. Everythink works without any issue there. OK, I tried on my home device temporarily disable the firewall and voila, it works! When I enafbled firewall again, it does not download again. So what now? What firewall rule should I set in my firewall? The strange thing is that I did not have to do anything in firewall of my second device (DS918+) and it just works... Any advice please?
 
For anyone who got the same error as me (Download failed!):
I found out that I need opet the UDP port 53 in my DSM firewall and then it works like a charm! Would be nice if I could restrict to specific source IP address (just to make that thing a bit more secure ... makes sense?). Anyone knows what IP could this be?
 
I think you should pay attention when you open port 53. I think it's a good target for hackers.
Depends on if the firewall is stateful for UDP.

I recall spending a long time debugging a firewall, getting abuse for it suddenly not working, only to demonstrate that someone (the customer) had blocked UDP 53 inbound a hop or two towards the Internet. Didn't get an apology or thanks for fixing it.
 
Hello

I really am stumped. I've followed the guide with default settings. I'm using the nightly image also, but when I download any video it says download failed. The logs are about exit code 1

Code:
2020-06-22T10:49:07.394Z ERROR: failed to parse for urls starting with https://www.youtube.com/watch?v=Au4_frl4Rco

2020-06-22T10:49:07.393Z ERROR: Error during parsing:Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json http://www.youtube.com/watch?v=Au4_frl4Rco

2020-06-22T10:44:46.276Z ERROR: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json -f best -o video/%(title)s.mp4 --write-info-json --print-json -f best[ext=mp4] http://www.youtube.com/watch?v=Au4_frl4Rco

2020-06-22T10:44:46.269Z ERROR: failed to parse for urls starting with https://www.youtube.com/watch?v=Au4_frl4Rco

2020-06-22T10:44:46.268Z ERROR: Error during parsing:Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json http://www.youtube.com/watch?v=Au4_frl4Rco

2020-06-22_11h53_34.png


2020-06-22_11h53_42.png
 
But isn’t it simpler to use a 3rd party online service for that? There are websites that can help you download from YouTube without any additional complications.
Those websites to download from YouTube just need a link to the video you want to download and the quality you would prefer. It’s rather simple, and I believe you can use such services as often as you need because I have never had any issues with them. I also like downloading videos from YouTube to watch while being off-grid. I am a truck driver, and I get bored a lot during my mandatory breaks. Only the YT videos on my laptop make me happier.
 
Interesting concept! Having a self-hosted YouTube video downloader like YouTubeDL Material provides greater control over downloading content while ensuring privacy. It's great to see options that prioritize user autonomy and data protection. Excited to explore this tool further!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Replies
2
Views
2,332
  • Article
In case you are on the hunt for some self-hosted web analytics platform and refuse to use Google...
Replies
0
Views
1,439
  • Article
Just a quick update. Managed to get it running a stack using the new repo. The existing web app works as...
Replies
76
Views
12,996
  • Article
Haven't noticed but will keep an eye on it.
Replies
10
Views
5,382
  • Article
- - - Check out FREE NAS advice section on nascompares.com
Replies
0
Views
733
  • Article
It can also give yourself some kind of 'training' as you familiarize yourself with restore procedures.
Replies
4
Views
2,843
  • Article
It’s funny to prank friends by redirecting them to a rick roll or something like that. There’s a reason...
Replies
10
Views
2,957

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top