samvera-labs / active_encode

Declare encode job classes that can be run by a variety of encoding services
Other
6 stars 8 forks source link

MediaConvert adapter has direct_output_lookup config, to avoid using CloudWatch #102

Closed jrochkind closed 2 years ago

jrochkind commented 2 years ago

MediaConvert adapter has direct_output_lookup config

To calculate output directly from the MediaConvert Job object, without requiring the CloudWatch logs.

(Also includes a commit that renamed some methods/variables for clarity, and added inline comments.)

All the info we were returning is there EXCEPT the actual output URLs. Sufficient info is there to calculate/predict the output URLs though -- I have done that for HLS. I believe it should be do-able for other formats too, but I am no t familiar with them to figure out what they should be, so for NOW the URL calculation is only there for HLS. (If it's important, I could try to familiarize myself with the others and how the adapter currently handles them and try to match them without CloudWatch too? Not sure what other outputs are in any actual use at present, if any?)

This logic makes some assumptions, like that hteres only one input file and only one output group -- but I think such assumptions were already being made, and the adapter at current is incapable of violating them. It does potentiall y introduce some additional fragility though.

jrochkind commented 2 years ago

circleci does not seem to be kicking off, I don't know how to fix it. :(

mbklein commented 2 years ago

I approved this because the PR looks good and the tests passed on my system. It would be great to get them passing in CI as well.

jrochkind commented 2 years ago

I believe @cjcolvar can make them run somehow. Pretty please then we'll merge after pass?