Coder Social home page Coder Social logo

livertspserver's Introduction

liveRtspServer

一、项目简介

基于live555的RTSP服务器

二、功能介绍

  • RTP/UDP 单播
  • RTP/UDP 多播
  • RTP/TCP
  • 采集V4L2摄像头数据,编码成H.264
  • 采集ALSA声卡数据,编码成AAC

三、依赖

四、编译

安装上述的依赖库后,执行

# make

生成liveRtspServer

四、用法

 * ./liveRtspServer [-p port] [-m multicast?]           \
 *                  [-w width] [-h height] [-f fps]     \
 *                  [-A fmt] [-F freq] [-c channels]    \
 *                  <-v video dev> <-a audio dev>
 * 
 * -p port:         rtsp server port(default "8554")
 * -m multicast?:   is multicast? yes or no(default "no")
 * -W width:        video width(default "320")
 * -H height:       video height(default "240")
 * -f fps:          video fps(defalut "15")
 * -A fmt:          audio sampling format,"s16le"、"s24le"、"s32le"(defalut "s16le")
 * -F freq:         audio sampling frequency(default "44100")
 * -c channels:     audio number of sampling channels(default "2")
 * -v video dev:    video device("/dev/videon")
 * -a audio dev:    audio device("hw:x,y")
 * -h:              help

示例

  • 采集摄像头

    ./liveRtspServer -v /dev/video0
    
  • 采集声卡

    ./liveRtspServer -a hw:0,0
    
  • 同时采集

    ./liveRtspServer -v /dev/video0 -a hw:0,0
    
  • 多播

    ./liveRtspServer -m yes -v /dev/video0 -a hw:0,0
    

五、效果

在这里插入图片描述

六、联系方式

livertspserver's People

Contributors

imsjt avatar

Watchers

James Cloos 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.