rendered paste body$dspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "/tmp/eo.txt", "a"),);
$process = proc_open("nice -n 999 vlc --intf dummy --sout '#transcode{vcodec=DIV3,vb=".$_POST['vbit'].",scale=1,acodec=mp3,ab=".$_POST['abit'].",channels=2}:std{access=mmsh,mux=asfh,dst=openleague.org:8080' \"".$cfg["path"].$_POST['dir'].$_POST['fileFrom']."\" ", $dspec, $pipes);
if (is_resource($process)) {
fwrite($pipes[1], "fastforward");
fclose($pipes[0]);
fclose($pipes[1]);}
$return_value = proc_close($process);
return !$return_value;
}