Yea I couldn't see the single 0-30 quality setting in the ffmpeg documentation but I have achieved what I wanted by using -sameq which sets it to the same quality as the upload, I will tinker with it a bit more down the line. The changes I have made are the addition of the following to FLV.php I figured I would set it up so that I could pass any arguments I liked into the encode so that it would be easy to use the heaps of different encoding options.
public static $extra_flv_commands;
private function createFLV()
$args = sprintf("-i %s -ar %d -ab %d %s -f flv %s",
$output = self::ffmpeg($args);
static function set_var($var, $value)
self::$$var = $value;
And then obviously in _config.php I included:
What do you think about setting it up like this?
(Also I've got a little bug but ill post it in the other thread)