I don't know how many people are actually using DOM for High Quality video conversion. Well I had some trouble getting my videos to a very high quality and getting the progress bar to work.
After installing FFMPEG I found that uploading any files other than FLV's the progress bar didn't work. FLVTOOL2 fixes this by inserting Metadata into your newly created flv.
on Cent OS yum install flvtool2, will take care of that.
Here is the code I now use.
in FLV.PHP search for createFLV()
private function createFLV()
{
$args = sprintf("-i %s -ar %d -ab %d -s 640x480 -r 30fps -b 3000kbps -g 100 -f flv - | flvtool2 -U stdin %s",
$this->absoluteRawVideoLink(),
self::$audio_sampling_rate,
self::$audio_bit_rate,
$this->absoluteFLVPath()
);
$output = self::ffmpeg($args);
This is the bulk of the FFMPEG command
$args = sprintf("-i %s -ar %d -ab %d -s 640x480 -r 30fps -b 3000kbps -g 100 -f flv - | flvtool2 -U stdin %s",
This also generates the progressive download, like youtube. I hope this saves someone some time.
Note this generates very high quality FLV's. The final size of the FLV will be just as large, if not larger than the original uploaded.