Currently using PHONEGAP development of mobile phone applications, rarely involved in video playback functions, the main reason is that the PHONEGAP provides the API to support the video playback function is not enough, of course, play audio generally still can be achieved, due to work needs, I have studied how to use PhoneGap to develop video playback software, mainly has the following several ideas:Solution 1: Use the video tag in HTML5 to play, which actually behaves in phonegap and is tested
RTMP HLS HTTP Live protocol one time to see enoughLive from 2016 to 2017 years of fire, now in their own app to join the live broadcast function, just find a ready-made SDK on the line, what shooting, beauty, push flow, one-stop service. But as the most important part of the live stream: The push-flow protocol, many people are not very clear. If you're interested in live streaming and want to learn about the various mechanisms behind it, you can start
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
: This article mainly introduces how to configure the rtmp Server for NGINX to implement rtmp and hls live broadcast. if you are interested in PHP Tutorial, refer to it. Introduction to NGINX
First configure:
work_processes4;events{ work_connections1024;}http{ include mime.types; default_type application/octet-stream; sendfileon; keepalive_timeout65; server{ listen80; server_name localhost; location /{
Tags: VDMA zynq hls FPGA image processing ZYNQ The chip contains a rich feature of the dual-core ARM cortex-a9 processing subsystem (processing System,ps) and Xilinx 28nm programmable logic (Programmable LOGIC,PL). In addition to the core, PS includes on-chip memory, external memory interface and a large number of peripheral connection interfaces. With arm, we can do the embedded operating system related tasks, shape interface, user input, network,
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
Live is not unfamiliar, now the mainstream of the agreement analysis of the contrast chart, personal insights.
Agreement
httpflv
Rtmp
HLs
Dash
Transport layer
HTTP stream
tcp stream
http
http
video format
FLV
flv tag
ts file
mp4 3gp webm
delay
Low
low
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
To use HLS for online video playback, you need to cut a complete video file into multiple TS video streams, and then use the m3u8 index file to play.Under Mac, Apple offers Streamingtools tools with Mediafilesegmenter and Mediastreamsegmenter to cut the file and live stream separately, A single line of commands directly allows you to export the original video file into several TS and index files, which can be used directly. But the general server is L
A Preliminary Study on HLS on-demand and live video streaming, on-demand video streaming
There are only two front-end live video protocols available:
RTMP (Real Time Messaging Protocol)
HLS (HTTP Live Streaming) WhereRTMPIt is a protocol developed by Adobe and cannot be compatible with the iPhone. Therefore, the HLS protocol is the most compatible currently
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
#
Reprinted from: http://www.cuplayer.com/player/PlayerCode/Wowza/2015/0204/1774.htmlHLS (HTTP Live streaming)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 commonly used streaming media protocol mainly has the HTTP progressive download and the real-time streaming media protocol based on the RTSP/RTP, these two kinds basically are completely d
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
analyze the first frame of a TS file (SRS supports the TS file generated by HLS protocol)
1. PAT (Ignore)
2. PMT (Ignore)
3. First FRAME (PES Packet)
Usually a frame of data is a PES package. A PES package can typically be split into multiple TS packages (it is also possible to split into only one TS package, that is, the PES package is less than 188 bytes in length).
Pespacket==tspacket1+tspacket2+tspacket3+...+tspacketn PES Packet = = ts Packe
This article original address: http://blog.csdn.net/zhangrui_fslib_org/article/details/54943587
Reprint please indicate the source, there are questions or errors please email to zhangrui@fslib.org
1080P RTSP address and HLS address test flow Address "m3u8" test address
RTSP Live: Rtsp://202.104.126.35/demoHLS Live: Http://202.104.126.35:16880/demoRTSP Playback: rtsp://202.104.126.35/demo?from=2017-02-07/13:19:24
Technology Related: http:
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.