Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct link to audio #65

Closed
utya opened this issue Jun 5, 2020 · 4 comments
Closed

Direct link to audio #65

utya opened this issue Jun 5, 2020 · 4 comments

Comments

@utya
Copy link

utya commented Jun 5, 2020

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

@nbr23
Copy link

nbr23 commented Jun 10, 2020

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
Copy link
Author

utya commented Jun 10, 2020

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

@nbr23
Copy link

nbr23 commented Jun 10, 2020

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
Copy link
Author

utya commented Jun 11, 2020

thnaks

@utya utya closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants