php - LAME execution error code: 255 while using phplame on ubuntu server -


i attempting convert .wav .mp3 using lame , php wrapper phplame. when run script below recieve following:

string(151) "lame execution error! command: `/usr/bin/lame --preset standard 'lametest.wav' 'lametest.mp3'`, error: `can't init outfile 'lametest.mp3' `, code: 255" 

lametest.php:

    <?php require 'vendor/autoload.php';  use lame\lame; use lame\settings;  // encoding type $encoding = new settings\encoding\preset(); $encoding->settype(settings\encoding\preset::type_standard);  // lame settings $settings = new settings\settings($encoding);  // lame wrapper $lame = new lame('/usr/bin/lame', $settings);  try {     $lame->encode("lametest.wav",          "lametest.mp3"); } catch(\runtimeexception $e) {     var_dump($e->getmessage()); }   ?> 

it permissions issue had give permission of output folder user www-data. link helped me http://ycsoftware.net/cant-init-outfile-ycsoftware-mp3/


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -