mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
fix GStreamer capitalization
This commit is contained in:
@@ -9,9 +9,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// This example shows how to
|
// This example shows how to
|
||||||
// 1. generate RTP/AAC packets with Gstreamer
|
// 1. generate RTP/AAC packets with GStreamer
|
||||||
// 2. connect to a RTSP server, announce an AAC track
|
// 2. connect to a RTSP server, announce an AAC track
|
||||||
// 3. route the packets from Gstreamer to the server
|
// 3. route the packets from GStreamer to the server
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// open a listener to receive RTP/AAC packets
|
// open a listener to receive RTP/AAC packets
|
||||||
@@ -21,7 +21,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer pc.Close()
|
defer pc.Close()
|
||||||
|
|
||||||
log.Println("Waiting for a RTP/AAC stream on UDP port 9000 - you can send one with Gstreamer:\n" +
|
log.Println("Waiting for a RTP/AAC stream on UDP port 9000 - you can send one with GStreamer:\n" +
|
||||||
"gst-launch-1.0 audiotestsrc freq=300 ! audioconvert ! audioresample ! audio/x-raw,rate=48000" +
|
"gst-launch-1.0 audiotestsrc freq=300 ! audioconvert ! audioresample ! audio/x-raw,rate=48000" +
|
||||||
" ! avenc_aac bitrate=128000" +
|
" ! avenc_aac bitrate=128000" +
|
||||||
" ! rtpmp4gpay ! udpsink host=127.0.0.1 port=9000")
|
" ! rtpmp4gpay ! udpsink host=127.0.0.1 port=9000")
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// This example shows how to
|
// This example shows how to
|
||||||
// 1. generate RTP/H264 packets with Gstreamer
|
// 1. generate RTP/H264 packets with GStreamer
|
||||||
// 2. connect to a RTSP server, announce an H264 track
|
// 2. connect to a RTSP server, announce an H264 track
|
||||||
// 3. route the packets from Gstreamer to the server
|
// 3. route the packets from GStreamer to the server
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// open a listener to receive RTP/H264 packets
|
// open a listener to receive RTP/H264 packets
|
||||||
@@ -22,7 +22,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer pc.Close()
|
defer pc.Close()
|
||||||
|
|
||||||
log.Println("Waiting for a RTP/H264 stream on UDP port 9000 - you can send one with Gstreamer:\n" +
|
log.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" +
|
"gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080" +
|
||||||
" ! x264enc speed-preset=veryfast tune=zerolatency bitrate=600000" +
|
" ! x264enc speed-preset=veryfast tune=zerolatency bitrate=600000" +
|
||||||
" ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
|
" ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
|
||||||
|
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
// This example shows how to
|
// This example shows how to
|
||||||
// 1. set additional client options
|
// 1. set additional client options
|
||||||
// 2. generate RTP/H264 frames from a file with Gstreamer
|
// 2. generate RTP/H264 frames from a file with GStreamer
|
||||||
// 3. connect to a RTSP server, announce an H264 track
|
// 3. connect to a RTSP server, announce an H264 track
|
||||||
// 4. write the frames to the server
|
// 4. write the frames to the server
|
||||||
|
|
||||||
|
@@ -9,9 +9,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// This example shows how to
|
// This example shows how to
|
||||||
// 1. generate RTP/Opus packets with Gstreamer
|
// 1. generate RTP/Opus packets with GStreamer
|
||||||
// 2. connect to a RTSP server, announce an Opus track
|
// 2. connect to a RTSP server, announce an Opus track
|
||||||
// 3. route the packets from Gstreamer to the server
|
// 3. route the packets from GStreamer to the server
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// open a listener to receive RTP/Opus packets
|
// open a listener to receive RTP/Opus packets
|
||||||
@@ -21,7 +21,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer pc.Close()
|
defer pc.Close()
|
||||||
|
|
||||||
log.Println("Waiting for a RTP/Opus stream on UDP port 9000 - you can send one with Gstreamer:\n" +
|
log.Println("Waiting for a RTP/Opus stream on UDP port 9000 - you can send one with GStreamer:\n" +
|
||||||
"gst-launch-1.0 audiotestsrc freq=300 ! audioconvert ! audioresample ! audio/x-raw,rate=48000" +
|
"gst-launch-1.0 audiotestsrc freq=300 ! audioconvert ! audioresample ! audio/x-raw,rate=48000" +
|
||||||
" ! opusenc" +
|
" ! opusenc" +
|
||||||
" ! rtpopuspay ! udpsink host=127.0.0.1 port=9000")
|
" ! rtpopuspay ! udpsink host=127.0.0.1 port=9000")
|
||||||
|
@@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// This example shows how to
|
// This example shows how to
|
||||||
// 1. generate RTP/H264 frames from a file with Gstreamer
|
// 1. generate RTP/H264 frames from a file with GStreamer
|
||||||
// 2. connect to a RTSP server, announce an H264 track
|
// 2. connect to a RTSP server, announce an H264 track
|
||||||
// 3. write the frames to the server for 5 seconds
|
// 3. write the frames to the server for 5 seconds
|
||||||
// 4. pause for 5 seconds
|
// 4. pause for 5 seconds
|
||||||
|
Reference in New Issue
Block a user