-
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
Upload transcodes to output target location rather than input location #61
Conversation
Codecov Report
@@ Coverage Diff @@
## main #61 +/- ##
===================================================
+ Coverage 35.42958% 35.48673% +0.05715%
===================================================
Files 17 17
Lines 1129 1130 +1
===================================================
+ Hits 400 401 +1
Misses 682 682
Partials 47 47
Continue to review full report at Codecov.
|
CallbackUrl string | ||
UploadDir string | ||
CallbackURL string | ||
UploadURL string |
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.
Changed Url -> URL because that's Go convention.
Changed "Dir" to URL because it's a URL and not a Dir
@@ -36,6 +36,7 @@ func (d *MistCallbackHandlersCollection) Trigger() httprouter.Handle { | |||
_ = config.Logger.Log( | |||
"msg", "Received Mist Trigger", | |||
"trigger_name", triggerName, | |||
"payload", string(payload), |
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.
good idea
@@ -107,11 +100,11 @@ func RunTranscodeProcess(mistClient clients.MistAPIClient, request TranscodeSegm | |||
return fmt.Errorf("failed to start MistProcLivepeer: %s", err) | |||
} | |||
|
|||
dir, _ := url.Parse(".") | |||
uploadDir := inputUrl.ResolveReference(dir) | |||
dir, _ := url.Parse("transcoded/") |
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.
does it need to be hard-coded or can it be configurable in request payload?
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.
At least initially, hardcoded - can look at making it variable in the future if needed
* Add playback redirection to the closest Mist node * Update for `http-addr` flag and Mist Load Balancer 'video+' prefix * Add E2E test for stream redirection * Remove unused params in E2E Test * Update cmd/catalyst-node/catalyst-node.go Co-authored-by: Eli Mallon <[email protected]> * Update cmd/catalyst-node/catalyst-node.go Co-authored-by: Eli Mallon <[email protected]> * Update cmd/catalyst-node/catalyst-node_test.go Co-authored-by: Eli Mallon <[email protected]> * Update cmd/catalyst-node/catalyst-node.go Co-authored-by: Eli Mallon <[email protected]> * Minor fixes after code review * Handle Mist returning "FULL" from LoadBalancer API * go fmt * Fix Revive warnings * Fix CI builds Co-authored-by: Eli Mallon <[email protected]>
Puts all transcoded segments + manifests under a
transcoded/
dir, rather than alongside the source MP4.Doesn't account for multiple output locations yet, but is enough for us to test with.