美文网首页
Darwin Streaming Server 搭建

Darwin Streaming Server 搭建

作者: chjxidian | 来源:发表于2019-01-01 16:36 被阅读0次

    一、下载

    wget http://dss.macosforge.org/downloads/DarwinStreamingSrvr5.5.5-Linux.tar.gz

    二、解压

    tar -zxvf DarwinStreamingSrvr5.5.5-Linux.tar.gz

    三、安装

    安装依赖项

    yum -y install gcc gcc-c++ perl ld-linux.so.2 libstdc++.so.6 glibc.i686

    cd DarwinStreamingSrvrlinux-Linux

    ./Install

    四、启动

    # sudo /usr/local/sbin/DarwinStreamingServer        #开启DarwinStreamingServer服务,这个服务运行了就可以通过RTSP访问流媒体了

    # sudo /usr/local/sbin/streamingadminserver.pl       #第二个命令为开启WEB服务器(默认端口1220)

    测试推流: ffmpeg -re -i /home/Shadow.mp4 -vcodec copy -acodec copy -f rtsp -y rtsp://127.0.0.1:554/shadow.sdp

    ffmpeg -i rtsp://admin:a123456789@192.168.10.56:554/h264/ch1/main/av_stream -vcodec copy -acodec aac -f rtsp -y rtsp://127.0.0.1:554/shadow.sdp

    五、设置开机启动

    编写脚本

    #!/bin/bash

    #description:开机自启脚本

    # chkconfig: - 85 15

    # description: nginx is a World Wide Web server. It is used to serve

    sudo /usr/local/sbin/DarwinStreamingServer    #开启DarwinStreamingServer服务

    sudo /usr/local/sbin/streamingadminserver.pl   #开启WEB服务器(默认端口1220)

    之后执行:

    mv /root/rtsp_server.sh /etc/rc.d/init.d

    cd /etc/rc.d/init.d

    chmod +x rtsp_server.sh

    chkconfig --add rtsp_server.sh

    chkconfig rtsp_server.sh on

    开机启动脚本设置完

    六、常见故障处理

    1. error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

    yum whatprovides libstdc++.so.6

    yum install libstdc++-4.8.5-36.el7.i686

    2. Error: Multilib version problems found. This often means that the root

    Error: Multilib version problems found. This often means that the root

    ..

     Protected multilib versions: libstdc++-4.8.5-36.el7.i686 != libstdc++-4.8.5-28.el7_5.1.x86_64

    yum install --setopt=protected_multilib=false libstdc++

    yum whatprovides libstdc++.so.6

    Loaded plugins: fastestmirror

    Loading mirror speeds from cached hostfile

    * base: centos.ustc.edu.cn

    * extras: centos.ustc.edu.cn

    * updates: centos.cs.nctu.edu.tw

    libstdc++-4.8.5-36.el7.i686 : GNU Standard C++ Library

    Repo        : base

    Matched from:

    Provides    : libstdc++.so.6

    yum install libstdc++-4.8.5-36.el7.i686

    相关文章

      网友评论

          本文标题:Darwin Streaming Server 搭建

          本文链接:https://www.haomeiwen.com/subject/jkgnlqtx.html