title: raspberry pi camera streaming won't start from php
body: <p>Lately I've been playing with R-Pi. Now I'm trying to stream with the Raspberry pi b+ and camera.
  I have a basic website in php from where I give commands to camera (Start - Stop streaming).</p>
  
  <p>The problem is that when I press Start Streaming , the RED led from camera will light for a sec then it's going off.
  When I choose to run the stream from command line(terminal) , it works.</p>
  
  <p>Here's my script :</p>
  
  <blockquote>
    <p>#!/bin/sh
      raspivid -o - -t 0 -n -w 600 -h 400 -fps 12 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264</p>
  </blockquote>
  
  <p>And here's my php file where do I call the shell script:</p>
  
  <blockquote>
    <p>$trimite = shell_exec('sudo sh streaming.sh');</p>
  </blockquote>
  
  <p>Any ideeas? 
  Thanks in advance !</p>