Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. echo exec("/usr/local/bin/ffmpeg -i test.mp3 -codec:a libmp3lame -b:a 128k out.mp3");
  2.  
  3. $ffmpegpath= '/usr/local/bin/ffmpeg';
  4. $file='test.mp3';
  5. $exec_string = '"'.$ffmpegpath.'" -i "'.$file.'" -codec:a libmp3lame -b:a 128k out.mp3';
  6. exec($exec_string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement