----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1. Send files to live as Live[Plain]View Plain copy
Ffmpeg-re-i localfile.mp4-c copy-f flv rtmp://server/live/streamname
2. Save the live media to a local file[Plain]View Plain cop
http://www.huangyibiao.com/archives/860
Want to learn about live, if not set up a server, how to learn the client-related technical knowledge. The author has successfully built the NGINX+RTMP server.
If you do not know how to build the server, then this article contains the RTMP server address can be used in learning, for testing. HLS Live address http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8 Hong K
In the previous article on the Mac to build a live server nginx+rtmp, we have built a nginx+rtmp live server. The following need to add support to the Nginx server for HLS. In Nginx addition to the support of the HLS more simple, just simple modification under the configuration file nginx.conf .Installing Nginx and RTMP modulesFor the installation of Nginx is rel
transmission:After the completion of the coding of audio and video data transmission, the early audio and video through coaxial cable, such as transmission, IP network development, the use of IP network excellent transmissionrelating to technology or agreement:Transport protocol: RTP and RTCP, RTSP, RTMP, HTTP, HLS (HTTP Live streaming), etc.Control signaling: SIP and SDP, SNMP, etc.4, decoding the data:Using the relevant hardware or software to deco
Through the next study, we will understand the following three key knowledge points.
In the original Flash program, the client creates a connection with the Flash Media Server through the RTMP protocol, and manages the list of online users on the Flash Media Server through mongodobject, communication between clients uses the Netconnection Call method to send video invitation-related information.Requirements
You must first install the following product
The sex industry is a big business. There are not many websites on the internet that can match the largest pornographic sites. It's hard to handle this huge traffic. More difficult, many of the content available on pornography sites are low latency live streaming rather than simple static video. But for all the challenges I've encountered, I've seldom seen what developers have done with them. So I decided to write my own experience in this area. What's the problem? A few years ago, I was work
. Their process is shown in the picture.
The function of the protocol is to parse the data of the streaming media protocol into the standard corresponding encapsulation format data. When audio and video are spread on the web, various streaming media protocols such as HTTP,RTMP, MMS, etc. are often used. These protocols also transmit some signaling data while transmitting video and audio data. These signaling data include control of playback (playback
Left mouse button Double-click
Full Screen Toggle
Application example to play media files
To open a live stream, you can use the commandFfplay-window_title "rtmp Stream" rtmp://202.69.69.180:443/webcast/bshdlive-pc
Play a video from 2 seconds, play for 10 seconds, automatically exit Ffplay after playback is complete, the player's window title is "Test Time",Ffplay
and video data, which is encoded, packed, and pushed (the anchor end), and then spread through the relay Distribution Network (that is, the video data of the anchor end is transmitted to the server, the server then transmits the data to the fans), and the Playback End continuously downloads the data and decodes and plays the video in sequence. In this way, the live video process of "production, transmission, and consumption" is realized.
7. live video business logic
One-to-multiple model:
Broad
Set up the hls Streaming Media Server on ubuntu16.04 and ubuntu16.04hls
1. Distributor ID: UbuntuDescription: Ubuntu 16.04.3 LTSRelease: 16.04Codename: xenial
2. Linux 4.4.0-89-generic # 112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Mkdir ~ /Working
Switch ~ /Working directory
Cd ~ /Working
Obtain nginx source code:
Wget http://nginx.org/download/nginx-1.13.4.tar.gz
Extract
Tar xvf nginx-1.13.4.tar.gz
Obtain the latest nginx-rt
Mac Live Server Nginx configuration support for HLSIn the previous article on the Mac to build a live server nginx+rtmp, we have built a nginx+rtmp live server. The following need to add support to the Nginx server for HLS. In Nginx addition to the support of the HLS more simple, just simple modification under the configuration file nginx.conf .Installing Nginx and RTMP
the RTMP service2. Server-side: receive the RTMP video stream submitted by the live person, and provide the rtmp source for viewers3. Viewer: Play the video of the rtmp source with the player.PS:RTMP is the acronym for Real Time Messaging Protocol (Live Message Transfer Protocol). The protocol is based on TCP and is a
One, RTMP, RTSP, HTTP protocolThese three protocols belong to the Application layer protocol in the Internet TCP/IP five layer architecture. Theoretically these three kinds can be used for video broadcast or on-demand. But usually, live broadcast with RTMP, RTSP. And on-demand with HTTP.The following are the characteristics of the following three respectively. The 1,RTM
------------------------------------------------------------------------ ---------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------ 1. Send files to live as Live Ffmpeg-re-i localfile.mp4-c copy-f flv rtmp://server/live/streamname 2. Save the live media to a local file Ffmpeg-i rtmp://s
by defining the "flashvars" attribute. Note that the variables are separated by the "" symbol.
Marked by the asterisk (*) also applies to JW image rotator.
Basic Variables
Displayheight (number): the height of the display area. The minimum height of the control area is 20px. When the value is greater than or equal to the SWF height, the playlist is automatically hidden. Otherwise, the playlist is displayed.File * (URL): the address of the file to be played. Supports single-file playback (MP3, F
Uri. If Flash MX and FCS are installed on the same computer, you can specify the URI to connect to the server as follows:New_nc.connect ("rtmp:/doc_record/room_01 ");Otherwise, you need to specify the actual server uri (for example, the server runs on myserver.mydomain.com). You can specify the FCS connection as follows:New_nc.connect ("rtmp: // myserver.mydomain.com/doc_record/room_01 ");Note: It is deter
This document records one of the simplest video site systems. Prior to doing some Java EE based on the SSH (Strut2 + Spring + Hibernate) site system, but has not done a video site system, so it is intended to do a "streamlined" video site system to facilitate future testing and learning to use. This video site supports live streaming (via rtmp) and on-demand (implemented via HTTP). In order to remain streamlined, this video site system only makes the
ffmpeg -r 30 -f avfoundation -i 1 -vcodec h264 screen.mp4
Then use ffplay to play the video.
ffplay screen.mp4
Or
ffplay screen2.webpConvert FFmpeg videos to gif videos
There is a particularly useful demand. I found a particularly interesting video on the Internet to convert IT into a dynamic expression. As an IT practitioner, my first thought was not to download a Transcoder, nor to find an online conversion website. I used the tool FFmpeg at hand to complete transcoding in an instant:
Ffmpeg-
is modified, remember to reload or unload it. Otherwise it will not take effect. Unload will close the window and automatically open the window when a client is connected.Someone always tells me that his FMS is often abnormal. For example, if the connection fails, the code will be deleted and executed, and the folders will be deleted in a lifetime, I suspect there is a problem with my Rp ..This is not an RP problem. Remember to reload the error! Click stopserverservice. bat in the Tools Folder.
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.