FFMPEG and ffserver can be used together to implement real-time Streaming Media Services.
I. Understanding
There are four main things in it, and the relationship between them is almost clear.
1. FFMPEG
2. ffserver
3. ffserver. conf
4. feed1.ffm
1. FFmpeg is responsible for the transcode of media files. It convert
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 Stre
format, and the result was shocking:The above test.264 size is 6.2M, converted to. yuv format after the size of 1.6G, really took a surprise. It's too compressed.2. Test the performance of the streaming media serverThe most critical place to be, success or failure stake.(1) Open Nginx[Email protected]:/data/misc/nginx-rtmp/sbin #./nginx-p/data/misc/nginx-rtmp-c conf/nginx.conf(2) FFmpeg push to Nginx[Email
This article outlines:Nginx is a very good open source server, use it to do HLS or rtmp streaming media server is a very good choice. This paper introduces a simple method to quickly set up rtmp streaming media server, also known as RTSP retransmission, the data source is no
flow to Nginx
Pushes a local MP4 onto the MyApp configured above: FFmpeg -re -i/tmp/ffmpeg_test .mp4 -vcodec copy -acodec Copy -f flv "Rtmp://127.0.0.1:1935/myapp/test1"
1
stream play address (10.0 .0.6 is my local IP): Rtmp:// 10.0.0.6:1935/myapp/test1
1
Push a local MP4 to HLS.-re -i /tmp/ffmpeg_test.mp4 -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1:1935/hls/test2"
FFmpeg is a powerful media library. It provides ffserver tool that can be used to setup a streaming server.Here is how to compile FFMPEG for Android, using codesourcery's cross compiler. 1. Download and extract FFMPEG source code.2. Use below commands to compile FFMPEG./Co
: This article mainly introduces how to use nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (5). If you are interested in the PHP Tutorial, refer to it. Part 5
Some time ago, we set up a streaming media server that supports HLS on Ubuntu. The final goal
The ninth part---Project ffmpeg command parsingYou have seen the ffmpeg on the arm Development Board to give the following information:usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...Refer to the previous command to perform the same task on the PC Linux operating systemFfmpeg-i rtsp://admin:[email protected]-vcodec copy-acodec copy-s 640x480-f flv rtmp://192.168.1.102:
: This article mainly introduces how to use nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (6). If you are interested in the PHP Tutorial, refer to it. Part 6
This problem has been plagued by the nginx startup problem that has been transplanted to the ARM Development board a few days ago. it does not occur when started on the ARM Developmen
are also modified.
6. Connect the phone with the data cable, turn on the USB mode, install the ADB tool
sudo apt-get install android-tools-adb
7, go to the SDK directory, my is/home/wangrui/java/sdk/platform-tools
Execute command:
ADB shellWill go into the phone and execute the command:
CD SDcardGo to the SD card and locate the Arm-nginx directory
8. The complete command is:
Perform
./nginxPrompt error:
Nginx: [alert] could not open error log file:open () "/home/wangrui/arm-nginx/logs/error.
456 c003f614 4002be64 S nginxnobody 2745 2743 1528 664 C00d8ad4 4002b7a4 S nginxroot 2748 2708 956 332 00000000 40095448 R PSDescription Nginx runs successfully.Open Browser input on the Development Boardhttp://localhost/The reality of the following pageNginx runs successfully.Using commandsKillall NginxKill the Nginx process.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ isolated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In summary, the command to run Nginx on the SDcard or tfcard of the Develop
)For more information on where to find it) or you can download one created by the forum userCorp186.
There is an SVN repository set up forSegmenter source. it is only a couple files and it is easy to build. the trouble you may run into is that the makefile that it comes with won't build the binary correctly. don't worry it just takes some extra link flags to make it work. the following isWhat I needed in the makefile to get it to build on my system:ALL:
Gcc-wall-G segmenter. C-o segmenter-lavfor
FFMPEG and ffserver can be used together to implement real-time Streaming Media Services. The real-time data comes from the camera. If you consider the application and network conditions, the client will still lag behind the image obtained by the camera locally. In the worst case, the image will not even be visible (even farther ), here we are concerned about how FFMPEG
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 rtmp server (flashmedia server, red5, etc)
Run the command to s
. 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 rtmp URL where the host is localhost, the application is oflademo, and the path is livestream.
); returntrue_size;}Else{return-1;}}Service side: Forgive me a mobile development does not understand the server side, presumably should be to get live stream upload video streaming and then broadcast. So just skip it.Play side: The player is actually a player, there are a lot of solutions, here is the simplest, because a lot of live software playback and the client are the same software, so here directly u
Now very popular live, I believe a lot of people are like me very curious how this technology is implemented, just recently in a ffmpeg project, found that the tool is easy to do live, the following to share the following technical points:First you have to compile the ffmpeg to run the required static library, this Baidu has a lot of content, here I will not say, the proposal can be used on GitHub, an open
I have been in contact with fms2 for some time. Some time ago I tried playing with a Streaming Media Server. The functions include video conversion (convert all formats to FLV), video playback, and video recording, although not perfect
There are many defects, but the basic functions are also available. I have no retained here, so I will make public all the source code and learning experience. On the one han
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.