mercredi 4 février 2015

Unknown directive "ffmpeg"

I'm setting up Amazon AWS s2 Linux(non-AMI) and building up nginx and rtmp from scratch. I follow exactly tutorials at here. When I'm eidting nginx.conf, adding ffmpeg and restart my nginx. Unknown directive "ffmpeg" occurs.


Nginx.conf



rtmp {
server {
listen 1935;
chunk_size 4096;
notify_method get;

application live {
live on;
ffmpeg -re -i /var/video/test.mp4 -c copy -f flv rtmp://locahost/live;
}
}


}


Way I start nginx:



sudo /usr/local/nginx/sbin/nginx



Way I stop:



sudo /usr/local/nginx/sbin/nginx -s stop



From what I knew, I need to recompile the nginx ? Because I'm using "sudo apt-get install nginx" when I start-up my VPS.


Aucun commentaire:

Enregistrer un commentaire