(go) Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Source: Internet
Author: User

First, to ensure the normal operation of Nginx:

This is because we add nginx directory to the path in front, but nginx start the various paths are the current working directory as the starting point, which led to the system to "c:\users\[username]/conf/nginx.conf "This place is going to look for configuration files instead of the normal" d:\nginx-1.3.9/conf/nginx.conf ". It seems not easy to lazy ah ... This problem also exists under CentOS, but Linux can be directly to the service Nginx, so there is no requirement for the current working directory. Windows of course can also be registered as a service nginx, too lazy trouble, later used to say ...

Second, the normal operation after the configuration HLS information

1. Download nginx-1.7.11 for Windows to download directly from the Nginx website

2. Create a new subdirectory: Nginx-1.5.10\html\hls, copy the generated m3u8 and sliced TS files or directories into the HLS directory

3. Open task to manage it, kill Ngnix.exe, restart Ngnix.exe

4. Open VLC Player, "open network Stream" menu, input url:http://192.168.1.100/hls/playlist.m3u8 can test play, on your ipad, can also play, simple!!

Third, use FFMEPG to turn TS file m3u8 and slice

Online a lot of rubbish articles recommended segmenter tools, but when used, 3.5G TS file lost half of the data, so think of ffmpeg turn. In the foreign web site to find orders, a word to fix, did not report half a sentence: Ffmpeg-i 12 zodiac. Ts-c copy-map 0-f segment-segment_list playlist.m3u8-segment_time . ts by the way to share with your domestic colleagues, so as to avoid suffering. After all, it is said that HLS represents FUTURE,RTSP is already a past style. In addition, for downloading the FFMEPG binary version under Windows, please go to the website http://ffmpeg.zeranoe.com/builds/win32/shared download the latest version without compiling it yourself.

Live recording screen and publish live stream, and use VLC to watch???

(go) Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.