to real-time requirements are very high, such as 0.5s or less, this is a good choice. The former mimic Spydroid wrote a proposed RTSP server, in fact, is options,describe,setup,play,pause,teardown these steps, the agreement with the most extensive, on-line introduction is more. To really understand the RTSP protocol, the C + + language is good to see live555.RTMP protocol, own recent research, if interested, can look at my other articles.RELATED Links: http://www.52player.com/VideoPlayer/2014/1
open Build Phases to add the following libraries
This is perfect, and you can easily and happily develop streaming media ........Iv. M3U8
What is M3U8?M3U8 files are M3U files in UTF-8 encoding format. The M3U File records an indexed text file. When it is opened, the playing software does not play it, but finds the network address of the corresponding audio/vide
554. Generally, streams in ts and MP4 format are transmitted. 3. HLS (HTTP live streaming)××× Streaming media protocol. M3u8 is used as the index file, and the video is a segment file in MPEG2-TS format. If it is a live video stream, update the m3u8 file to live the video. Because the final video is a fragment file, the length of the list video is delayed. Therefore, it can only be used for quasi-real-tim
In order to facilitate live/monitor users to use cloud storage products to store audio and video data, Alibaba Cloud Storage (OSS) products recently launched rtmp streaming function. The user can upload the audio and video data to the cloud storage OSS directly using the RTMP protocol.
Cloud Storage Livechannel Introduction
Livechannel is the new concept of cloud storage in order to manage the rtmp push stream, and the Livechannel is the live channel, which is used to save the push flow configur
server at this point but there is another important step to take that ensures they will be downloaded correctly and thatIs setting up MIME types. There are two MIME types that are important for the streaming content:. M3u8 application/X-mpegurl
. Ts video/mp2t
If you are using Apache you wowould want to add the following to your httpd. conf file:Addtype application/X-mpegurl. m3u8
Addtype video/mp2t. Ts
If
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
# Extinf: 5,
./0.ts
# Extinf:
-bufsize 400 k-threads 0-r 30-f flv rtmp: // 192.168.1.104: 1935/mobile/$;}
# Creates our "mobile" lower-resolution HLS videostream from the ffmpeg-created stream and tells where to put the HLS video manifest and video fragmentsApplication mobile {Allow play all;Live on;Hls on;Hls_nested on;Hls_path/HLS/mobile;Hls_fragment 10 s;}
# Allows you to play your recordings of your live streams using a URL like "rtmp: // my-ip: 1935/vod/filename. flv"Application vod {Play/video_recordings;}}}
Http {Incl
{Worker_connections 1024;}rtmp{server {Listen 1935;Chunk_size 4000;#liveApplication MyApp {Live on;HLS on;Hls_path/tmp/hls;hls_fragment 2s;Hls_playlist_length 6s;}}}#HTTPhttp{server {Listen 80;#welcomeLocation/{root HTML;Index index.html index.htm;}#hlsLocation/hls {Types {APPLICATION/VND.APPLE.MPEGUSR m3u8;VIDEO/MP2T ts;}root/tmp;Add_header Cache-control No-cache;}}}Use the player on the VLC or ipad to view the http://yourip/hls/test.m3u8.++++++++ te
://your_ip/myapp/test, using the player (http://www.cutv.com/demo/ LIVE_TEST.SWF) to see if it is OK.++++++++ test HLS slicing function +++++++++++Modify the contents of the/usr/local/nginx/conf/nginx.conf as follows:#debugDaemon off;Master_process off;Error_log./error.log Debug;events{Worker_connections 1024;}rtmp{server {Listen 1935;Chunk_size 4000;#liveApplication MyApp {Live on;HLS on;Hls_path/tmp/hls;hls_fragment 2s;Hls_playlist_length 6s;}}}#HTTPhttp{server {Listen 80;#welcomeLocation/{roo
-(void) Viewdidload {[Super Viewdidload];This link is m3u8, you see this blog when this link may have expired, please find the link Test yourselfAvplayeritem *playitem = [[Avplayeritem Alloc] initwithurl:[Nsurl URLWithString:@ "http://cctv1.vtime.cntv.cloudcdn.net/cache/12_/seg0/index.m3u8?" auth=kdumcpyypzstcmtewpt/u78mdd6mwspcexl98vdwcn8riwa7hzqdk8s3rwkdw3pymv7tkvlhq5ujp1ghxtkwgg== "];Initialize AvplayerSelf. Avplayer = [[Avplayer alloc] Initwithpla
CPU caused a great burden, so the mobile phone engineers to this part of the work is more adept at processing simple work but a large amount of data gpu.GPU decoding is called hard decoding.CPU decoding is soft decoding.iOS provided by the player class is hard decoding, so video playback on the CPU will not be a lot of pressure, but the supported playback format is relatively single, generally is MP4, MOV, M4V these several.HTTP Live StreamingAbout HLSHTTP Live Streaming (abbreviated as HLS) is
The process of doing a lot of problems, the environment actually needs Nginx can, and then is in the playback of the problem, m3u8 format, Mac direct access to support, Apple system native H5 support m3u8, there is also direct access to mobile phone support! But other PC side does not support, tried a lot of not, finally found a support m3u8 format H5 play (https
1. Why to use HTTP Live streamingRefer to WikipediaHTTP Live Streaming (abbreviated as HLS) is an HTTP-based streaming network Transfer protocol proposed by Apple. is part of Apple's QuickTime X and iphone software system. It works by dividing the entire stream into small HTTP-based files to download, one at a time. When media streaming is playing, clients can choose to download the same resources at different rates from many different alternative sources, allowing streaming media sessions to ac
mechanism of Web server can do high concurrent streaming media distribution;2, the player according to the network bandwidth size dynamic switching different bitrate media source, has the good compatibility;3, has technology by the strong technical strength of the company to lead the development of standards, reliable and practical.Has technology from the development of Internet video technologies, if applied to the traditional industry, will also bring good results.One, Apple HTTP Live streami
Seven cows using real-time transcoding after the automatic storage of m3u8, is the source file name + random characters named? How to directly access the transcoded file, avoid multiple transcoding
Pre-transcoding Address:0396f06dee5e36e02197631adbc2b5.mp4Post-transcoding address:http://video.dameiketang.com/...
Reply content:
Seven cows using real-time transcoding after the automatic storage of m3u8,
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
# Extinf: 5,
./0.ts
# Extinf: 5,
./1.ts
# Extm3
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
# Extinf: 5,
./0.ts
# Extinf: 5,
./1.ts
# Extm3
1. Four real players are defined by default in android4.0.1, as follows:
static sp
2. What is the expertise of each player?
Player type
Feature description
Test_player
The URL starts with test. Such as test: XXX
Nu_player
The URL starts with http: // or https: //, And the URL ends with. m3u8 or the URL contains an m3u8 string.
Sonivox_player
Process media fil
adept at processing simple work but a large amount of data gpu.
GPU decoding is called hard decoding.
CPU decoding is soft decoding.
iOS provided by the player class is hard decoding, so video playback on the CPU will not be a lot of pressure, but the supported playback format is relatively single, generally is MP4, MOV, M4V these several.
HTTP Live Streamingabout HLSHTTP Live Streaming (abbreviated as HLS) is an HTTP-based streaming network Transfer protocol proposed by A
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.