S
S
samlowry2012-09-12 08:24:04
YouTube
samlowry, 2012-09-12 08:24:04

How to download an audio track from Youtube in mp3 format with a server script?

Subject. The method is needed for a php script, which will download all the tracks of the selected user in a batch and archive them for further downloading to the computer with a regular downloader.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Shvalyov, 2012-09-13
@samlowry

ffmpeg -i YouTube.flv -ab 160k -ac 2 -ar 44100 -vn audio.mp3

And download via youtube-dl, although it has its own --extract-audio parameter, through which ffmpeg saves the audio track from the downloaded file.

N
nur, 2012-09-12
@nur

apt-cache search youtube
got a bunch of things, including
youtube-dl - downloader of videos from YouTube and other sites
I think it's worth trying through the system call

P
Puma Thailand, 2012-09-12
@opium

you can't download mp3 from youtube, download the video and then rip out the audio track.
You can download the video with a simple parser.

A
abchicken2, 2019-03-29
@abchicken2

Just put the "bullet" in the hole!
The iPhone doesn't feel awkward.
Like this.
5c9e662779a46307934317.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question