A
A
asdz2014-11-26 16:22:52
linux
asdz, 2014-11-26 16:22:52

How to convert wav to mp3 in multiple processes using php and lame?

There are a lot of wav files on the server, it takes a long time to convert one at a time. It is necessary to run several conversion processes at the same time. I do it in php

pclose(popen("lame --quiet -V " . $wavlist[$index] . " /dev/null &", "r"));

while the mp3 file is not written to the disc. How to complete this task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ashurok, 2014-11-26
@AotD

Judging by the manual: "lame [options] "
Then you convert it to / dev / null, i.e. going nowhere?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question