I am having an issue with nginx-rtmp-module exec ffmpeg command. i have followed the example on www.github.com/arut/nginx-rtmp-module
/home/junaid/bin/ffmpeg -f video4linux2 -i /dev/video1 -c:v libx264 -an -f flv rtmp://127.0.0.1:1935/myapp/mystream
the command is working fine in terminal
Config file:
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application myapp {
live on;
allow play all;
exec_static /home/junaid/bin/ffmpeg -f video4linux2 -i /dev/video1 -c:v libx264 -an -f flv rtmp://127.0.0.1:1935/myapp/mystream;
}
}
Error log: http://www.codepad.org/enD4wlZ9
I have tried:
please help me resolve this issue
got it. the problem was permission error to /dev/video0 just changed /dev/video0 to rtsp address of camera