Experiences with Online Video Conversion

Posted September 14, 2007, 4:16pm In: Web Related

Recently I’ve had to deal with converting user uploaded video files to flv format. Up until today my initial experiments were unsuccessful.

First, I started with the project FFmpeg. In the beginning it looked promising but rapidly fell short. It wasn’t as platform agnostic as I would prefer (getting it to install my Wamp environment was a pain) and there were a couple outright show stoppers.

For instance, I wanted to grab the dimensions and length of a video file. Ordinarily this would be achievable by parsing the return value of a shell_exec, like so.

Unfortunately, it returns null. Huh. Fancy that.

Now, this isn’t to say that FFmpeg isn’t a fantastic library, and the existance of FFmpeg-php is a major bonus in my books, but the barrier to entry is huge on this one.

Next up was Carbon Coder. Let’s ignore for a moment that there’s a $5,000 price tag attached to it. CC had a free trial which I immediately wanted to try out.

Please note that the Carbon Coder Free Trial utilizes a USB security device that must be shipped in addition to the software (i.e., the Free Trial is not a download).

Well, that sucks.

Finally, I discovered the Flix Engine by On2. During Windows development I can use COM objects (easily accessible via PHP), and on Linux I can use PHP methods and objects I haven’t quite delved into yet.

A couple trials were immediately successful. I find myself overjoyed.

If you can swallow the price, I definitely recommend trying this out.

This entry was posted on Friday, September 14th, 2007 at 4:16 pm and is filed under Web Related. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No Responses...

Leave a reply...

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>