I have a website where users can upload music and get it converted to mp3, but I need mp3 and ogg file support to play the music in html5. So, is there any php script that can convert mp3 to ogg?
Asked
Active
Viewed 4,821 times
2
-
2There is unlikely to be a PHP script. Can you use command-line tools like ffmpeg? – Pekka Feb 24 '11 at 13:16
-
it's to many files to download and upload agen.. – Alexander Feb 24 '11 at 13:23
-
I think @Pekka is suggesting you run these tools server-side from within PHP – user229044 Feb 24 '11 at 13:29
-
Ok, i'm not so good at things like that. I feel a little noob here. How do you do that? – Alexander Feb 24 '11 at 13:30
1 Answers
4
Use ffmpeg.
You can execute commands directly from your php script.
-
3It is also available as a PHP extension, but in my experience, it is far easier just to call the command line version. – Brad Feb 24 '11 at 14:38