Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clipping logging #1384

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pipeline/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,16 @@ func (c *Coordinator) StartUploadJob(p UploadJobPayload) {
// Update osTransferURL if needed
if clients.IsHLSInput(sourceURL) {
// Handle falling back to backup bucket for manifest and segments
log.Log(p.RequestID, "Starting recording backup check")
sourceURL, err = clients.RecordingBackupCheck(p.RequestID, sourceURL, osTransferURL.JoinPath(".."))
if err != nil {
return nil, err
}
log.Log(p.RequestID, "Completed recording backup check")

// Currently we only clip an HLS source (e.g recordings or transcoded asset)
if p.ClipStrategy.Enabled {
log.Log(p.RequestID, "Clipping enabled")
err := backoff.Retry(func() error {
log.Log(p.RequestID, "clippity clipping the input", "Playback-ID", p.ClipStrategy.PlaybackID)
// Use new clipped manifest as the source URL
Expand All @@ -311,6 +314,8 @@ func (c *Coordinator) StartUploadJob(p UploadJobPayload) {
if err != nil {
return nil, err
}
} else {
log.Log(p.RequestID, "Clipping not enabled")
}
// Use the source URL location as the transfer directory to hold the clipped outputs
osTransferURL = sourceURL
Expand Down
Loading