-
Notifications
You must be signed in to change notification settings - Fork 2
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
Address some TODOs #119
Address some TODOs #119
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,6 @@ func (d *CatalystAPIHandlersCollection) UploadVOD() httprouter.Handle { | |
} | ||
|
||
func (d *CatalystAPIHandlersCollection) processUploadVOD(streamName, sourceURL, targetURL string) error { | ||
// TODO: remove this logic to force input URLs to mp4/mov format | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we're keeping this for now |
||
sourceURL = "mp4:" + sourceURL | ||
if err := d.MistClient.AddStream(streamName, sourceURL); err != nil { | ||
return err | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ func GenerateAndUploadManifests(sourceManifest m3u8.MediaPlaylist, targetOSURL s | |
masterPlaylist.Append( | ||
fmt.Sprintf("rendition-%d/rendition.m3u8", i), | ||
&m3u8.MediaPlaylist{ | ||
TargetDuration: 10, // TODO: Don't hardcode | ||
TargetDuration: sourceManifest.TargetDuration, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can just take it off the source manifest, since we're not forcing a different TargetDuration at this point |
||
}, | ||
m3u8.VariantParams{ | ||
Name: fmt.Sprintf("%d-%s", i, profile.Name), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,6 @@ func RunTranscodeProcess(transcodeRequest TranscodeSegmentRequest, streamName st | |
} | ||
|
||
// Iterate through the segment URLs and transcode them | ||
// TODO: Some level of parallelisation once we're happy this works well | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is now being tracked under #111 so we can ditch the TODO |
||
for segmentIndex, u := range sourceSegmentURLs { | ||
rc, err := clients.DownloadOSURL(u.URL) | ||
if err != nil { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now happens inside the transcode method itself