Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YouTube-dl unknown file format + no support tag #15476
Comments
|
Youtube does not serve mp3 so it's technically impossible to download mp3 directly. Second case is incorrect, you won't get mp3 that way. |
|
Hmm, I agree with you. I also believe that. This API provider is giving multiple mp3 links of youtube. And the best thing is its available for download instantly. I dont think its possible to download + convert multiple links instantly. |
Hi,
I am using youtube-dl with php and converting yt video in mp3.
I have found two different ways of doing it.
First is:
youtube-dl --extract-audio --audio-format mp3 video url
It works without any issue but it generates high load on server so i am not comfortable with it.
Second is:
youtube-dl -f 140 -e -g video url
This just fetch the audio/mp4 url with title, dont generate high load and it is very fast so i just give users download by setting php headers like
on my pc / windows it works but few of my customers are reporting that its no playing in their pc.
When i checked most of files at http://mp3val.sourceforge.net/ windows edition.
I found that files generated with first one command gives no error but files which are created by 2nd command are having issues. like unknown file formats / No supported tags in the file etc.
I dont know how to fix it.
Actually my problem is i dont want to download the whole file in mp4/webm and then convert it to mp3 via ffmpeg. It takes a lot of time. I am looking for a easier solution. so i just started to fetch audio/mp4 link and then rename it as a mp3 file with php headers but maybe i forget to fix something.
Is it possible to directly fetch mp4/audio link and turn in into a mp3 file without saving on the server?