Skip to content

Commit

Permalink
server,core: Add debug logs for content detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jailuthra committed Jun 23, 2021
1 parent 57db340 commit 1c10706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ func transcodeSegment(cxn *rtmpConnection, seg *stream.HLSSegment, name string,

// [EXPERIMENTAL] send content detection results to callback webhook
if DetectionWebhookURL != "" && len(res.Detections) > 0 {
glog.V(common.DEBUG).Infof("Got detection result %v", res.Detections)
go func(mid core.ManifestID, seqNo uint64, detections []*net.DetectData) {
type DetectionWebhookRequest struct {
ManifestID core.ManifestID `json:"manifestID"`
Expand Down
2 changes: 2 additions & 0 deletions server/mediaserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ func jsonDetectionToDetectionConfig(resp *authWebhookResponse) core.DetectionCon
Name: class.Name,
})
}
glog.V(common.DEBUG).Infof("Parsed scene classification config from webhook %v with freq=%v",
sceneClassification, resp.Detection.Freq)
detection := core.DetectionConfig{
Freq: resp.Detection.Freq,
Profiles: []ffmpeg.DetectorProfile{&sceneClassification},
Expand Down

0 comments on commit 1c10706

Please sign in to comment.