zoukankan      html  css  js  c++  java
  • use ffmpeg to setup streaming server on android

    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
    ./configure --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static      # --extra-cflags=-static
    make
    3. Run file ffserver && readelf ffserver -d  or  arm-none-linux-gnueabi-objdump ffserver -x | grep NEEDED commands  to make sure ffserver is statically linked
    4. Transfer ffserver tool, ffserver.conf file (defines what media files will be served by ffserver) and media files  to android with adb push command
    5. Start streaming server with ./ffserver -f ffserver.conf on andoird command shell
  • 相关阅读:
    ORBSLAM2的资源
    工程思想
    Linux中PATH、 LIBRARY_PATH、 LD_LIBRARY_PATH和ROS_PACKAGE_PATH
    CMkeList文件编写
    SLAM资料
    windows下隐藏文件夹
    Ubuntu16装Flash
    知识管理
    学习纲领
    lsof详解
  • 原文地址:https://www.cnblogs.com/top5/p/1930301.html
Copyright © 2011-2022 走看看