mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
// This example shows how to
|
||||
// 1. connect to a RTSP server
|
||||
// 2. check if there's a H265 format
|
||||
// 3. save the content of the format into a file in MPEG-TS format
|
||||
// 3. save the content of the format in a file in MPEG-TS format
|
||||
|
||||
func main() {
|
||||
c := gortsplib.Client{}
|
||||
@@ -57,10 +57,11 @@ func main() {
|
||||
sps: forma.SPS,
|
||||
pps: forma.PPS,
|
||||
}
|
||||
mpegtsMuxer.initialize()
|
||||
err = mpegtsMuxer.initialize()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer mpegtsMuxer.close()
|
||||
|
||||
// setup a single media
|
||||
_, err = c.Setup(desc.BaseURL, medi, 0, 0)
|
||||
|
Reference in New Issue
Block a user