Skip to content

Instantly share code, notes, and snippets.

@phuongdh
Last active April 19, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phuongdh/4047f61b765e57908a62e814490fc27e to your computer and use it in GitHub Desktop.
Save phuongdh/4047f61b765e57908a62e814490fc27e to your computer and use it in GitHub Desktop.
VC19 plan
- Generate hyrax app: rails _5.1.6_ new vc19 -m https://raw.githubusercontent.com/samvera/hyrax/v2.5.0/template.rb
- Generate admin set: rake hyrax:default_admin_set:create hyrax:workflow:load
- Generate Work type: rails generate hyrax:work Video
- Add gems:
printf "\ngem 'hyrax-active_encode'" >> Gemfile
printf "\ngem 'aws-sdk'" >> Gemfile
- bundle install
- Run hyrax-active_encode generator: rails g hyrax:active_encode:install
- Configure for AWS:
+ config/initializers/hyrax.rb
+ app/services/elastic_transcoder_options_service.rb
Show upload:
- Adapter uploads to S3 masterfiles bucket and prefix with UUID to avoid collision. Show file on AWS console
transcoding:
- Show job
then streaming:
- Show derivative file created
Show any active_encode command line interaction?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment