cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.22k stars 474 forks source link

rtpw: Failed to join multicast group No such device #581

Closed snowuyl closed 2 years ago

snowuyl commented 2 years ago

Server: PEER_V=20000 PEER_IP=224.1.1.1 \ SELF_PATH="/home/andyueng/Videos/1080p_30fps_217s.ts" \ SELF_VSSRC=0xdeadbeef \ SELF_KEY="4142434445464748494A4B4C4D4E4F505152535455565758595A31323334" \ bash -c 'gst-launch-1.0 -e \ uridecodebin uri="file://$SELF_PATH" \ ! videoconvert \ ! x264enc tune=zerolatency \ ! rtph264pay \ ! "application/x-rtp,payload=(int)103,ssrc=(uint)$SELF_VSSRC" \ ! srtpenc key="$SELF_KEY" \ rtp-cipher="aes-128-icm" rtp-auth="hmac-sha1-80" \ rtcp-cipher="aes-128-icm" rtcp-auth="hmac-sha1-80" \ ! udpsink host=$PEER_IP auto-multicast=true port=$PEER_V' Client: export key="4142434445464748494A4B4C4D4E4F505152535455565758595A31323334" ./rtpw -k $key -a -e 128 -r 224.1.1.1 20000 Using libsrtp2 2.5.0 [0x2050000] MAX_WORD_LEN=2048 ./rtpw: Failed to join multicast group No such device

snowuyl commented 2 years ago

I have fixed this issue by adding the following command. route add -net 224.0.0.0 netmask 224.0.0.0 eth0