Parameter yang digunakan di FFMpeg apabila kita ingin menggunakan pseudo streaming.

contoh berikut menggunakan Php.

$infile = source file
$tmpfile = temp file
$outfile = output file

$options = "-crf 28.0 -vcodec libx264 -b:v 512k -r:v 24 -coder 1
-flags +loop+mv4 -partitions +parti4x4+partp8x8+partb8x8
-me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -me_range 16 -g 250
-keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51
-qdiff 4 -pass 1 -threads 2";

shell_exec('ffmpeg -y -i '.$infile.' '.$options.' '.$tmpfile.' 2>&1 &');
shell_exec("ffmpeg -y -i ".$infile." -acodec libfaac -ar 44100 -ab 96k 
-pass 2 -threads 2 ".$options." ".$tmpfile.' 2>&1 &');
shell_exec("qt-faststart ".$tmpfile." ".$outfile.' 2>&1 &');
shell_exec('rm '.$tmpfile);