Android audio and video goes deep into FFmpeg to implement Rtmp-based streaming (with source code download) and ffmpegrtmp
Source Code addressHttps://github.com/979451341/Rtmp1. Configure the RTMP Server
I don't want to post two blogs on mac and windows respectively.
Set up an RTM
RTMP is designed for transport network streaming, requires support from servers such as Fms,awaza, and provides better copyright protection for streaming media content, and it also needs to pay royalties to adobe itself.
First, the two work differently:
RTMP data requires a dedicated
Nginx builds one of the streaming media servers supporting http and rtmp protocolsPurpose:Enable Nginx to support flv and mp4 files and RTMP live and on-demand video;Enable the rtmp hls FunctionMATERIALS:HTTP Live Streaming (HLS) is an HTTP-based
1 Why use flash ActionScript to implement the RTMP protocol to publish or play media streams, play media streaming, protocol controllable, such as the number of streaming media encryption, mixing and so on.2 core ideas using the flash socket to establish a TCP binary transmission channel, the binary data is mainly RTMP
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 intereste
Preface
Recent projects require streaming media playback, the backend provides three kinds of streaming data (Rtsp,rtmp,hls), in different scenarios may be used in different ways to play, you need to adapt to support all streaming data playback. Spent a period of time studying, here and share with you, there are some
Battle the people of Russia to develop a nginx streaming plug-in, in addition to live streaming audio and video streaming server with the common functions of the media
such as push-pull streaming media resources
Flv/mp4 VOD on-demand based on HTTP
HLS (HTTP
and install the nginx containing the Nginx-rtmp-module module2.3.1, enter the nginx-1.8.1 source directoryRun the following command in turn: ./configure --prefix=/usr/local/nginx --add-module=/usr/local/rtmp/ nginx-rtmp-module.1.1.4 --with-http_ssl_moduleMake-f Objs/makefileMake-f Objs/makefile InstallThird, configure on-demand rtmp3.1, open the nginx.conf co
Take a UAV project, responsible for video playback this piece, choose is video.js this video plug-in, this thought can open happy heart development, who how material online about this part of the information so little, give me this hand party gave a great pressure. Okay, don't talk nonsense.The project needs to achieve a four-way player, can play the drone shot real-time screen, and can do local refresh without affecting the entire page, and to be able to dynamically switch the source of the vid
In the RTMP Audio Video preview transmission, the video to the Crtmpserver server, and then play with the Flashbuilder, playback failure, and then use the FMS server for transmission, on the flashbuilder can play normally, So suspect that the problem is on the Crtmpserver server side, open the log of the Crtmpserver
In the mobile video streaming project encountered problems, mobile phone side in the push of the stream is no problem, mainly now is iOS and Android connection crtmpserver after playing when the CHECKBW too, An exception occurred: NetConnection.Call.Failed, but even the FMS server can play normally, due to the use of VLC library, is packaged well, can not determine which part of the problem, the following i
record page of the push stream name is MyStream, so enter here rtmp://192.168.100.2/live/mystream .
Final descriptionOriginally tried to try to play on the mobile side effect, but Jwplayer seems to be not supported directly on the HTML page rtmp live, but you can download an app (easy to push streaming) for rtmp live
streaming/interactive server that supports the RTMP protocol. The software that supports this protocol includes the Adobe Media server/ultrant media server/red5/nginx ( The nginx I use here) and so on.4.Jwplayer is an open source Flash video, audio, and image player for use
Rtmp (real time messaging protocol) is a common streaming media protocol used to transmit audio and video data. Combined with flash, rtmp is widely used in live broadcast, on-demand broadcast, chat, and other applications, as well as PCs, mobile devices, and embedded platforms, it is a protocol that is often used for streamin
First step: first introduce the relevant technology usedNote: The Jwplayer plug-in used in the project does not support the RTSP protocol, so use the following techniques to turn the art
FFmpeg is an open-source computer program that can be used to record, convert digital audio, video, and turn it into a stream. Here I only use its video format conversion function, the RTSP protocol to the stream into rtmp
RTSP protocol ( live stream Tran
1. Compile nginx that can be used in android and add the option -- add-module =/path/nginx-rtmp-module, prepare ffmpeg files and related library files that can be used by shell on android and m3u8 segmenter files.2. Put the compiled nginx files in the data/android. nginx directory of the mobile phone to this directory.3. Compile the configuration file--------------------------------- Nginx. conf start here ---------------------------------------------
Simple RTMP Server is an open source Rtmp/hls streaming media server written by people in the ROC. Functions are similar to nginx-rtmp-module, enabling the distribution of Rtmp/hls.Refe
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.