real-time acquisition using RTMP protocol1: rtmp://your.vultr.ip/live/2: Stream-key-your-setIn this video collection I'm using the IPhone5 collection program Https://github.com/jgh-/VideoCore [_session Startrtmpsessionwithurl:@ "rtmp://192.168.86.246/live/" andstreamkey:@ " test"];17. In the process of cli
and save locally as an FLV
Type of file.
* This program can receive rtmp live stream and save it as local flv file.
*/#include
Run Results
After the program runs, the live stream with the url "rtmp://live.hkstv.hk.lxdns.com/live/hks" (actually Hong Kong TV) is saved locally as "receive.flv". Saved files can
, configure the virtual host (here we only configure and test on-demand, live, please see the Address for reference):
User nobody nobody;
Worker_processes 4;
Error_log Logs/nginx_error.log Info;
PID Logs/nginx.pid;
Worker_rlimit_nofile 51200;
Events
{
Use Epoll;
Worker_connections 51200;
}
#rtmp_auto_push on;
rtmp {
server {
Listen 1935;
Application VOD {
play/opt/media/nginxrtmp/flv;
}
}
}
http
{
Include Mime.types;
Default_type Application/o
Nginx itself is a very excellent HTTP server, FFmpeg is a very good audio and video solutions. These two things can be set up by a nginx module Nginx-rtmp-module, a relatively perfect streaming media server.This streaming media server can support RTMP and HLS (Live Http Stream)Starting from InstallationNginx installation refer to my previous one: http://redstarof
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 waiting for a slice length, impersonating the clie
technology.Technical analysisThe following four key technologies are required to implement Rtmpliveencoder:
Capture camera video and microphone audio
H264 Encoding and AAC encoding
Video and audio data encapsulated as a playable stream that can be recognized by the streaming media server
RTMP protocol for message sending
The first two technologies have been introduced in my previo
Nginx-rtmp-mudule rtmp is an excellent car-eye-http-flv-module is a streaming media server modified on Nginx-rtmp-mudule rtmp basis, in addition to support Flash player, Players that are now common are also supported. A perfect way to achieve the HTTP mode of FLV Live Function.This article briefly introduces the main f
or Rtmp://localhost/vod/mp4:c.mp4It is important to note that if it is placed in a level two directory such as the FMS installation folder/applications/vod/media/f4v/b.f4v or the FMS installation folder/applications/vod/media/mp4/c.mp4Then the access address is different from the FLV, should be rtmp://localhost/vod/mp4:f4v/b.f4v or rtmp://localhost/vod/mp4:mp4/c
I. PreambleCore: Server (Nginx-rtmp-module) + push-to-stream (OBS) + Accept-end (Jwplayer)Second, the service side 1. Download Nginx-rtmp-module ModuleAddress: Https://github.com/arut/nginx-rtmp-module2. Compile and install NginxCD./nginx-1.10.0/./configure--add-module=/path/to/nginx-
Static Library Connection Compilation issues:Assert is not defined under the C compilerCeill no connection, no-lm.Http://blog.chinaunix.net/uid-20681545-id-3786786.html-c and-lz cannot be used together with-c no connectionhttp://blog.csdn.net/aiwoziji13/article/details/7330333 Static Library ConnectionHttp://www.cnblogs.com/HuangWj/p/5012120.html vs2010 under the libraryHttps://github.com/ossrs/srs/wiki/v1_CN_SampleRTMP ok!Https://github.com/ossrs/srs/wiki/v2_CN_BuildHttps://github.com/ossrs/srs
The simplest FFmpeg-based streamer (taking pushing RTMP as an example) and ffmpegrtmpThis document records a simple FFmpeg-based streamer (simplest ffmpeg streamer ). The streamer is used to push local video data to the Streaming Media Server. The streamer recorded in this article can use streaming media protocols (such as RTMP, HTTP, UDP, TCP, RTP, etc.) to transfer local media files in MOV/AVI/MKV/MP4/FLV
\--with-select_module--with-http_ssl_module--with-ipv6 \--with-http_sub_module \--add-module=build/lib/nginx-rtmp-moduleRun in the cmd window:D:CD D:/git/nginx"C:\Program Files (x86) \microsoft Visual Studio 14.0\vc\bin\vcvars32.bat"Nmake-f Build/makefileAfter the run is complete, the CMD command-line window displays:Library Search CompletedSed-e "s|%prefix%| |" -E "s|%pid_path%|/logs/nginx.pid|" -E "s|%conf_path%|/conf/nginx.conf|" -E "S|%error_log_
The simplest librtmp-based example: receive (RTMP is saved as FLV), librtmprtmpThis document records a libRTMP-based program for receiving streaming media: Simplest libRTMP Receive. This program can save the RTMP stream to FLV files at a cost. In fact, the program recorded in this article is a "streamlined" RTMPDump. RTMPDump has many functions, so the code is co
a user to submit a presentation description to the media server via HTTP or other means. If the representation is multicast, the description contains the multicast address and port number for the media stream, and if the representation is unicast, only the destination address should be provided for security in the presentation description.Invitation to join: A media server can be invited to participate in an ongoing meeting, or play back the media in
to the console. Copy the information and save it as a. SDP text file suffix. It can also be used to receive the RTP stream. After "> test. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
[Plain]View plaincopy
Ffplay test. SDP
3. rtmp3.1. send the H.264 bare stream to the
. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
ffplay test.sdp
3. rtmp3.1. send the H.264 bare stream to the rtmp server (flashmedia server, red5, etc)
Run the command to send the "Chunwan. h264" of the H.264 bare stream to the
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.