Domanda

I have a linux server, I am looking to convert a .wma file to .flac file 16k

Is there a way I can do this using a PHP Script to control the server?

I was thinking .wma to .wav then .flac would be easier, but not sure how...

Any help is greately appreciated.

È stato utile?

Soluzione

You can invoke the command line through PHP so that it just works as a safe interface to remote users.

Keeping that in mind you can use the ffmpeg library to go right from .wma to .flac using:

ffmpeg -i sample.wma -acodec flac -aq 100 sample.flac

You'll want to have something to manage file names and getting/serving the files, etc but that doesn't seem to be the hurdle in this case.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top