unimatrix 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/unimatrix.rb +1 -0
- data/lib/unimatrix/alchemist/aws_rendition_profile.rb +6 -0
- data/lib/unimatrix/alchemist/video.rb +2 -1
- data/lib/unimatrix/alchemist/video_rendition.rb +19 -0
- data/lib/unimatrix/alchemist/video_rendition_interrogation_activity_proxy.rb +9 -0
- data/lib/unimatrix/iris/stream_transformer.rb +17 -0
- data/lib/unimatrix/operation.rb +1 -0
- data/lib/unimatrix/request.rb +28 -21
- data/lib/unimatrix/zephyrus/transformation_output.rb +9 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a1bfb24d46b588eac2edb5671df43c98de1656
|
4
|
+
data.tar.gz: a9ee431261fed4cd050913a52aa35c9cdf7bd166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ba8df20d0fb3a46d8f57396a051f173996fc4001d21b6b4ebbfee7fb29072a94ffe58850f89cee09d81e714668f276d25b859e9161b43f25e76dd6ab2ad825d
|
7
|
+
data.tar.gz: fc16202719fd231eae1768958705fcf414959213b44b2658416f7ecb217a45168e7826adf572234a68a3a35399c3f91ccd846c1c96996f1efb881d791c6bb3c0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.9.0
|
data/lib/unimatrix.rb
CHANGED
@@ -50,6 +50,7 @@ require 'unimatrix/alchemist/text_storage_activity_proxy'
|
|
50
50
|
require 'unimatrix/alchemist/video_encoding_activity_proxy'
|
51
51
|
require 'unimatrix/alchemist/video_picture_activity_proxy'
|
52
52
|
require 'unimatrix/alchemist/video_rendition'
|
53
|
+
require 'unimatrix/alchemist/video_rendition_interrogation_activity_proxy'
|
53
54
|
require 'unimatrix/alchemist/video_sprite_activity_proxy'
|
54
55
|
require 'unimatrix/alchemist/video_storage_interrogation_picture_activity_proxy'
|
55
56
|
|
@@ -3,6 +3,12 @@ module Unimatrix::Alchemist
|
|
3
3
|
class AwsRenditionProfile < RenditionProfile
|
4
4
|
|
5
5
|
field :preset_id
|
6
|
+
field :transcoder
|
7
|
+
field :encryption
|
8
|
+
field :encryption_system_id
|
9
|
+
field :encryption_url
|
10
|
+
field :encryption_static_key
|
11
|
+
field :encryption_static_url
|
6
12
|
|
7
13
|
end
|
8
14
|
|
@@ -3,6 +3,25 @@ module Unimatrix::Alchemist
|
|
3
3
|
class VideoRendition < Rendition
|
4
4
|
|
5
5
|
field :bit_rate
|
6
|
+
field :codec
|
7
|
+
field :codec_long
|
8
|
+
field :pixel_format
|
9
|
+
field :profile
|
10
|
+
field :resolution
|
11
|
+
field :rotation
|
12
|
+
field :bit_rate
|
13
|
+
field :level
|
14
|
+
field :frame_rate
|
15
|
+
field :duration
|
16
|
+
field :display_aspect_ratio
|
17
|
+
field :storage_aspect_ratio
|
18
|
+
field :audio_codec
|
19
|
+
field :audio_codec_long
|
20
|
+
field :audio_channels
|
21
|
+
field :audio_channel_layout
|
22
|
+
field :audio_bit_rate
|
23
|
+
field :audio_sample_rate
|
24
|
+
field :transcoder
|
6
25
|
|
7
26
|
end
|
8
27
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Unimatrix::Iris
|
2
|
+
|
3
|
+
class StreamTransformer < Unimatrix::Resource
|
4
|
+
|
5
|
+
field :id
|
6
|
+
field :created_at
|
7
|
+
field :updated_at
|
8
|
+
field :uuid
|
9
|
+
field :state
|
10
|
+
field :url
|
11
|
+
field :url_in
|
12
|
+
field :stream_id
|
13
|
+
field :stream_uuid
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/lib/unimatrix/operation.rb
CHANGED
@@ -104,6 +104,7 @@ module Unimatrix
|
|
104
104
|
def write( node, objects, &block )
|
105
105
|
result = nil
|
106
106
|
Request.new.tap do | request |
|
107
|
+
|
107
108
|
serializer = Unimatrix::Serializer.new( objects )
|
108
109
|
response = request.post( @path, @parameters, serializer.serialize( node ) )
|
109
110
|
if response.present?
|
data/lib/unimatrix/request.rb
CHANGED
@@ -16,47 +16,54 @@ module Unimatrix
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def destroy( path, parameters = {} )
|
19
|
-
|
20
|
-
begin
|
19
|
+
attempt_request do
|
21
20
|
request = Net::HTTP::Delete.new(
|
22
21
|
compose_request_path( path, parameters ),
|
23
22
|
{ 'Content-Type' =>'application/json' }
|
24
23
|
)
|
25
|
-
response = Response.new( @http.request( request ) )
|
26
|
-
rescue Timeout::Error
|
27
|
-
response = nil
|
28
|
-
end
|
29
24
|
|
30
|
-
|
25
|
+
Response.new( @http.request( request ) )
|
26
|
+
end
|
31
27
|
end
|
32
28
|
|
33
29
|
def get( path, parameters = {} )
|
34
|
-
|
35
|
-
|
36
|
-
begin
|
37
|
-
response = Response.new(
|
30
|
+
attempt_request do
|
31
|
+
Response.new(
|
38
32
|
@http.get( compose_request_path( path, parameters ) )
|
39
33
|
)
|
40
|
-
rescue Timeout::Error
|
41
|
-
response = nil
|
42
34
|
end
|
43
|
-
|
44
|
-
response
|
45
35
|
end
|
46
36
|
|
47
37
|
def post( path, parameters = {}, body = {} )
|
48
|
-
|
49
|
-
|
50
|
-
begin
|
38
|
+
attempt_request do
|
51
39
|
request = Net::HTTP::Post.new(
|
52
40
|
compose_request_path( path, parameters ),
|
53
41
|
{ 'Content-Type' =>'application/json' }
|
54
42
|
)
|
55
43
|
request.body = body.to_json
|
56
44
|
|
57
|
-
|
58
|
-
|
59
|
-
|
45
|
+
Response.new( @http.request( request ) )
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
protected; def attempt_request
|
50
|
+
response = nil
|
51
|
+
retry_codes = [ '500', '502', '503', '504' ]
|
52
|
+
|
53
|
+
3.times do
|
54
|
+
response =
|
55
|
+
begin
|
56
|
+
yield
|
57
|
+
rescue Timeout::Error => error
|
58
|
+
error
|
59
|
+
end
|
60
|
+
|
61
|
+
unless response.nil? || ( response.is_a?( Response ) && retry_codes.include?( response.code ) )
|
62
|
+
|
63
|
+
response = nil if response.is_a?( Timeout::Error )
|
64
|
+
|
65
|
+
break
|
66
|
+
end
|
60
67
|
end
|
61
68
|
|
62
69
|
response
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unimatrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jackson Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- lib/unimatrix/alchemist/video_encoding_activity_proxy.rb
|
107
107
|
- lib/unimatrix/alchemist/video_picture_activity_proxy.rb
|
108
108
|
- lib/unimatrix/alchemist/video_rendition.rb
|
109
|
+
- lib/unimatrix/alchemist/video_rendition_interrogation_activity_proxy.rb
|
109
110
|
- lib/unimatrix/alchemist/video_sprite_activity_proxy.rb
|
110
111
|
- lib/unimatrix/alchemist/video_storage_interrogation_picture_activity_proxy.rb
|
111
112
|
- lib/unimatrix/analyst/rule.rb
|
@@ -156,6 +157,7 @@ files:
|
|
156
157
|
- lib/unimatrix/iris/stream_output.rb
|
157
158
|
- lib/unimatrix/iris/stream_recorder.rb
|
158
159
|
- lib/unimatrix/iris/stream_transcriber.rb
|
160
|
+
- lib/unimatrix/iris/stream_transformer.rb
|
159
161
|
- lib/unimatrix/iris/stream_transmutator.rb
|
160
162
|
- lib/unimatrix/malformed_parameter_error.rb
|
161
163
|
- lib/unimatrix/missing_parameter_error.rb
|
@@ -180,6 +182,7 @@ files:
|
|
180
182
|
- lib/unimatrix/zephyrus/transcoding_output.rb
|
181
183
|
- lib/unimatrix/zephyrus/transcoding_rendition.rb
|
182
184
|
- lib/unimatrix/zephyrus/transcribing_output.rb
|
185
|
+
- lib/unimatrix/zephyrus/transformation_output.rb
|
183
186
|
- lib/unimatrix/zephyrus/transmutation_output.rb
|
184
187
|
- lib/unimatrix/zephyrus/transmutation_rendition.rb
|
185
188
|
homepage: http://sportsrocket.com
|
@@ -202,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
205
|
version: '0'
|
203
206
|
requirements: []
|
204
207
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.4.8
|
206
209
|
signing_key:
|
207
210
|
specification_version: 4
|
208
211
|
summary: Unimatrix is used to communicate with Unimatrix APIs.
|