Giter Club home page Giter Club logo

pine's Introduction

Pine Overview

Rine is tiny RTMP (Real Time Messaging Protocol) video streaming server pusher and client for embeded system. it's written in C/C++ and fast, easy to install, and supports multi path. H.264/265 AVC.. and no dependence.

  • a static library for RTMP pusher and client ( librtmp.a)
  • a executable binary for push video stream to RTMP server (pine-pusher).
  • a executable binary for live client to receive video stream from RTMP server (pine-client).
  • a executable binary for RTPM server (pine-rtmpsrv)

Build Instructions

  • It's simple.

  • Rine uses CMake as build system, please install cmake first.

    sudo apt-get install cmake
  • Run build.sh shell script

    ./build.sh
  • You will get executable binary under ./build/bin/x86_64 folder.

  • if you want to change build tool chain for arm arch, modify CMakeLists.txt.

    SET(TARGET_STAGING_PREFIX /opt/s32v-build/staging)
    SET(TARGET_SYSROOT /opt/s32v-build/sysroot)
    SET(TARGET_C_COMPILER /opt/s32v-build/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc)
    SET(TARGET_CXX_COMPILER /opt/s32v-build/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++)
    
    #disable/enable build for arm linux system,like S32V
    SET(CMAKE_SYSTEM_PROCESSOR arm)
    #SET(CMAKE_SYSTEM_PROCESSOR x86_64)

Testing with FFmpeg

#start RTMP server
./build/bin/x86_64/pine-rtmpsrv
#To encode and push a stream:
ffmpeg -re -i video.mp4 -f flv rtmp://127.0.0.1/live/stream
#To watch the stream:
ffplay rtmp://server/live/stream

Testing with VLC Player

#start RTMP server
./build/bin/x86_64/pine-rtmpsrv
#To encode and push a stream:
ffmpeg -re -i video.mp4 -f flv rtmp://127.0.0.1/live/stream
#To watch the stream:
vlc media -> open network stream -> rtmp://server/live/stream

Testing with H.264 file

#start RTMP server
./build/bin/x86_64/pine-rtmpsrv

#set up a client for receving video stream.
./build/bin/x86_64/pine-client rtmp://127.0.0.1/live/stream

#push a video stream to server
./build/bin/x86_64/pine-pusher test.h264 rtmp://127.0.0.1/live/stream

Testing with Multi path

#start RTMP server
./build/bin/x86_64/pine-rtmpsrv

#set up a client for receving video stream.
./build/bin/x86_64/pine-client rtmp://127.0.0.1/live/one_stream

./build/bin/x86_64/pine-client rtmp://127.0.0.1/live/two_stream

vlc media -> open network stream -> rtmp://127.0.0.1/live/two_stream

#push a video stream to server
./build/bin/x86_64/pine-pusher test.h264 rtmp://127.0.0.1/live/one_stream
./build/bin/x86_64/pine-pusher test.h264 rtmp://127.0.0.1/live/two_stream

pine's People

Contributors

deansay avatar deboot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.