Skip to content

Commit

Permalink
Log line
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Jan 30, 2025
1 parent 30e4f93 commit 426bf3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media/rtmp2segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (ms *MediaSegmenter) RunSegmentation(ctx context.Context, in string, segmen

retryCount := 0
for {
// TODO better logging
streamExists, err := ms.MediaMTXClient.StreamExists()
if err != nil {
clog.Errorf(ctx, "StreamExists check failed. err=%s", err)
Expand All @@ -56,6 +57,7 @@ func (ms *MediaSegmenter) RunSegmentation(ctx context.Context, in string, segmen
clog.Errorf(ctx, "Stopping segmentation, input stream does not exist. in=%s err=%s", in, err)
break
}
clog.Infof(ctx, "Starting segmentation. in=%s streamExists=%t retryCount=%d", in, streamExists, retryCount)
cmd := exec.CommandContext(procCtx, "ffmpeg",
"-i", in,
"-c:a", "copy",
Expand Down

0 comments on commit 426bf3d

Please sign in to comment.