update docs

This commit is contained in:
aler9
2022-02-18 10:05:44 +01:00
parent 433426ff07
commit a7ce5b7a53
6 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ import (
// This example shows how to
// 1. connect to a RTSP server and read all tracks on a path
// 2. check whether there's an AAC track
// 2. check if there's an AAC track
// 3. get AAC AUs of that track
func main() {

View File

@@ -16,8 +16,8 @@ import (
// This example shows how to
// 1. connect to a RTSP server and read all tracks on a path
// 2. check whether there's a H264 track
// 3. convert H264 NALUs of that track into raw frames
// 2. check if there's a H264 track
// 3. convert H264 into raw frames
// 4. encode the frames into JPEG images and save them on disk
// This example requires the ffmpeg libraries, that can be installed in this way:
// apt install -y libavformat-dev libswscale-dev gcc pkg-config
@@ -92,7 +92,7 @@ func main() {
// send SPS and PPS to the decoder
if h264tr.SPS() == nil || h264tr.PPS() == nil {
panic("SPS or PPS not provided by the SDP")
panic("SPS or PPS not present into the SDP")
}
h264dec.decode(h264tr.SPS())
h264dec.decode(h264tr.PPS())

View File

@@ -9,7 +9,7 @@ import (
// This example shows how to
// 1. connect to a RTSP server and read all tracks on a path
// 2. check whether there's a H264 track
// 2. check if there's a H264 track
// 3. save the content of the H264 track to a file in MPEG-TS format
func main() {

View File

@@ -67,7 +67,7 @@ func (e *mpegtsEncoder) encode(nalus [][]byte, pts time.Duration) error {
e.startPTS = pts
}
// check whether there's an IDR
// check if there's an IDR
idrPresent := func() bool {
for _, nalu := range nalus {
typ := h264.NALUType(nalu[0] & 0x1F)

View File

@@ -11,8 +11,8 @@ import (
// This example shows how to
// 1. connect to a RTSP server and read all tracks on a path
// 2. check whether there's an H264 track
// 3. convert H264 NALUs of that track into raw frames
// 2. check if there's an H264 track
// 3. convert H264 into raw frames
// This example requires the ffmpeg libraries, that can be installed in this way:
// apt install -y libavformat-dev libswscale-dev gcc pkg-config
@@ -69,7 +69,7 @@ func main() {
// send SPS and PPS to the decoder
if h264tr.SPS() == nil || h264tr.PPS() == nil {
panic("SPS or PPS not provided by the SDP")
panic("SPS or PPS not present into the SDP")
}
h264dec.decode(h264tr.SPS())
h264dec.decode(h264tr.PPS())

View File

@@ -125,7 +125,7 @@ func (st *ServerStream) readerAdd(
switch transport {
case TransportUDP:
// check whether client ports are already in use by another reader.
// check if client ports are already in use by another reader.
for r := range st.readersUnicast {
if *r.setuppedTransport == TransportUDP &&
r.author.ip().Equal(ss.author.ip()) &&