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

Source: Internet
Author: User
Fifth part

Some time ago, on Ubuntu built up to support HLS streaming media server, the ultimate goal is to build such a streaming media server on the arm's Development Board. Now the work is only a small part, is undergoing a transplant, recorded, convenient to continue to do later.

1, the first is to transplant nginx to arm's development board above.

This is actually someone who has already done it, and can use someone else's project.

Https://bitbucket.org/ntakimura/android-nginx/src/c80cb9c41a725ecf57f73a196735100aeef5b6e4/?at=android

This is the Android-nginx open source project, on this basis continue to develop.

2, after downloading the original code, follow the above steps:

First, make sure that you have an NDK environment to invoke the NDK's toolchain.

The Android NDK provides scripts that allow you to customize a set of tool chains by:

$NDK _home/build/tools/make-standalone-toolchain.sh \    --platform=android-14--install-dir= $HOME/local/ Android-toolchain
Where Ndk_home is your NDK path.

3. In accordance with its second step, the project official wrote on the Internet:

auto/configure \    --crossbuild=android-arm \    --prefix=/sdcard/nginx \    --with-cc= $HOME/local/ ANDROID-TOOLCHAIN/ARM-LINUX-ANDROIDEABI/BIN/GCC \    --without-pcre--without-http_rewrite_module--without-http _userid_module \    --with-cc-opt=-wno-sign-compare
However, when you go to the previous directory in auto, you will be prompted with an error and cannot find GCC, so modify the following command:
auto/configure \    --crossbuild=android-arm \    --prefix=/home/wangrui/arm-nginx \    --with-cc=/home/ WANGRUI/LOCAL/ANDROID-TOOLCHAIN/BIN/ARM-LINUX-ANDROIDEABI-GCC \    --without-pcre--without-http_rewrite_module --without-http_userid_module \    --with-cc-opt=-wno-sign-compare
Because the next made and make install will be under root, the command home is changed to my directory/home/wangrui/

4, without error, can be completed smoothly, and then Make,make install

5. Copy the Arm-nginx to Android SDcard.

In the copy, there will be permissions issues, can not copy, modify the Arm-nginx folder permissions:

chmod 777 Arm-nginx-r
-R indicates that subfolders and files under the folder 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 shell
Will go into the phone and execute the command:
CD SDcard
Go to the SD card and locate the Arm-nginx directory

8. The complete command is:


Perform
./nginx
Prompt error:
Nginx: [alert] could not open error log file:open () "/home/wangrui/arm-nginx/logs/error.log" failed (2:no such file or D irectory) 2015/02/12 16:16:26 [Emerg] 4079#0:open () "/home/wangrui/arm-nginx/conf/nginx.conf" failed (2:no such file or D irectory)
File not found, modify command:
./nginx-p/sdcard/arm-nginx/-c/sdcard/arm-nginx/conf/nginx.conf
Execution prompt Error:
Nginx: [Emerg] Getgrnam ("Nogroup") failed (2:no such file or directory)
Now do not know how to modify, today first recorded here, because of the rapid release of annual leave, easy to continue later, step by step ...

The elder who has met this kind of situation Qing is generous to enlighten!

Thank you.

The above describes the use of Nginx+nginx-rtmp-module+ffmpeg to build streaming server notes (v), including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.