notedit / rtmp-to-webrtc

rtmp to webrtc
216 stars 62 forks source link

推流到medooze mediaserver问题 #12

Closed zwlhoho closed 4 years ago

zwlhoho commented 4 years ago

老师好, 是启动server.js,然后向进程绑定的udp端口上推udp吗? 如果往56281端口上rtp,应该需要推送srtp的吧? image

谢谢老师

zwlhoho commented 4 years ago

另外,我使用ffmpeg推送到rtmp server上,然后gst-launch-1.0从rtmp server上拉流然后转成rtp,发出。 ffmpeg命令: ffmpeg -f dshow -re -i video="Integrated Camera" -vcodec libx264 -tune zerolatency -preset ultrafast -g 15 -keyint_min 15 -profile:v baseline -level 3.0 -pix_fmt yuv420p -r 15 -f flv rtmp://192.168.36.76:21935/live/live gst-launch-1.0命令: gst-launch-1.0 -v rtmpsrc location=rtmp://192.168.36.76:21935/live/live ! flvdemux ! h264parse ! rtph264pay config-interval=-1 pt=102 ! srtpenc ! udpsink port=57152 host=192.168.36.81 multicast-iface=enp0s3 loop=false vlc sdp: v=0 m=video 57152 RTP/AVP 102 c=IN IP4 127.0.0.1 a=rtpmap:102 H264/90000 a=rtcp-fb:102 goog-remb a=rtcp-fb:102 transport-cc a=rtcp-fb:102 ccm fir a=rtcp-fb:102 nack a=rtcp-fb:102 nack pli a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f 但是vlc播放的时候花屏比较严重 image 老师之前遇到过这些问题没,谢谢。