Nginx exec_pull streaming Only

Cancelled Posted 4 years ago Paid on delivery
Cancelled Paid on delivery

i am working with rtmp-nginx module with the configuration to pull http stream on client play. using the following config, that saves the segments of m3u8 stream to /HLS/live

exec_options on;

exec_pull ffmppeg -i http://ip-stremingserver/stream/0000 -strict -2 /HLS/live/[login to view URL];

now i need a http hook so that it excutes ffmpeg command when client plays http stream like this: http://my-nginx-server-ip/live/[login to view URL]

i already have hls on in my configuration, but i need to run ffmpeg on demand ONLY when hls client connects.

currently it is like this:

exec_options on;

exec_pull ffmpeg [login to view URL] -strict -2 /HLS/live/[login to view URL]

I need to add few different streams ( [login to view URL], [login to view URL], 03.m3u8...)

I want ONLY after client connects to http://my-nginx-server-ip/live/[login to view URL] ffmpeg command gets executed. and then HLS is available.

what i need is to have the above configuration, but when client connects to HLS stream (which will not be available yet) , ffmpeg command will be executed and HLS will be available then.

something like what fastcgi does, when you connect to http url a local command is executed, but the http url is actually the HLS stream, which will be the output of the executed command.

I have been trying with different configurations codes without success, so that is the reason I need some freelancer's help.

JavaScript Linux Nginx PHP

Project ID: #19431094

About the project

5 proposals Remote project Active 4 years ago

5 freelancers are bidding on average $122 for this job

phpizephing

Hello, I have experience with nginx-rtmp-module and have good knowledge about ffmpeg. I have used nginx-rtmp-module to push streams to media servers and as well for converting rtmp to hls. I dont see More

$50 USD in 1 day
(18 Reviews)
4.5
wushaobo

I am experienced. I will take it over and demo to you with SRS as well as OBS. If it is convenient, I could help to set it up on your server.

$50 USD in 3 days
(1 Review)
2.1