fs
yum install -y make expat-devel git gcc-c++ autoconf automake libtool wget python-devel ncurses-devel zlib-devel \
libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel \
speex-devel ldns-devel libedit-devel libxml2-devel libdb4* libidn-devel \
unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel libtiff-devel \
readline-devel unixODBC unixODBC-devel mysql-connector-odbc
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
cd /opt
wget http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar xzvf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux
make install
ln -sf /usr/local/bin/lua /usr/bin
ln -sf /usr/local/bin/luac /usr/bin
cd /opt
wget https://www.nasm.us/pub/nasm/releasebuilds/2.14/nasm-2.14.tar.gz
tar xzvf nasm-2.14.tar.gz
cd nasm-2.14
./configure
make
make install
cd /opt
wget https://downloads.sourceforge.net/libpng/libpng-1.6.35.tar.xz
tar xJvf libpng-1.6.35.tar.xz
cd libpng-1.6.35
./configure
make
make install
/bin/cp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/
cd /opt
wget https://archive.mozilla.org/pub/opus/opus-1.3.tar.gz
tar xzvf opus-1.3.tar.gz
cd opus-1.3
./configure
make
make install
/bin/cp /usr/local/lib/pkgconfig/opus* /usr/lib64/pkgconfig/
cd /opt
wget https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20190225-2245.tar.bz2
tar xjvf x264-snapshot-20190225-2245.tar.bz2
cd x264-snapshot-20190225-2245
./configure --enable-shared --enable-static --disable-opencl
make
make install
/bin/cp /usr/local/lib/pkgconfig/x264* /usr/lib64/pkgconfig
cd /opt
wget https://libav.org/releases/libav-12.3.tar.xz
tar xJvf libav-12.3.tar.xz
cd libav-12.3
sed -i 's/x264_bit_depth/X264_BIT_DEPTH/' libavcodec/libx264.c
./configure --disable-static --enable-shared --enable-pic --enable-libx264 --enable-gpl
make CXXFLAGS="-fPIC"
make install
/bin/cp /usr/local/lib/pkgconfig/libav*.pc /usr/lib64/pkgconfig/
/bin/cp /usr/local/lib/pkgconfig/libsw*.pc /usr/lib64/pkgconfig/
cd /opt
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.8.5.tar.xz
tar xJvf freeswitch-1.8.5.tar.xz
cd freeswitch-1.8.5
perl -i -pe 's/^#applications\/mod_av/applications\/mod_av/g' modules.conf
perl -i -pe 's/^applications\/mod_signalwire/#applications\/mod_signalwire/g' modules.conf
perl -i -pe 's/^codecs\/mod_opus/#codecs\/mod_opus/g' modules.conf
./configure --prefix=/opt/fs --with-openssl --enable-optimization
make
make install
make sounds-install
make moh-install
make samples
ln -sf /opt/fs/bin/freeswitch /usr/bin
ln -sf /opt/fs/bin/fs_cli /usr/bin
rm -rf /opt/fs/etc/freeswitch/sip_profiles/*ipv6*
perl -i -pe 's/"::"/"127.0.0.1"/g' /opt/fs/etc/freeswitch/autoload_configs/event_socket.conf.xml
perl -i -pe 's/OPUS,G722,PCMU,PCMA,VP8"/OPUS,G722,PCMU,PCMA,VP8,H264"/g' /opt/fs/etc/freeswitch/vars.xml
perl -i -pe 's/<!--<load module="mod_h26x"/>-->/<load module="mod_h26x"/>"/g' /opt/fs/etc/freeswitch/autoload_configs/modules.conf.xml
/opt/fs/etc/freeswitch/autoload_configs/conference.conf.xml
对应profile修改视频混屏转码模式
<param name="conference-flags" value="transcode-video|minimize-video-encoding"/>
<param name="video-mode" value="transcode"/>
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216
sysctl -w kernel.core_pattern=core.%p
/opt/fs/bin/freeswitch -nonat -nc
freeswitch -stop
fs_cli
wget https://codeload.github.com/j0sh/crtmpserver/zip/centosinit
unzip centosinit
cd crtmpserver-centosinit/builders/cmake
cmake .
make
./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
bgapi originate user/1001 &conference(3000@default)
conference 3000-47.93.177.234 recording /tmp/testrecord.mp4
conference 3000-47.93.177.234 recording /tmp/testrecord.fsv
conference 3000-47.93.177.234 record rtmp://127.0.0.1/live/stream1
conference mute all 静音
conference unmute all 取消静音
conference 3000-47.93.177.234 vid-layout 2x2
floor 大屏
conference stop all
conference 3000-47.93.177.234 play /usr/local/xxx.mp4 播放视频文件
file_seek 翻页
kitk 剔除成员
conference 3000-47.93.177.234 vid_floor 1 force 强制设置大画面
vid-codec-grop 多方编码不一致
fs的更多相关文章
- Node+fs+定时器(node-schedule)+MySql
目标:将本人写博客时候的截图保存到桌面的图片 执行保存到指定文件进行整理 并写入数据库 先看最终的目录结构: package.json文件: { "name": "zqz ...
- NodeJs+http+fs+request+cheerio 采集,保存数据,并在网页上展示(构建web服务器)
目的: 数据采集 写入本地文件备份 构建web服务器 将文件读取到网页中进行展示 目录结构: package.json文件中的内容与上一篇一样:NodeJs+Request+Cheerio 采集数据 ...
- Node.js:fs文件系统模块
fs文件系统模块,这是一个非常重要的模块,对文件的操作都基于它.该模块的所有方法都有同步和异步两种方式,下面便介绍一下该模块的使用. 1.检测当前进程对文件的权限 使用fs.access(path[, ...
- Node.js学习——基本模块之fs
基本模块之fs 异步读文件 异步读取一个文本文件的代码如下: 'use strict'; var fs = require('fs'); fs.readFile('sample.txt', 'utf- ...
- hadoop程序问题:java.lang.IllegalArgumentException: Wrong FS: hdfs:/ expected file:///
Java代码如下: FileSystem fs = FileSystem.get(conf); in = fs.open(new Path("hdfs://192.168.130.54:19 ...
- nodejs 使用fs实现多级联动
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0gAAAEdCAIAAAC5WdDhAAAgAElEQVR4nO3da3Mc153f8X4feq5lFR
- 【转】Hadoop FS Shell命令
FS Shell 调用文件系统(FS)Shell命令应使用 bin/hadoop fs <args> 的形式. 所有的的FS shell命令使用URI路径作为参数.URI格式是scheme ...
- Asynchronous fs.stat.isDirectory()
function showFile() { for(var i = 0; i< files.length; i++){ var itemFile = files[i]; fs.stat(__di ...
- Node.js入门笔记(4):文件系统(fs)
文件系统(FileSystem) 文件系统模块 对于文件无外乎创建修改添加. File System - 文件系统模块 - require('fs') fs模块是核心模块,需要使用require导入后 ...
- RHCS 6.5 由于resource-agents-3.9.2-40.el6版本过低导致rgmanager[61164]: [fs] umount failed - REBOOTING问题的解决
問題描述: RHEL 6.5版本RHCS在disable或者relocate service的時候,會導致節點重啟,查看日誌顯示umount掛载點失敗,日誌如下: Nov 29 16:03:50 ph ...
随机推荐
- java SE与java EE , java ME之间的关系
question: Which one should I install when I want to start learning Java? I'm going to start with som ...
- ASP内置对象—Request、Response 、Server、Application 、ObjectContent (二)
Response (应答)对象 Request 对象.用于在HTTP请求期间,訪问不论什么client浏览器传递给server的信息,包含通过URL传递的參数信息.使用GET方法或POST方法传递的H ...
- Nova和Heat中的servergroup
如今nova能够通过命令创建一个server group,在server group中的vm能够指定一些policy. 这些policy包含affinity和anti-affinity.affinit ...
- Effective JavaScript Item 31 优先使用Object.getPrototypeOf,而不是__proto__
本系列作为Effective JavaScript的读书笔记. 在ES5中引入了Object.getPrototypeOf作为获取对象原型对象的标准API.可是在非常多运行环境中.也提供了一个特殊的_ ...
- CSS学习(十六)-HSLA颜色模式
一.理论: 1.HSLA颜色模式 a.HSLA在HSL基础上添加了不透明度,值越大透明度越低 b.HSLA颜色模式的浏览器兼容性和HSL一样,仅仅有较新版本号的主流浏览器才支持 2.RGBA和HSLA ...
- Iterator - 迭代器模式
定义 提供一个方法顺序訪问一个聚合对象中个各个元素,而又不须要暴露该对象的内部结构. 案例 一个聚合对象.如一个列表List.应该提供一种方法来让别人能够訪问它的元素.而又不用暴露内部结构.迭代器模式 ...
- Intel Media SDK安装步骤
!!!(gcc/g++版本要在4.8以上,本人使用的是5.4版本) 要先安装依赖,按以下步骤依次执行 1.LIBVA git clone https://github.com/intel/libva. ...
- Linux下用ImageMagick玩图像魔术【转】
本文转载自:http://www.linuxdiyf.com/linux/11680.html 不管你知不知道,现在是一个用ImageMagick的好机会,至少,如果你是一个Linux用户的话.这是一 ...
- Linux - 进程管理,ps与top
一个运行的程序,可能有多个进程. PID进程ID. UID启动进程的ID. 进程所属组GID. 进程的状态R运行.S睡眠.Z僵尸. 父进程管理子进程,父进程终止的时候子进程也会终止. 常用的组合为: ...
- 杂项: EasyUI | jQuery EasyUI
ylbtech-杂项-JS: EasyUI | jQuery EasyUI jQuery EasyUI是一组基于jQuery的UI插件集合体,而jQuery EasyUI的目标就是帮助web开发者更轻 ...