美文网首页
一天一个脚丫子

一天一个脚丫子

作者: IceWall_Rin | 来源:发表于2016-06-16 01:15 被阅读5次

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    终端输入上面指令;

    http://brew.sh

    终端输入: 

    brew tap homebrew/nginx

    brew install nginx-full --with-rtmp-module

    终端输入:

    nginx

    最后出现:

    If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

    今天第一步成功.

    rtmp://本机ip:5920/rtmplive/room

    192.168.1.111

    关闭终端:

    nginx -s stop

    http {

    ……

    }

    在http节点后面加上rtmp配置:

    rtmp {

    server {

    listen 1935;

    application live1 {

    live on;

    record off;

    }

    }

    }

    ----配置ffmpeg

    brew install ffmpeg

    ffmpeg -re -i /Users/Rick/Movies/Demo.mov -vcodec copy -f flv rtmp://localhost:1935/live1/room1

    相关文章

      网友评论

          本文标题:一天一个脚丫子

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