I cannot seem to get 'qt-faststart' working for streaming videos.
The code below creates an mp4 file that downloads progressively and is of the correct file size and duration, but there is no visual or audio...

What is wrong here?

Code:
exec(escapeshellcmd('ffmpeg -i '.$filename.' -an -pass 1 -vcodec libx264 -vpre fastfirstpass -b 2048k -bt 2048k -threads 0 NUL'));
 
exec(escapeshellcmd('ffmpeg -i '.$filename.' -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre hq -b 2048k -bt 2048k -threads 0 '.$source));
 
exec(escapeshellcmd('qt-faststart '.$source.' '.$source));