I am trying to use proc_open to open an instance of ffmpeg. It works with popen without the title but I can't set the title as it needs another line or something I tried
popen("title $title \r start /min ffmpeg -loglevel quiet -re -i udp://$UIP:$UPort -codec: copy -f mpegts udp://$ip?pkt_size=1316", "r"); didnt work,
my working code is as follows
$title=$_POST['title'];
$ip=$_POST['IPtxt'];
$UIP=$_POST['UDPAddress'];
$UPort=$_POST['UDPPort'];
echo "Starting ffmpeg...\n\n";
popen("start /min ffmpeg -loglevel quiet -re -i udp://$UIP:$UPort -codec: copy -f mpegts udp://$ip?pkt_size=1316", "r");
echo "Done.\n";
I need to store a title or process id so i can stop the process when the stop button is clicked. I've looked at proc_open but I'm not sure the right syntax for it.