Class: WscSdk::Templates::Output
- Inherits:
-
ModelTemplate
- Object
- ModelTemplate
- WscSdk::Templates::Output
- Defined in:
- lib/wsc_sdk/templates/output.rb
Overview
Templates for generating Outputs
Class Method Summary collapse
-
.full_hd(modifiers = {}) ⇒ Object
Generate a Full HD output (1920x1080).
-
.hd(modifiers = {}) ⇒ Object
Generate an HD output (1280x720).
-
.low_res_large(modifiers = {}) ⇒ Object
Generate a larger sized low res output (640x360).
-
.low_res_medium(modifiers = {}) ⇒ Object
Generate a medium sized low res output (512x288).
-
.low_res_small(modifiers = {}) ⇒ Object
Generate a smaller sized low res output (320x180).
-
.sd_wide(modifiers = {}) ⇒ Object
Generate an SD wide screen output (854x480).
Methods inherited from ModelTemplate
Class Method Details
.full_hd(modifiers = {}) ⇒ Object
Generate a Full HD output (1920x1080).
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/wsc_sdk/templates/output.rb', line 16 def self.full_hd(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 1080, aspect_ratio_width: 1920, bitrate_audio: 128, bitrate_video: 4000, h264_profile: "high", framerate_reduction: "0", keyframes: "follow_source" }, modifiers) end |
.hd(modifiers = {}) ⇒ Object
Generate an HD output (1280x720)
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/wsc_sdk/templates/output.rb', line 36 def self.hd(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 720, aspect_ratio_width: 1280, bitrate_audio: 128, bitrate_video: 2600, h264_profile: "high", framerate_reduction: "0", keyframes: "follow_source", }, modifiers) end |
.low_res_large(modifiers = {}) ⇒ Object
Generate a larger sized low res output (640x360)
77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/wsc_sdk/templates/output.rb', line 77 def self.low_res_large(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 360, aspect_ratio_width: 640, bitrate_audio: 128, bitrate_video: 1024, h264_profile: "main", framerate_reduction: "0", keyframes: "follow_source", }, modifiers) end |
.low_res_medium(modifiers = {}) ⇒ Object
Generate a medium sized low res output (512x288)
97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/wsc_sdk/templates/output.rb', line 97 def self.low_res_medium(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 288, aspect_ratio_width: 512, bitrate_audio: 128, bitrate_video: 512, h264_profile: "baseline", framerate_reduction: "0", keyframes: "follow_source", }, modifiers) end |
.low_res_small(modifiers = {}) ⇒ Object
Generate a smaller sized low res output (320x180)
117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/wsc_sdk/templates/output.rb', line 117 def self.low_res_small(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 180, aspect_ratio_width: 320, bitrate_audio: 128, bitrate_video: 320, h264_profile: "baseline", framerate_reduction: "0", keyframes: "follow_source", }, modifiers) end |
.sd_wide(modifiers = {}) ⇒ Object
Generate an SD wide screen output (854x480)
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/wsc_sdk/templates/output.rb', line 57 def self.sd_wide(modifiers={}) self.merge({ stream_format: "audiovideo", passthrough_video: false, passthrough_audio: false, aspect_ratio_height: 480, aspect_ratio_width: 854, bitrate_audio: 128, bitrate_video: 1600, h264_profile: "main", framerate_reduction: "0", keyframes: "follow_source", }, modifiers) end |