Open zareefhasan opened 7 years ago
Have you installed FFMPEG with all it's own plugins?
@massoudAfrashteh Yes, I have done it with this guide https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu.
With normal apt-get installation there was a codec issue with libfdk_aac and then i rebuild it from source.
I recommend you testing first separately ffmpeg directly from terminal. and test only nginx rtmp alone. sometimes is about permissions of nginx to execute ffmpeg, but first needs to make shure both awork correctly intependtly
@Somosmultimedia So much thanks for reply. Actually i have tested that command in terminal and ffmpeg successfully encoded and saved livestream into file. Streaming to application 'live' broadcast RTMP and streaming to application 'hls' broadcast single bitrate m3u8 file but there is no multibitrate m3u8. I think nginx is not able to execute ffmpeg. Please let me know can i set nginx permission to execute ffmpeg binary.
Thanks again
in the nginx.conf uncomment and set
to: user root;
then restart nginx
The problem o found is ffmpeg was exiting continuously and find this soluition.
hls_continuous on;
Thanks everybody.
ffmpeg isn't working right. Here is my nging.config file. How to properly install ffmpeg for nginx-rtmp module. I have compiled from source from ffmpeg documentation.