Convert MP3 to OGG

/ Published in: PHP
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.