Comments (9)
OK, I added aria2 to the Dockerfile, so @10362227 and @karan , if you want to use it, just set your YTDL_OPTIONS as @PikuZheng showed above, and with the mentioned limitations, it will work. stdout parsing will probably never happen, because MeTube doesn't use stdout for progress, it uses yt-dlp's internal reporting via the python module. But if you prefer to use aria2 in any case, you have the option now.
from metube.
MeTube is a GUI for yt-dlp, so all the actual downloading is performed by yt-dlp and MeTube does not have control over that. I see some mentions of aria2c in the documentation, and it appears that you can make it use aria2c via the external_downloader
option (which you can set via the YTDL_OPTIONS
environment variable), but whether it works or whether download progress is reported is wholly dependent on yt-dlp, and there's nothing MeTube can do in this regard.
from metube.
Any chance you'll reconsider this? Adding support for aria2 as a downloader (changes what's on stdout) would be huge for performance.
from metube.
If it doesn't depend on MeTube, how can I reconsider it?
from metube.
Well metube container will need to include the deps and it'll need to parse the output from stdout to report progress.
from metube.
I understand. I don't mind having this in MeTube then, assuming the dependencies aren't too heavy and are cross-platform (i.e. installed via apk or pip). Someone will have to take up the gauntlet and submit a PR, since I don't think I'll have the time to do it myself anytime soon. I'll reopen the issue and label it accordingly.
from metube.
I just added aria2 to docker (apk add aria2
), and set options YTDL_OPTIONS={"external_downloader":"aria2c"}
, everything seems to work.
but I don't know what the next step is. fyi
from metube.
So the stdout parsing business doesn't need changes, it just works as is? @PikuZheng , do you see the percentage progressing during the download when aria2c is used? (Is it used for sure when you enabled this option in YTDL_OPTIONS
?)
from metube.
yes it works.
INFO:ytdl:adding https://youtu.be/BSCXnJbeLYQ
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = k-elINGi1Gtvc_WsdJ ; player = https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js
INFO:ytdl:downloading 【大食い】これが私の「超ミックスフライ定食」だ。最高だろ?〜4種のタルタルソースを添えて〜【モッパン】【MUKBANG】
INFO:aiohttp.access:3.81.62.76 [13/Aug/2022:11:29:14 +0000] "POST /ytdl/add HTTP/1.1" 200 186 "-" "-"
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = WHE8HzmiU1Doc55s-M ; player = https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js
[#2ff376 48KiB/428MiB(0%) CN:3 DL:96KiB ETA:1h15m30s]
[#2ff376 0.9MiB/428MiB(0%) CN:3 DL:656KiB ETA:11m6s]
[#2ff376 3.6MiB/428MiB(0%) CN:3 DL:1.4MiB ETA:4m48s]
.....
INFO:ytdl:waiting for item to download
There is only one problem, the webui doesn't know the download progress, it only knows the download start and finished.
Also according to yt-dlp's issues, downloading with aria2c may not save to subfolders.
from metube.
Related Issues (20)
- Download progress bars are not displaying correctly using YTDL_OPTIONS HOT 2
- Feature request: authentication screen by default HOT 1
- FR: Optional download folder HOT 2
- FR: Add a Trim feature HOT 1
- minor documentation update on usage of YTDL_OPTIONS HOT 1
- Help with Youtube-dlp HOT 8
- Memory leak when downloading many videos. HOT 4
- ERROR: This video is only available to Music Premium
- ERROR: This video is only available to Music Premium Members HOT 1
- Start a "live" scheduled download doesn't give the hand HOT 5
- issue with tamil/emoji/other characters in youtube file names HOT 16
- Subtitles not downloading HOT 4
- [Feature Request] CSS file for configuration HOT 1
- [Feature Request] HOT 2
- Password protect metube UI HOT 5
- Facebook videos will download but not Facebook reels HOT 5
- Support H.264 as default HOT 4
- Multi-download : Possible ? HOT 1
- queue not loaded after docker container restart HOT 4
- ENHANCEMENT REQUEST HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metube.