Open MasAries opened 6 years ago
try using the full path to ffmpeg, you can find this by running
which ffmpeg
mine is /usr/bin/ffmpeg
try using the full path to ffmpeg, you can find this by running
which ffmpeg
mine is /usr/bin/ffmpeg
using exec ffmpeg should fix it
this is my nginx.conf ` user www-data; worker_processes auto; events { worker_connections 1024; }
RTMP configuration
rtmp { server { listen 1935; # Listen on standard RTMP port chunk_size 4000;
}
http {
aio on;
listen 80;
xx.xxx.xxx.xxx"
server_name_in_redirect off; charset utf-8; access_log /usr/local/nginx/access.log; error_log /usr/local/nginx/error.log; root /usr/local/nginx/html; index index.php index.html; location / { try_files $uri $uri/ =404; server_name_in_redirect off; } location ~ .php$ { try_files $uri $uri/ /index.php; fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
}
}
` show failed :) root@server:~# /usr/local/nginx/sbin/nginx -t nginx: [emerg] unknown directive "ffmpeg" in /usr/local/nginx/conf/nginx.conf:26 nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
help to make that work, what should i do