What say nginx logs ?
second use command: ffmpeg -i rtmp://localhost/$app/$name -c copy -f flv rtmps://xyz.global-contribute.live-video.net/sk_us-w_xyz
to run manualy, for $app/$name rewrite to correct value.
If i insert without the command exec, it comes to following error by restart NGINX.
Did you mean i run ffmpeg from command line manual
I try.. i have only the application name. A Name of file didn´t exist. So only the above configs i have maked and exists from strat post.
So the App Name is this: application
xyz3234
But where i get the Name?
When i use it in the Config without Exec it comes :
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-03-10 18:47:34 UTC; 19s ago
Docs: man:nginx(8)
Process: 34127 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Mar 10 18:47:33 localhost systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 10 18:47:34 localhost nginx[34127]: nginx: [emerg] unknown directive "ffmpeg" in /etc/nginx/nginx.conf:142
Mar 10 18:47:34 localhost nginx[34127]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 10 18:47:34 localhost systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 10 18:47:34 localhost systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 10 18:47:34 localhost systemd[1]: Failed to start A high performance web server and a reverse proxy server.
When i start it manualy is there a input / output error.. Think its by missing App and Name...
The Error Log is this after a short start and stop from 3 seconds
2023/03/10 18:52:07 [alert] 34231#34231: unknown process 34235 exited on signal 9
2023/03/10 18:53:03 [error] 34231#34231: *11 open() "/usr/share/nginx/html/actuator/gateway/routes" failed (2: No such file or directory), client: xyz server: localhost, request: "GET /actuator/gateway/routes HTTP/1.1", host: "xyz"
2023/03/10 18:53:52 [alert] 34231#34231: unknown process 34252 exited on signal 9
Acces Log is :
[10/Mar/2023:18:52:07 +0000] PUBLISH "xyz" "" "" - 10190620 529 "" "FMLE/3.0 (compatible; FMSc/1.0)" (17s)
[10/Mar/2023:18:53:03 +0000] "GET /actuator/gateway/routes HTTP/1.1" 404 197 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
[10/Mar/2023:18:53:52 +0000] PUBLISH "xyz" "" "" - 24135195 529 "" "FMLE/3.0 (compatible; FMSc/1.0)" (36s)
And again thanks for your help ;)