Code: Select all
if($_POST['codec']=="h265"){
$codec=1;
}else{
$codec=0;
}
if($_POST['sound']=="On"){
$sound=1;
}else{
$sound=0;
}
Code: Select all
<?xml version: "1.0" encoding="utf-8"?>
<request>
<videoenc>
<codec>0</codec>
<resolution>384x216</resolution>
<framerate>15</framerate>
<audioen>0</audioen>
<rc>1</rc>
<keygop>30</keygop>
<bitrate>118</bitrate>
<quality>5</quality>
<profile>0</profile>
</videoenc>
</request>
Fun thing is, if i run this command
Code: Select all
php-cgi encoder_control.php 'enc_ip=10.1.1.237&codec=h265&res=576x324&fps=15&keyint=30&v_bitrate=280&sound=On&audio_input=hdmi&a
udio_channels=1&audio_bitrate=32000&enabled=true&pluto_ip=10.1.1.238&pluto_port=8282'
So encoder_control.php definitely works, it's just not being fed with the data it needs to do its job.
Oh, if I manually run udpts.sh, it also sends the right command to the encoder.
Time for a break and figure out why everything else is being sent through but this isn't