Coder Social home page Coder Social logo

cyberorg012 / rtsp-video-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramsafin/rtsp-video-server

0.0 1.0 0.0 81.06 MB

RTSP video streaming server implementation based on Live555 and FFmpeg

License: MIT License

CMake 0.14% C++ 98.53% Makefile 0.15% Roff 0.01% Shell 0.21% Batchfile 0.03% C 0.93%

rtsp-video-server's Introduction

Engineer Video Streaming

Prerequisites

  • Ubuntu 16.04
  • GCC (gcc and g++) ver. 5.4
  • USB camera (v4l2 compatible)

Getting Started

Clone the repository:

git clone https://github.com/ramilsafnab1996/rtsp-video-server.git

git submodule update --init

cd rtsp-video-server

Dependencies

Install the dependencies (using apt package manager):

sudo apt-get install liblog4cpp5-dev

Install the dependencies from the contrib:

cd contrib

# Live555 video streaming server framework
cd live && ./genMakefiles linux-64bit && make -j$(nproc)

cd ../..

The most time- and nerve-consuming part, installing FFMpeg ...:

cd into the scripts directory (prepared bash scripts for installation):

cd scripts && chmod +x *

./install_ffmpeg_with_deps.sh

cd ..

Build

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make -j$(nproc)

Run

Edit config.yaml for your needs.

Then you can run the server:

./video_server ../config.yaml

Testing

For simple testing whether the server works or not you can use MPlayer (preferred) or VLC:

sudo apt install mplayer

mplayer -benchmark rtsp://<ip address>:8554/webcam_0

Limitations

  • Currently there is no support for the already compressed raw camera formats (e.g. MJPEG). In this case we have 2 options: send the data as it is (e.g. MJPEG stream) or transcode the original video stream into the format we need (e.g. H.264).
  • Lack of control of camera parameters (fps, resolution, etc.) at runtime (no API for that is provided).
  • RTSP multicast broadcasting is not supported (It can be implemted using Live555 API).
  • SSL is not supported (see SRTP).

rtsp-video-server's People

Contributors

ramsafin avatar

Watchers

 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.