-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support transcode-file task #100
Conversation
Codecov Report
@@ Coverage Diff @@
## main #100 +/- ##
=================================================
- Coverage 9.18473% 9.04012% -0.14461%
=================================================
Files 14 14
Lines 1938 1969 +31
=================================================
Hits 178 178
- Misses 1745 1776 +31
Partials 15 15
Continue to review full report at Codecov.
|
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.
Very neat, I like that you were able to share most of the code with the Upload path.
Only thing I wasn't sure about was this bit in your PR description:
TaskTranscodeFile also verifies if the video is playable using playback URL
Where's that happening?
I might be wrong, but I think part of this code tries to download some files... Line 292 in ceaeecf
|
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.
Clean implementation! LGTM, only some minor/optional nits :)
I think there might be a typo here and this should read as: "TaskTrancodeFile finalizes its work when Catalyst Upload VOD pipeline is completed, while TaskUpload also verifies if the video is playable using playback URL." Right? Also, for clarification, I don't think "verifies if the video is playable using playback URL" is quite right. The code that you linked in this comment is responsible for handling some additional operations after results are returned by Catalyst - for example, the |
Yes, you're right. Typing faster than thinking 馃檭
Yes, thanks for this clarification! |
This reverts commit e1d1271.
Add a new task handler
TaskTranscodeFile
. It has the same workflow asTaskUpload
, but it's unrelated to any Studio asset, therefore the logic is slightly different.Related PRs:
Differences between
TaskTrancodeFile
andTaskUpload
:TaskUpload
can read input public video URL from UploadedObjectKey, butTaskTranscodeFile
reads it only from the given URL.TaskTranscodeFile
allows to specify any bucket path as the output, whileTaskUpload
uses playbackId from the asset for the output path.TaskTrancodeFile
finalizes its work when Catalyst Upload VOD pipeline is completed, whileTaskTranscodeFile
also verifies if the video is playable using playback URL.This differences are expressed in the handleUploadVODParams strategy.
Additional Comments:
livepeer/go-api-client
needs to get merged before this onetask-runner
馃槺 I think we should definitely add them, but it would be separate activity / PR