How to convert .flac to .mp3 using PHP -


for personal website i'd implement gadget me , friends. aim of script should convert uploaded .flac audio file .mp3 choosing music quality eg 128kbit/s or 320kbit/s. possible if so, how? interesting core part (converting), rest have implement :)

thanks :)) niklas

are familiar ffmpeg? if installed on server, can try running on cli

ffmpeg -i input.flac output.mp3 

if works, can go on trying passing command application shell (if use example php application , debian linux hosting.)

to include bitrate can use

ffmpeg -i input.flac -ab 128k output.mp3 

or

ffmpeg -i input.flac -ab 320k output.mp3 

if can use it, see documentation: http://ffmpeg.org/ffmpeg.html possible, have use different command bitrate depending on version.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -