Hi again,
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",
$this->absoluteRawVideoLink(),
self::$audio_sampling_rate,
self::$audio_bit_rate,
self::$extra_flv_commands,
$this->absoluteFLVPath()
);
$output = self::ffmpeg($args);
}
static function set_var($var, $value)
{
if(property_exists('FLV', $var))
self::$$var = $value;
}
And then obviously in _config.php I included:
FLV::set_var('extra_flv_commands','-sameq');
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)