Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$transcode_cli = "/usr/bin/ffmpeg" . $ffmpeg_arg ;
$transcode_cli = str_replace("[inpath]",$source_path,$transcode_cli);
$transcode_cli = str_replace("[outpath]",$outpath,$transcode_cli);
$transcode_cli .= " > /dev/null 2>&1 & echo $! ";
$pid = exec($transcode_cli, $output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment