Open hktalent opened 3 months ago
now setRemoteDescription set ok,but:
$ ps -ef|grep ffmpeg
501 32747 1151 0 2:03下午 ttys004 0:00.01 grep ffmpeg
501 32244 32218 0 2:00下午 ttys012 8:05.78 ffmpeg -i rtsp://admin:MJAmg%40028@192.168.0.124/live/main -an -vcodec libvpx -cpu-used 5 -deadline 1 -g 10 -error-resilient 1 -auto-alt-ref 1 -f rtp rtp://127.0.0.1:1025?pkt_size=1200 -vn -c:a libopus -f rtp rtp://127.0.0.1:1024?pkt_size=1200
logs
127.0.0.1:8081Connection State has changed checking
Got an ICE candidate: candidate:2569382870 1 udp 2130706431 192.168.0.107 50711 typ host
Got an ICE candidate: candidate:2589410501 1 udp 2130706431 192.168.64.1 60287 typ host
Got an ICE candidate: candidate:3255566946 1 udp 2130706431 fdca:b2a4:4e8c:f81f:cde:4875:ec:c767 59061 typ host
Got an ICE candidate: candidate:1267723428 1 udp 1694498815 171.212.126.216 8792 typ srflx raddr 0.0.0.0 rport 49551
Got an ICE candidate: candidate:1267723428 1 udp 1694498815 171.212.126.216 8789 typ srflx raddr 0.0.0.0 rport 56117
Got an ICE candidate: candidate:1267723428 1 udp 1694498815 171.212.126.216 8791 typ srflx raddr 0.0.0.0 rport 49199
Got an ICE candidate: candidate:1267723428 1 udp 1694498815 171.212.126.216 8788 typ srflx raddr 0.0.0.0 rport 50744
Got an ICE candidate: candidate:438490595 1 udp 16777215 65.49.208.113 57088 typ relay raddr 0.0.0.0 rport 61913
2024/05/20 14:20:46 rtsp://admin:MJAmg%40028@192.168.0.124/live/main
2024/05/20 14:20:46 rtp://127.0.0.1:1024?pkt_size=1200
2024/05/20 14:20:46 rtp://127.0.0.1:1025?pkt_size=1200
[GIN] 2024/05/20 - 14:20:47 | 200 | 419.785032ms | 127.0.0.1 | POST "/rtsp2rtc"
Connection State has changed connected
2024/05/20 14:20:49 rtpToTrack ReadFrom 1025 28
2024/05/20 14:20:49 rtpToTrack ReadFrom 1024 273
rtsp test ok
@at-wat Can you give me some help? Thank you so much
https://github.com/pion/example-webrtc-applications/tree/f939bc71df2ae20b23049475fc8277deafe794aa/rtmp-to-webrtc
An error occurred in the browser:
sdp: