Code Monkey home page Code Monkey logo

multimedia's Introduction

srs流媒体服务器的搭建部署:
第一步,获取SRS。详细参考GIT获取代码
git clone https://github.com/ossrs/srs
cd srs/trunk
或者使用git更新已有代码:
git pull

第二步,配置SRS
    ./configure --prefix=/usr/local/srs --with-ssl --with-hls --with-hds --with-dvr --with-nginx
--with-http-callback --with-http-server --with-stream-caster --with-http-api --with-ffmpeg
--with-transcode --with-ingest --with-stat --with-librtmp --with-research --with-utest
--with-gperf --with-gprof

第三步 编译安装
make
sudo make install

第四步,启动SRS。
./objs/srs -c conf/rtmp.conf

第五步,启动推流编码器。
使用FFMPEG命令推流:
for((;;)); do
./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv -vcodec copy -acodec copy
-f flv -y rtmp://127.0.0.1/live/livestream;
sleep 1;
done

第六步,观看RTMP流
RTMP流地址为:rtmp://127.0.0.1/live/livestream 可以使用VLC观看。

一 、simplest_mediadata 音视频基础技术,包括如下内容
1 RGB、YUV像素数据处理
2 PCM音频采样数据处理
3 H.264视频码流解析
4 AAC音频码流解析
5 FLV封装格式解析
6 UDP-RTP协议解析

二、simplest_librtmp_example 即LibRTMP库的使用工程,包括如下内容
1 simplest_librtmp_receive: 接收RTMP流媒体并在本地保存成FLV格式的文件。
2 simplest_librtmp_send_flv: 将FLV格式的视音频文件使用RTMP推送至RTMP流媒体服务器。
3 simplest_librtmp_send_h264: 将内存中的H.264数据推送至RTMP流媒体服务器

三、simplest_rtp_h264_example工程
实现linux平台下通过RTP实时发送H264碼流,通过播放器mpv Media Player可以实时观看推送过来的H264碼流

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.