Answer the question
In order to leave comments, you need to log in
How to make an mp4 to mp3/m4a converter?
Good afternoon.
Attention: I am ready to thank financially for the help, the main thing is to help.
You need to be able to download a video from YouTube to mp4 via php / js (this can be obtained without problems through a regular request to YouTube), as well as to mp3 and m4a (this is no longer possible).
I don’t know how to download videos from YouTube to mp3 and m4a, I didn’t find a way. That's why I decided to use the ffmpeg function. With it, everything is converted, but for too long. Are there other ways to convert?
Why am I asking. Look at the x2convert.com service, it allows you to download in the formats that I need. mp3, it converts exactly what and lets me download the file from its hosting, but if you try to download m4a, it will send us to an address similar to the following:
Answer the question
In order to leave comments, you need to log in
I will piss you off like the rest of the people who answer here) Use ffmpeg.
Judging by the speed at which the audio was given to me, there was just enough time to download the video in the weakest quality, and then convert it using ffmpeg.
Then I checked the speed of my laptop, (macbook m1)
And he gave me the following for such a command (the first one from Google):
ffmpeg -i __1080p_vgqjodeu.mp4 -b:a 192K -vn music.mp3
size= 14594kB time=00:10:22.63 bitrate= 192.0kbits/s speed= 90x
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question