Commit 20a103b3 authored by Rafael Reggiani Manzo's avatar Rafael Reggiani Manzo

Merge branch 'zencoder_output_configuration' into 'master'

Zencoder output configuration

This MR adds the output option to the zencoder request made by the ActiveJob to start a video encoding process and changes some of the default ones. A consensus on these options should be reached before accepting this.

See merge request !21
parents 5a6b8528 8ecfe0d6
Pipeline #3644669 passed with stage
in 9 minutes and 57 seconds
......@@ -3,7 +3,7 @@ class RequestZencoderJob < ApplicationJob
def perform(*args)
content = args.first
response = Zencoder::Job.create(input: content.video.url, test: Rails.env.test?, notifications: notification_url)
response = Zencoder::Job.create(input: content.video.url, test: Rails.env.test?, notifications: notification_url, output: ZencoderSettings.video.to_h)
EncodedContent.create(job_id: response.body['id'], content_id: content.id)
end
......
default_outputs: &default_outputs
video:
format: 'mp4'
size: '640x480'
size: '848x480'
public: true
quality: 4
default_http_options: &default_http_options
http_default_options:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment