Nginx rtmp ffmpeg combo mimic HLS LiveA few days ago, Mister said to engage in a LAN live broadcast, think of the rtmp module mentioned before, holding a try to open the mentality of theSystem environment:[Email protected] html]# uname-a Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT i686 ATHL On i386 Gnu/linux[[email protected] html]# getconf Long_bit32Nginx Environment:1, Nginx:http://nginx.org/download/This test environmen
1. HLS Introduction
Hls, HTTP live streaming is a protocol defined by Apple for real-time stream transmission. HLS is implemented based on HTTP. The transmission content includes two parts: an m3u8 descriptive file, the second is ts media files.
1. m3u8 File
A media file is described in text and consists of a series of tags.
# Extm3u
# EXT-X-TARGETDURATION: 5
#
the data cannot be lost. Nnd, this way to achieve a pause, the protocol stack is crying. Unfortunately, that's what MPlayer did. So the pause time is long, it is easy to have problems.Although HTTP does not have pause support, but for pause can be optimized, the optimization method is that the media file fragmentation, fragmentation of the size of slightly less than the TCP stack buffer size is appropriate. The HTTP request only requests a fragment size at a time, and after the playback is paus
Keywords: nignx (http server); Rtmp,hls (Streaming media Services)Thanks for the open source, thanks to the fighting people. Now in some of the work of streaming media services, streaming media server set up online tutorials more into the calf, but look carefully, found a lot of comrades posted tutorials have a little problem, there are some are crawling other people's data to get, typesetting also have problems, let novice confused. This article is a
EasyhlsWhat is Easyhls ?Easyhls is a Easydarwin open source media community development of a HLS packaging library, the interface is very simple, only need to pass in the packaged file name, tile directory, packaging interval and the number of slices, Easyhls library can easily be H264+AAC streaming media slicing, provided to the Web server for HLS streaming, we provide two sets of operational examples:
With the increasing popularity of smartphones, many people are accustomed to watching videos on their mobile phones. However, once the play, want to see the first television premiere of TV dramas, you have to use TV to see.In order to be able to directly on the phone to enjoy watching TV live happy, netizens are also overwhelming in the inquiry:ü How to achieve the evening mobile phone live?ü How to watch live on mobile phone? Wait, hurry.ü How to use mobile phone to watch live TV ah? Don't want
With the increasing popularity of smartphones, many people are accustomed to watching videos on their mobile phones. However, once the play, want to see the first television premiere of TV dramas, you have to use TV to see.In order to be able to directly on the phone to enjoy watching TV live happy, netizens are also overwhelming in the inquiry:1 How to achieve the evening mobile phone live?2 How to watch live on the phone? Wait, hurry.3 How to watch live TV on mobile phone? Don't want to watch
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 the
I use the Ckplayer player to implement the No ' Access-control-allow-origin ' header is present on the requested resource when playing the. m3u8 file in the HTML5 environment.Find on the Internet that you need to add the Crossdomain.xml file in the root directory of the site, I also added, the result is still invalid. Finally groping for a long time to find the following solution (do not need to add Crossdomain.xml file) Modify nginx.conf
Modify the nginx.conf and add the Add_header Access-contr
supports native video tags and video controls. Because the video control tag also supports HLS protocol playback. So it is possible to play on the mobile side of the mobile website. H5 is to solve the problem of Web playback, HLS solves the problem of mobile-side playback . The combination of the two makes the mobile Web page play perfectly. This enables all people watching live and on-demand video to enjo
Apple's HLS Solution uses the FFMPEG transcoded TS stream, which will gradually become non-synchronous during playback. The solution of Sohu source is to add the discontinue tag every five minutes, however, this tag causes the native player to restart, with a bit of cards. In this case, it is better to rebuild the player without restarting and directly read the next stream. However, there are other problems with FFMPEG processing
I have been busy recently. I just took over a live video and on-demand video broadcast project. The video stream on the server is based on the HLS protocol. I will not introduce the HLS protocol here. Please refer to the official website of apple. When I took over the project, I tried several open-source players, such as mplayer, VLC, and ffplayer. The effects were not very good. When playing m3u8 list, the
This load test tool is a tool for sharing online games and can be used in http://blog.csdn.net/win_lin/article/details/11835011 or https://github.com/winlinvip/ St-load found a very detailed introduction, including how to install, how to use. Server load Test Tool (St-load):
Analog huge concurrency: 2G of memory can open 300k connections. The States-threads-based process.
Supports HLS parsing and testing, downloading TS slices after waiti
With the increasing popularity of smartphones, many people are accustomed to watching videos on their mobile phones. However, once the play, want to see the first television premiere of TV dramas, you have to use TV to see.In order to be able to directly on the phone to enjoy watching TV live happy, netizens are also overwhelming in the inquiry:ü How to achieve the evening mobile phone live?ü How to watch live on mobile phone? Wait, hurry.ü How to use mobile phone to watch live TV ah? Don't want
Tags: FPGAImplementation of Sobel filtering algorithm based on Vivado HLS in ZedboardPlatform: Zedboard + WebcamTools: g++4.6 + VIVADO HLS + Xilinx EDK + Xilinx SDKSystem: ubuntu12.04Overall design ideasTheoretical basis of Sobel algorithmCable Bell operator ( Sobel operator ) is primarily used for edge detection, Technically, it is a discrete difference operator that is used to calculate the approximate va
HLS (HTTP Live streaming) is Apple's dynamic bitrate adaptive technology. Audio and video services primarily for PC and Apple terminals. Includes an index file for M3U (8), a TS media shard file, and a key encryption string file.The key to HLS is to generate m3u8 index files and TS Media shards, and I'll cover the generation of m3u8 and TS media shards by following several steps:The first step ---Get the TS
1. Download nginx-1.5.10 for Windows2. Create a new subdirectory: Nginx-1.5.10\html\hls, copy the generated m3u8 and sliced TS files or directories into the HLS directory3. Modify the configuration file Nginx-1.5.10\conf\mime.types, add the following three lines:In Application/zip zip, add 2 lines after this line:Application/x-mpegurl m3u8;Application/vnd.apple.mpegurl m3u8;After Video/x-msvideo avi; line,
Steps:1.Adobe Flash Media Live Encoder 2.5 pushes H. nginx-rtmp to the main profile;2.nginx-rtmp do HLS slices;3.ipad play HLS, screen jitter.Slice result Analysis:1.ffmpeg (Adobe Flash Media Live Encoder 2.5, + H. Main profile)Test Result: jitter, with B-frame, because the P-frame of PTS is smaller than the PTS in the following B-frameIDR pcr:18900000 pts:126000P pcr:20736000 pts:132120B pcr:22572000 pts:1
Recently, we need to test whether Android supports streaming media playing through the HLS protocol. Some examples on the Internet are used to play local files, and some online files are not streaming media using the HLS protocol. According to the updated description of Android3.0, Android3.0 has started to support most of the HLS streaming media types, so we did
A simple Rtmp/hls Live server licensed by the MIT protocol, its core value concept is simplicity and efficiency.How to use:TEP 1:build SRSTar XF simple-rtmp-server-*.*.tar.gzCD Simple-rtmp-server-*.*/trunk./configure--with-ssl--with-hlsMakeStep 2:start SRS./objs/simple_rtmp_server-c conf/srs.confStep 3 (Optional): Start Nginx for HLSsudo./objs/nginx/sbin/nginxStep 4:publish Live StreamFMS url:rtmp://127.0.0.1:1935/liveStream:livestreamFor example, use
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.