jlmcdonald/byu-hummedia-api — pull request #12 by webnard (2013-12-23 23:58:20+00:00)
Title: FFMPEG Data

I've removed the dependency to the external FFMPEG module and added a method to retrieve the relevant bits of information from avprobe (which should already be installed alongside avconv). This doesn't have the benefit of being a custom extension, but since the previous code was calling a PHP shell command, I figured calling a binary file wouldn't significantly impact the overhead.

The main reason for doing this was to enable running the API locally. Since previously the API was dependent on unpublished code, adequately provisioning development environments would be burdensome at best.

This pull request also uses shutil.move rather than os.rename because of limitations of shared folders, the foundation to our Vagrant setups. This shouldn't affect the current production setup. From the docs:

"If the destination is on the current filesystem, then os.rename() is used. Otherwise, src is copied (using shutil.copy2()) to dst and then removed."