I have very limited knowledge when it comes to console commands. What I'm trying to achieve is to execute a console command within a PHP query.
Example
<?php
$sql = mysql_query("SELECT * FROM `users`");
while( $select_users = mysql_fetch_array( $sql )){
}
?>
The command I want to execute within the WHILE
So within this query I want to execute this command however am unsure how to achieve this; I have looked at similar questions however unsure how to implement them into my example.
ffmpeg -ss 00:00:01.01 -i /my_video_file_dir/video.flv -y -f image2 \
-vcodec mjpeg -vframes 1 /image_dir/screenshot.jpg