metube
metube copied to clipboard
auto convert
i would like to be able to download a video and mp3 at the same time
so i could paste a url and click video and audio
so it download the video then auto convert it to mp3 as well
would be nice to have other formats as well
auto convert to mkv avi mp4 ts wma etc and for audio mp3 ogg flac etc
it could be in settings for the default format to use and then on the main page options to change on the fly
Hi, No plans to implement this for the time being, but if someone comes up with a good UI and implementation for this, I'll gladly merge the PR.
Though not a UI implementation, see if the new support for youtube-dl options via the YTDL_OPTIONS environment variable solves at least some of the use cases for you.
I have a question.
I added the proxy server option in the environment variable.
However, the proxy server is not called when the program is working.
environment:
- YTDL_OPTIONS={"proxy":"192.168.1.88:7890"}
Is there a way for the program to read yt-dlp.conf?
Write custom options to yt-dlp.conf, It works great to use on My PC.
A few issues here -- if you give this value in YAML you have to escape the string, I think, otherwise the YAML parser will parse it instead of MeTube parsing it.. Also, I think yt-dlp expects a URL for the proxy there, no? So it'd be http://192.168.1.88:7890. But maybe it works this way too, I don't know.
If you prefer to use a config file, you can mount it under /etc/yt-dlp.conf, and it should work, as far as I understand:
volumes:
- /path/to/your/yt-dlp.conf:/etc/yt-dlp.conf
A few issues here -- if you give this value in YAML you have to escape the string, I think, otherwise the YAML parser will parse it instead of MeTube parsing it.. Also, I think yt-dlp expects a URL for the proxy there, no? So it'd be http://192.168.1.88:7890. But maybe it works this way too, I don't know.
If you prefer to use a config file, you can mount it under /etc/yt-dlp.conf, and it should work, as far as I understand:
volumes: - /path/to/your/yt-dlp.conf:/etc/yt-dlp.conf
I tried this method, But entering the URL on the web page will not call the options in yt-dlp.conf
.
However, use the docker exec -it metube /bin/sh
command to enter the container,
It will work when typing yt-dlp video_url
Got it. So I guess calling the API from Python (which is what MeTube is doing) skips reading the config file. How about trying the environment variable, but with escaping? Does it work?