Salve,
io utilizzo questo codice per estrarre da uno stream mjpg un immagine jpg
Codice PHP:
<?
$camurl
="http://user:pass@host/mjpg/video.mjpg";
$boundary="\n--";
$f = @fopen($camurl,"r") ;
   if(!
$f)
   {
        
//**** cannot open
        
echo "error";
   }
    else
  {
        
//**** URL OK
         
while (substr_count($r,"Content-Length") != 2$r.=@fread($f,512);
         
$start strpos($r,'˙');
         
$end   strpos($r,$boundary,$start)-1;
         
$frame substr("$r",$start,$end $start);
         
header("Content-type: image/jpeg");
         echo 
$frame;
   }
fclose($f);
?>
Come posso inserire a questa immagine nel codice php, un logo e una barra con del testo nella parte inferiore della foto?