Home > OS >  Nginx RTMP - push the module module flow configuration file how to write to push in flow dynamic add
Nginx RTMP - push the module module flow configuration file how to write to push in flow dynamic add

Time:11-23

Below is nginx. Conf configuration file part of the code
Application HLS {
Live on.
HLS on;
Hls_path/TMP/app.
Hls_fragment 2 s; # will limit the length of each
Hls_playlist_length 6 s; # set the length of HLS playlist, for 30 seconds, by default
Record keyframes.
Record_path/TMP.
Record_max_size 1280 m;
Record_interval 86400 s;
Record_suffix. This. Is. FLV;
}


This configuration to the server after the "domain name"/HLS/XXX push flow, now for business reason needs to be "HLS dynamic configuration," don't know someone can provide a train of thought? We should be grateful,
Study for a while suddenly thought of ffmpeg command to see if there is problem, then put ffmpeg command line to execute, found an error libx264 library was not found, I'm very glad to find the reason, the order changed a can perform
Exec/root/bin/ffmpeg - re - I/usr/SRC/aa. FLV - vcodec copy -f FLV RTMP://localho
St: 1935/HLS/name;
This command is successful, in my site was generated. The ts stream file, and. M3u8 file, then transform into flow is washed-up, nginx. Conf to such, nginx restart is not an error, where all don't complain, just couldn't generate ts and m3u8, knows to the great god of solving!!!!!!
The exec/root/bin/ffmpeg - re - I RTMP://localhost: 1935/app/usd $name - vcodec copy -f FLV RTMP://localho
St: 1935/HLS/$name;

CodePudding user response:

Oneself the top... Nginx RTMP - push the module module flow configuration file how to write to push in flow dynamic address, want to give a train of thought, thank you

CodePudding user response:

Application HLS {
Live on.
HLS on;
Hls_path/TMP/app.
Hls_fragment 2 s; # will limit the length of each
Hls_playlist_length 6 s; # set the length of HLS playlist, for 30 seconds, by default
Push "domain name/IP addresses for pushing flow #
Record keyframes.
Record_path/TMP.
Record_max_size 1280 m;
Record_interval 86400 s;
Record_suffix. This. Is. FLV;
}

CodePudding user response:

For a moment, his research found in the RTMP manual have write a method using the exec can realize:
But I used the no effect, the feeling is ffmpeg no effect, but at the command line, ffmpeg - version is installed, in nginx. Conf configuration file to use is not, a great god, please help have a look, give some ideas

Application SRC {
Live on.
Exec_push ffmpeg -i RTMP://localhost/SRC/$name - vcodec libx264 - vprofile baseline - g 10 - s 300 x200 - acodec libfaac ar - 44100-1 - f ac FLV RTMP://localhost/HLS/$name 2 & gt;>/var/log/ffmpeg - $name. The log.
}

Application HLS {
Live on.
HLS on;
Hls_path/TMP/HLS;
Hls_fragment 15 s;
}

CodePudding user response:

I met nursery rhymes with you the problem of how to change the application to dynamic

CodePudding user response:

Me too, how to configure the exec to make effective ffmpeg?

CodePudding user response:

Applacation why dynamics, the dynamic line behind the push to IP/HLC/IP/HLC/b... Play the IP/HLC/a.. b... c
  • Related