ffmpeg工具推流

SRR测试网址
http://www.ossrs.net/srs.release/trunk/research/players/srs_player.html
获取
git clone https://github.com/ossrs/srs.git

configure make
cd srs/trunk
./configure && make

开启服务器
./objs/srs -c conf/srs.conf

列出设备
./ffmpeg.exe -list_devices true -f dshow -i dummy
ffmpeg采集摄像头推流
ffmpeg.exe -f dshow -i video="EasyCamera" -q 4 -s 640*480 -aspect 4:3 -r 10 -vcodec flv -ar 22050 -ab 64k -ac 1 -acodec libmp3lame -threads 4 -f flv rtmp://192.168.1.102/RTMP/RtmpVideo

ffmpeg采集摄像头和麦克风推流
ffmpeg -f dshow -i video="USB2.0 PC CAMERA" -f dshow -i audio="麦克风 (2- USB2.0 MIC)" -b:a 600k -ab 128k -f flv rtmp://192.168.1.102/RTMP/RtmpVideo

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值