exec vlc code for Http Live streaming using php
===

Please give me a solution, I am trying to run VLC VOD stream code using php exec function. It just create only one segment and playlist. When we run it, it has only a beep sound, Nothing will display. When i execute the code using mac terminal it works fine. Please help, i am hanging my head for few hours with this problem.

My Code is : usr/bin/vlc -I dummy http://iseofirm.net/test/livestream/123.mp4 vlc://quit --sout='#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=10,delsegs=false,numsegs=0,index=/var/www/html/test/livestream/mystream.m3u8,index-url=http://iseofirm.net/test/livestream/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/html/test/livestream/mystream-########.ts}'

Please help how to execute this above code using PHP exec function