metapushstreams:webrtc://127.0.0.1/live/livestream
metaplayer3:webrtc://127.0.0.1/live/livestream
srs:objs/srs -c conf/https.rtc.conf
ffmpeg -i westLife_mini.mp4 -strict -2 -f webrtc webrtc://127.0.0.1/live/livestream
objs/srs -c conf/rtc.conf
方案一使用以下:刚刚开始音频有些卡顿,后面流畅,视频刚刚开始偶尔有半秒卡顿,后面偶尔有丢帧,但肉眼流畅,不过有区域花块。当使用-f webrtc时,player3只支持opus的音频播放,ffmpeg默认使用opus编码,音频是在ffmpeg的opus编码的,matertc也认为ffmpeg传输过来的是opus。用opus编码应该是ffmpeg作的,metartc只传输。id:50
推拉流和srs都在本机。
ffmpeg -re -i westlife.mp4 -f webrtc webrtc://127.0.0.1/live/livestream
objs/srs -c conf/https.rtc.conf
metaplayer3
方案一换成:ffmpeg -re -i westlife_opus.mp4 -f webrtc webrtc