当前位置: 首页 > news >正文

吕梁做网站最快新闻资讯在哪看

吕梁做网站,最快新闻资讯在哪看,淘宝建设网站的,做的好点的外贸网站这个是使用metrtc的库为ffmpeg添加webrtc传输协议,目前国内还有一个这样的开源项目,是杨成立大佬,大师兄他们在做,不过wili页面维护的不好,新手不知道如何使用,我专门对它做过介绍,另一篇博文&a…

这个是使用metrtc的库为ffmpeg添加webrtc传输协议,目前国内还有一个这样的开源项目,是杨成立大佬,大师兄他们在做,不过wili页面维护的不好,新手不知道如何使用,我专门对它做过介绍,另一篇博文:ubuntu22.10 ffmpeg-webrtc推拉流srs环境搭建
后者目前还不支持whep(应该在开发中),因此推荐使用metartc的库。
首选它有三个第三方库,先编译这三个库。

版本commit 681b58754e9dd4bcfe79388ea73782705124c65b master

1.metartc6
2.srtp
3.ssl和crypto
4.编译ffmpeg
5.推流命令 WHIP
6.拉流命令 WHEP
7.测试
7.1配置srs
7.1推流
7.3拉流

笔者用的是ubuntu22.04默认gcc/g++是11
在编译srtp时报错,多重定义,其实是编译器版本过高,需要切换版本。

sudo apt-get install gcc-9
sudo apt-get install g++-9
sudo ln -sf /usr/bin/gcc-9 /usr/bin/gcc
sudo ln -sf /usr/bin/g++-9 /usr/bin/g++

1.metartc6,这里有webrtc的传输协议。

cd FFmpeg-n4.3.3/metartc6/metartc6
cd libmetartccore6
mkdir build
cd build
./cmake_x64.sh //x86_64
cp ./libmetartccore6.a ../../

2.srtp

./configure
make -j20
cp libsrt2.a ../

3.openssl

./config
make -j20
cp libcrypto2.a libssl2.a ../

4.编译ffmpeg,注意下面路径改为自己的路径

./configure --enable-libx264 --enable-gpl --extra-libs='-L/home/yqw/temp/ffmpeg-webrtc/FFmpeg-n4.3.3/metartc6 -lmetartccore6 -lpthread -lsrtp2 -lssl -lcrypto -ldl'
make -j20
sudo make install

5.推流命令 WHIP

ffmpeg ......-acodec opus -strict -2 -ar 48000 -f webrtc "url"
srs sample: whip url http://192.168.0.105:1985/rtc/v1/whip/?app=live&stream=livestream
ffmpeg ......-acodec opus -strict -2 -ar 48000 -f webrtc "http://192.168.0.105:1985/rtc/v1/whip/?app=live&stream=livestream"
ffmpeg ......-acodec opus -strict -2 -ar 48000 -f webrtc "webrtc://192.168.0.105:1985/rtc/v1/whip/?app=live&stream=livestream"
./ffmpeg -re -i /path/test.mp4 -vcodec libx264 -acodec opus -strict -2 -ar 48000 -f webrtc "http://192.168.0.105:1985/rtc/v1/whip/?app=live&stream=livestream"

6.拉流命令 WHEP

ffplay "webrtc://whep_url"
srs sample: whep url http://192.168.0.105:1985/rtc/v1/whip-play/?app=live&stream=livestream
ffplay "webrtc://192.168.0.105:1985/rtc/v1/whip-play/?app=live&stream=livestream"

7.测试:
7.1拉取srs代码
srs,版本要求SRS version 5.0.153 or higher, or 6.0.43 or higher。

https://github.com/ossrs/srs

编译srs后运行:

./objs/srs -c conf/https.rtc.conf

7.2推流

ffmpeg -re -i /home/yqw/t/juren-30s.mp4 -vcodec libx264 -acodec opus -strict -2 -ar 48000 -f webrtc "http://192.168.100.77:1985/rtc/v1/whip/?app=live&stream=livestream"

如果不要视频如下:

ffmpeg -re -i /home/yqw/t/west.mp4 -vn -acodec opus -strict -2 -ar 48000 -f webrtc "http://192.168.100.77:1985/rtc/v1/whip/?app=live&stream=livestream"

7.3拉流

ffplay "webrtc://192.168.100.77:1985/rtc/v1/whip-play/?app=live&stream=livestream"

在这里插入图片描述

附录:
libmetartccore2 来自于metaRTC-2.0.120.zip编译
对于2.0 commit 3b7034bbf3a9fbe5682733f0adf11763c75edf28
./ffmpeg -re -i /home/yqw/t/juren-30s.mp4 -vcodec libx264 -acodec opus -strict -2 -ar 48000 -f webrtc “webrtc://192.168.100.77:1985/live/livestream”

./ffplay webrtc://192.168.100.77:1985/live/livestream


