Using Nginx+nginx-rtmp-module+ffmpeg to build a streaming server note (10)

Source: Internet
Author: User

Part Tenth-Development Board testing

The first few days have been the Nginx and ffmpeg transplanted to the development Board, but still did not carry out any tests do not know how the effect after the transplant.

Today, two tests were made to prove that the results of the transplant were available.


1. Test FFmpeg

For Nginx Test after the transplant has been done, of course, is simply able to display the Nginx welcome interface, but for me, Nginx can use the line, and did not carry out a deep test for him.

But for ffmpeg do not test the total feel not assured, although the migration run display can, but do not know whether it can work, so first used it for video format conversion test.

The test is simple, converting one. 264 file in the SD card to MP4 format:

[Email protected]:/sdcard/movies # cd/data/misc/ffmpeg/                            [email protected]:/data/misc/ffmpeg # ll-rwxrwxrwx Root     root      9145536 2015-03-10 10:48 ffmpeg-android<pre name= "code" class= "plain" >[email protected]:/data/ Misc/ffmpeg #./ffmpeg-android-i/sdcard/movies/test.264/sdcard/movies/output.mp4                             

<pre name= "code" class= "plain" >[email protected]:/data/misc/ffmpeg # cd/sdcard/movies/                            [email protected]:/ Sdcard/movies # ll-rw-rw-r--Root     sdcard_rw  4473874 2015-03-12 23:51 output.mp4-rw-rw-r--root     sdcard_rw  6193066 2015-01-16 14:22 test.264

The result is a successful conversion of the test.264 file in the SD card to the OUTPUT.MP4 format.

I also tried to restore the. 264 file to. yuv 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 server

The 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 protected]:/data/misc/ffmpeg #./ffmpeg-android-i  rtsp://admin:[email protected]  -vcodec Copy-acodec Copy-s 640x480-f flv Rtmp://192.168.1.88:1935/hls/test2

Results:


The program runs successfully, but there is a problem as shown, and for the time being it is not known what is going on and it has no effect on the surveillance video capture, enter the address in the Chrom browser

    
The monitoring video can be displayed successfully.

My camera and Development Board are connected directly with a network cable, the Development Board is equipped with Android system, using the above Chrom browser to play monitoring video:

After a period of testing: time-delay than on the PC to test a little more, the delay around 35s. This may be related to board performance.


3. Summary

Until today, finally on the arm board to build a successful support HLS streaming media server, summed up a sentence:

~ ~ ~ Transplant Real Egg Pain ~ ~ ~


Using Nginx+nginx-rtmp-module+ffmpeg to build a streaming server note (10)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.