inzania Posted January 19, 2011 Share Posted January 19, 2011 Hey all, So I have .caf files that are recorded from my iOS applications and uploaded to my server. Ultimately I want to play these recordings within my website using jPlayer (a jQuery plugin: http://www.jplayer.org), which means they need to be converted from the .caf format. The encoding cannot be done on the mobile device, or so I am told, being that it is too processor intensive. This leaves the webserver... So far I've had very little luck finding any way to convert the file using PHP. I assumed that it would be easy enough to use something like LAME to encode the caf into a mp3. I've seen a few cryptic references to doing exactly this in my google searches, but no definitive information. Can anybody shed some light on the situation? Thanks. Link to comment https://forums.phpfreaks.com/topic/225025-encoding-an-audio-file-with-php-converting-from-caf-using-lame/ Share on other sites More sharing options...
jdavidbakr Posted January 19, 2011 Share Posted January 19, 2011 I've done this by having PHP put the file into a storage location, and populating a database table that a cron script runs to encode the file. You probably could just as easily use the shell_exec() function in your upload script, but you might run into timeout issues if it takes too long to encode. Link to comment https://forums.phpfreaks.com/topic/225025-encoding-an-audio-file-with-php-converting-from-caf-using-lame/#findComment-1162239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.