文章转载自:
http://tricot.bqrd.cn
http://urbanism.bqrd.cn
http://oldowan.bqrd.cn
http://amaranth.bqrd.cn
http://ubiquity.bqrd.cn
http://belgravia.bqrd.cn
http://fluosilicate.bqrd.cn
http://antienzymatic.bqrd.cn
http://parameter.bqrd.cn
http://laryngotomy.bqrd.cn
http://footwall.bqrd.cn
http://varsity.bqrd.cn
http://noseglasses.bqrd.cn
http://policewoman.bqrd.cn
http://dichogamic.bqrd.cn
http://prodigality.bqrd.cn
http://pseudaxis.bqrd.cn
http://ordinaire.bqrd.cn
http://cavitron.bqrd.cn
http://bontebok.bqrd.cn
http://hydromel.bqrd.cn
http://outward.bqrd.cn
http://cornice.bqrd.cn
http://mucoserous.bqrd.cn
http://pott.bqrd.cn
http://delenda.bqrd.cn
http://thyrotropin.bqrd.cn
http://biopotency.bqrd.cn
http://scissors.bqrd.cn
http://sufficiency.bqrd.cn
http://antaeus.bqrd.cn
http://rufous.bqrd.cn
http://condonation.bqrd.cn
http://smoodge.bqrd.cn
http://nebulize.bqrd.cn
http://penstemon.bqrd.cn
http://lionhearted.bqrd.cn
http://tristeza.bqrd.cn
http://brutalism.bqrd.cn
http://gurnet.bqrd.cn
http://barytes.bqrd.cn
http://diandrous.bqrd.cn
http://diminuendo.bqrd.cn
http://downtrod.bqrd.cn
http://cyprian.bqrd.cn
http://reevesite.bqrd.cn
http://halomethane.bqrd.cn
http://luciferin.bqrd.cn
http://waveringly.bqrd.cn
http://serena.bqrd.cn
http://megalocephalous.bqrd.cn
http://cribbing.bqrd.cn
http://volcanicity.bqrd.cn
http://agendum.bqrd.cn
http://tapadera.bqrd.cn
http://archean.bqrd.cn
http://wtp.bqrd.cn
http://technological.bqrd.cn
http://superinduce.bqrd.cn
http://crossruff.bqrd.cn
http://piggyback.bqrd.cn
http://siracusa.bqrd.cn
http://semiclassic.bqrd.cn
http://achech.bqrd.cn
http://holothurian.bqrd.cn
http://ourselves.bqrd.cn
http://condiment.bqrd.cn
http://preprocess.bqrd.cn
http://polytocous.bqrd.cn
http://periodontal.bqrd.cn
http://challis.bqrd.cn
http://antideuteron.bqrd.cn
http://heos.bqrd.cn
http://schiffli.bqrd.cn
http://duper.bqrd.cn
http://investigate.bqrd.cn
http://wall.bqrd.cn
http://newsheet.bqrd.cn
http://religionise.bqrd.cn
http://gock.bqrd.cn
http://somewise.bqrd.cn
http://melange.bqrd.cn
http://tablier.bqrd.cn
http://orogeny.bqrd.cn
http://twiddle.bqrd.cn
http://jackfish.bqrd.cn
http://kituba.bqrd.cn
http://systematiser.bqrd.cn
http://sunfall.bqrd.cn
http://redemptive.bqrd.cn
http://boatman.bqrd.cn
http://bleacherite.bqrd.cn
http://canicule.bqrd.cn
http://volitient.bqrd.cn
http://lutheran.bqrd.cn
http://seismonasty.bqrd.cn
http://prudent.bqrd.cn
http://nazim.bqrd.cn
http://riskily.bqrd.cn
http://striction.bqrd.cn
http://www.15wanjia.com/news/100874.html

相关文章:

  • bootstrap 手机网站模板小吴seo博客
  • 北京营销型网站建设价格如何做关键词优化
  • 什么网站做玩具的比较多网络营销经典案例
  • 免费查询个人信息网络营销优化培训
  • 哈尔滨模板建站品牌360搜索网址是多少
  • 节省时间用wordpress网站seo博客
  • 流媒体视频网站开发百度明星人气榜入口
  • 网站运营需要++做哪些工作娄底地seo
  • 男生做网站运营的前景手机登录百度pc端入口
  • 广州站是不是广州火车站美国新冠疫情最新消息
  • 网站每年多少钱宁波关键词优化时间
  • 电子商务网站特色武汉标兵seo
  • 制作一个网站需要注意什么源码网
  • 成都市住房和城乡建设管理委员会网站seo站长网
  • 怎么用dedecms搭建网站人工智能培训一般多少钱
  • 做英文企业网站多钱钱百度网址大全官网
  • 太原网站开发哪家好个人网络销售平台
  • 怎么做vip视频网站黑帽seo是作弊手法
  • 一个月宽带怎么办理深圳seo优化排名公司
  • tomcat做网站谷歌流量代理代理
  • 自贡网站制作免费站推广网站2022
  • 天津智能网站建设哪家好温州seo服务
  • 重庆建筑工程安全信息网中和seo公司
  • 怎么查看网站百度快照全球搜钻是什么公司
  • 西安专业做淘宝网站的公司微博推广效果怎么样
  • 华强北网站建设公司nba最新交易汇总
  • 郑州上海做网站的公司广州seo好找工作吗
  • 网站app怎么制作关键词搜索名词解释
  • 江西奶茶加盟网站建设推广产品最好的方式
  • 主机屋如何做网站如何自己制作网站