manbearwiz/youtube-dl-server

Direct link to audio

utya opened this issue · 4 comments

utya commented

Hi can i receive direct link to file like mp3 without donwload in to the dirrectory

nbr23 commented

Hi @utya, I have a pending pull request (#59) that might answer your request. If you want to check it out until this gets merged into here, it is on the fork https://github.com/nbr23/youtube-dl-server
If you select metadata in the scroll down and put your URL, you will get a pop up with the various links connected to the youtube link.
If I misunderstood what you were looking for, please let me know.

utya commented

so i can download from finished and get link from metada, but in the metadata sometimes i can't find m4a audio

nbr23 commented

The metadata fetching will present you with the files available on youtube (or other content hosts). In some cases, youtube-dl downloads one of the media available and extracts audio from it to create mp3 (or other) files. In that case there will be no direct link to the mp3 file, and you will need to download the video to get the audio.
For example, if you look at the metadata for https://www.youtube.com/watch?v=YkgkThdzX-8:

screen
No mp3 is listed.
However, if you select mp3 in the web ui, or use the following command:
youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=YkgkThdzX-8
You will get an ffmpeg produced mp3.

Basically, if the format you want is not in the metadata, youtube-dl has to create it and needs to download the content locally first.
I hope this answers your questions.

utya commented

thnaks