Remove unused DTS extraction code and video stream handling in HandleRecordStream

This commit is contained in:
cedricve
2025-07-05 15:05:22 +00:00
parent 86acff58f0
commit 5823abed95
2 changed files with 0 additions and 10 deletions

View File

@@ -633,13 +633,6 @@ func (g *Golibrtsp) Start(ctx context.Context, streamType string, queue *packets
return
}
// Extract DTS from RTP packets
//dts2, err := dtsExtractor.Extract(filteredAU, pts2)
//if err != nil {
// log.Log.Error("capture.golibrtsp.Start(): " + err.Error())
// return
//}
pkt := packets.Packet{
IsKeyFrame: idrPresent,
Packet: rtppkt,

View File

@@ -420,9 +420,6 @@ func HandleRecordStream(queue *packets.Queue, configDirectory string, configurat
var videoTrack uint32
var audioTrack uint32
//streams, _ := rtspClient.GetVideoStreams()
//videoStream := streams[0] // We will use the first video stream, as we only expect one video stream.
for motion := range communication.HandleMotion {
// Get as much packets we need.