client: support publishing with opus

This commit is contained in:
aler9
2021-10-30 15:45:13 +02:00
parent e9044bc6a5
commit cab3fe270e
14 changed files with 1208 additions and 855 deletions

View File

@@ -21,7 +21,7 @@ func main() {
}
defer pc.Close()
fmt.Println("Waiting for a RTP/h264 stream on UDP port 9000 - you can send one with Gstreamer:\n" +
fmt.Println("Waiting for a RTP/H264 stream on UDP port 9000 - you can send one with Gstreamer:\n" +
"gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080" +
" ! x264enc speed-preset=veryfast tune=zerolatency bitrate=600000" +
" ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
@@ -56,7 +56,7 @@ func main() {
panic(err)
}
// write RTP packets
// route RTP packets to the server
err = conn.WriteFrame(0, gortsplib.StreamTypeRTP, buf[:n])
if err != nil {
panic(err)