Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

IP Address Download Limit #396

Open
sizzlingkenny opened this issue Feb 18, 2022 · 7 comments
Open

IP Address Download Limit #396

sizzlingkenny opened this issue Feb 18, 2022 · 7 comments

Comments

@sizzlingkenny
Copy link

Hello there, Great Script I really appreciate the tremendous work you did.
I am only having Issue with IP Address Downloading Limit from YouTube because currently Its Using my Server IP Address.
Is there anyway that I can change it to "Client IP Directly" instead of my server IP, as I have seen on other sites they are using direct client IP to Download YouTube Videos with no Download Speed Limit

thanks

@Rudloff
Copy link
Owner

Rudloff commented Feb 19, 2022

Is the stream option enabled in your config file?
With it, the server downloads both the video webpage and the video file.
Without it, the server downloads the video webpage but then the browser downloads the video file.

@sizzlingkenny
Copy link
Author

sizzlingkenny commented Feb 19, 2022

my config file

Path to your youtube-dl binary

youtubedl: vendor/ytdl-org/youtube-dl/youtube_dl/main.py

Path to your python binary

python: /usr/bin/python3

An array of parameters to pass to youtube-dl

params:
- --no-warnings
- --ignore-errors
- --flat-playlist
- --restrict-filenames
- --no-playlist

True to enable audio conversion

convert: true

True to enable advanced conversion mode

convertAdvanced: true

List of formats available in advanced conversion mode

convertAdvancedFormats: [mp3, avi, flv, wav]

Path to your ffmpeg binary

ffmpeg: /usr/bin/ffmpeg

ffmpeg logging level.

ffmpegVerbosity: error

Path to the directory that contains the phantomjs binary.

phantomjsDir: /usr/bin/

True to disable URL rewriting

uglyUrls: false

True to stream videos through server

Set to "ask" if you want to allow it but not enable by default.

stream: false

True to enable remux mode (merge best audio and best video)

remux: true

MP3 bitrate when converting (in kbit/s)

audioBitrate: 128

App name

appName: YTDL

Generic formats supported by youtube-dl

genericFormats:
best/bestvideo: Best
bestvideo+bestaudio: Remux best video with best audio
worst/worstvideo: Worst

Enable debug mode.

debug: false

True to enable audio conversion mode by default

defaultAudio: true

False to disable convert seek functionality

convertSeek: true

@Rudloff
Copy link
Owner

Rudloff commented Feb 19, 2022

With stream: false, the server does not download the video file, only the video webpage. But I guess this could still trigger YouTube's rate limit.

@sizzlingkenny
Copy link
Author

I tried both, False and True but download speed is the same not exceeding 60kb to 70kb which is way too slow
If there's anyway to pass client ip instead of my server ip, that would be great to bypass the download limit

@Rudloff
Copy link
Owner

Rudloff commented Feb 20, 2022

Are you sure the slow speed is caused by some IP restriction?
It could a problem similar to #217 (YouTube detecting someone is trying to download a whole video and intentionally slowing the download).

If there's anyway to pass client ip instead of my server ip, that would be great to bypass the download limit

We can't pass an IP address, the IP address YouTube sees if the one used by the device making the request.

@sizzlingkenny
Copy link
Author

Are you sure the slow speed is caused by some IP restriction? It could a problem similar to #217 (YouTube detecting someone is trying to download a whole video and intentionally slowing the download).

If there's anyway to pass client ip instead of my server ip, that would be great to bypass the download limit

We can't pass an IP address, the IP address YouTube sees if the one used by the device making the request.

I'm not sure to be honest if the IP is the problem, if this is the case (YouTube detecting someone is trying to download a whole video and intentionally slowing the download). then how to fix it?

@Rudloff
Copy link
Owner

Rudloff commented Feb 20, 2022

Do you have an example of a video with this problem ? (You did not fill the issue template.)
I tried to reproduce with a random YouTube video but I get a 1.7 Mb/s download speed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants