Posted By

dragoviandesign on 06/01/14


Tagged

audio mp3 convert ffmpeg ogg


Versions (?)

Convert MP3 to OGG


 / Published in: PHP
 

This snippets converts a file called 'test.mp3' in the same folder, to a file called 'test.ogg' and saves it in the same folder as well

  1. <?php
  2. $ffmpeg = exec('which ffmpeg');
  3. $ffmpegcmd = $ffmpeg." -i test.mp3 -acodec libvorbis test.ogg";
  4. echo $ffmpegcmd;
  5. exec($ffmpegcmd);
  6. ?>

Report this snippet  

You need to login to post a comment.