使用webrtc去共享内存读取数据

\srcmodules\video_capture\linux :
StartCapture() / StopCapture() / RegisterCaptureDataCallback() / DeRegisterCaptureDataCallback()
https://blog.csdn.net/boywgw/article/details/68059457?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164863077716780255287890%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164863077716780255287890&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-3-68059457.142v5pc_search_result_cache,143v6register&utm_term=webrtc%E5%8D%8F%E8%AE%AE%E5%88%87%E6%8D%A2%E8%A7%86%E9%A2%91%E6%BA%90&spm=1018.2226.3001.4187

“src/modules/video_capture/linux/video_capture_linux.h”

webrtc步骤:
1.将源切换
2.将网络拥堵参数返回,此参数本来用于自反馈调节本地的码率以应对网络拥堵情况,现在切换源了,所以需要拿到参数自己实现对码率的调节。
切换源的一个项目:
https://github.com/mpromonet/webrtc-streamer

stun作net穿透,有些对称网络stun不能穿透,使用turn穿透,webrtc默认使用:stun:stun.l.google.com:19302服务器。
ali服务器:
sudo scp ./peerconnection_server [email protected]:/home/root/webrtc_temp
47.104.161.61
22
root
yqwnUV#26h#z9

139.129.91.106
22
root
yqw022@deviser

//执行命令
$WEBRTC_DIR/src/out/Default/peerconnection_client_2 --server 192.168.100.76 --video_url big_buck_bunny_4s.264 --port 8888

(video_send_stream.cc:864): SignalEncoderTimedOut, Encoder timed out
报上面的问题,两种解决方案:
换ubuntu14
继续搜,改动的可能性小。

ffmpeg -i a.mp4 -vcodec copy -an r1.mp4
media.navigator.video.preferred_codec = 126
media.navigator.mediadatadecoder_h264_enabled

//10是孔工的ip
export ALL_PROXY=socks5://192.168.100.10:1086

鉴权和视频会议

猜你喜欢

转载自blog.csdn.net/weixin_43466192/article/details/123851462