Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.94k stars 585 forks source link

IP Address Download Limit #396

Open sizzlingkenny opened 2 years ago

sizzlingkenny commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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:

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Are you sure the slow speed is caused by some IP restriction? It could a problem similar to https://github.com/Rudloff/alltube/issues/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 commented 2 years ago

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 commented 2 years ago

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.