we can't use certain things because they're not defined in php-ffmpeg, and the script is starting to look *really* ugly.