Open mfuzailzubari opened 6 years ago
@mfuzailzubari To get started ... It would be nice if you posted a readable configuration ...
@AVBIT Please check https://gist.github.com/mfuzailzubari/8bef96c8bc19584a09d41b4b208a9d00
@mfuzailzubari I do not understand how you will have the variable "$name" in the application "live" After the publication (rtmp://192.168.1.68:1935/show/stream) , variable $name = "stream" and the variable will be available in the application "show"
Try to comment out the lines "exec ffmpeg -i rtmp: //192.168.1.68/live/$name ..." And run "ffmpeg -i rtmp: //192.168.1.68/live/$name ..." with the command line. Surely you will see in the output that the ffmpeg can not receive the incoming stream.
P/S And I'm using 'exec_statics' instead of 'exec' Although I do not know why :-)
I am working on a adaptive HLS solution using Nginx RTMP module as streaming server and VideoJs as client. I have completed the setup i.e. NGINX configurations and client sample in VideoJs.
NGINX Configurations: nginx.txt
I am using this Ffmpeg command to generate stream:
ffmpeg -re -i /home/user/Downloads/test.mp4 -vcodec libx264 -vprofile baseline -g 30 -acodec aac -strict -2 -f flv rtmp://192.168.1.68/live
My problem is that sometimes the Nginx does not generate .ts and .m3u8 files in
/tmp/hls
directory when I issue the above ffmpeg command. I have also enabled the nginx-rtmp module logs but they are only giving me access information and I am not getting any logs in error logs.Do let me know if more information is required. Any help will be appreciated.
Thanks,