cloudmersive-video-api-client 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AudioApi.md +12 -12
- data/docs/VideoApi.md +12 -12
- data/lib/cloudmersive-video-api-client/api/audio_api.rb +12 -12
- data/lib/cloudmersive-video-api-client/api/video_api.rb +12 -12
- data/lib/cloudmersive-video-api-client/version.rb +1 -1
- data/spec/api/audio_api_spec.rb +4 -4
- data/spec/api/video_api_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d502ccab359667f41967a6b44e55a66de4dbdc5913c524dc6245b730d4ee6949
|
4
|
+
data.tar.gz: 5abf1a44b806bcc59f90c3372e140fbdee2939f016074900211c69e0dadcc5ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50b723e0f31ba0f9de353b55e06d949ac288a116b349c805d1d4bf199a616f57f4b1cdfe7d2d208dfd2eda530ce9169fa98519f0727666e87a2e2d8e76d8ea91
|
7
|
+
data.tar.gz: 7831bd36ecb2ed2226194fedd672fec9675c6d40148e6f00858d8c99a1befe6bcedd8440a01af2dddad21273dc406ab825cc15a9a36738bdb0e5d699878fe60c
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The video APIs help you convert, encode, and transcode videos.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 2.0.
|
10
|
+
- Package version: 2.0.5
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-video-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-video-api-client-2.0.
|
26
|
+
gem install ./cloudmersive-video-api-client-2.0.5.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-video-api-client-2.0.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-video-api-client-2.0.5.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-video-api-client', '~> 2.0.
|
34
|
+
gem 'cloudmersive-video-api-client', '~> 2.0.5'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -67,7 +67,7 @@ api_instance = CloudmersiveVideoApiClient::AudioApi.new
|
|
67
67
|
opts = {
|
68
68
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
69
69
|
file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
70
|
-
bit_rate:
|
70
|
+
bit_rate: 56 # Integer | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
71
71
|
}
|
72
72
|
|
73
73
|
begin
|
data/docs/AudioApi.md
CHANGED
@@ -34,7 +34,7 @@ api_instance = CloudmersiveVideoApiClient::AudioApi.new
|
|
34
34
|
opts = {
|
35
35
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
36
36
|
file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
37
|
-
bit_rate:
|
37
|
+
bit_rate: 56 # Integer | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
38
38
|
}
|
39
39
|
|
40
40
|
begin
|
@@ -52,7 +52,7 @@ Name | Type | Description | Notes
|
|
52
52
|
------------- | ------------- | ------------- | -------------
|
53
53
|
**input_file** | **File**| Input file to perform the operation on. | [optional]
|
54
54
|
**file_url** | **String**| Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB. | [optional]
|
55
|
-
**bit_rate** |
|
55
|
+
**bit_rate** | **Integer**| Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically. | [optional]
|
56
56
|
|
57
57
|
### Return type
|
58
58
|
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
65
65
|
### HTTP request headers
|
66
66
|
|
67
67
|
- **Content-Type**: multipart/form-data
|
68
|
-
- **Accept**: application/
|
68
|
+
- **Accept**: application/octet-stream
|
69
69
|
|
70
70
|
|
71
71
|
|
@@ -93,7 +93,7 @@ api_instance = CloudmersiveVideoApiClient::AudioApi.new
|
|
93
93
|
opts = {
|
94
94
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
95
95
|
file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
96
|
-
bit_rate:
|
96
|
+
bit_rate: 56 # Integer | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
97
97
|
}
|
98
98
|
|
99
99
|
begin
|
@@ -111,7 +111,7 @@ Name | Type | Description | Notes
|
|
111
111
|
------------- | ------------- | ------------- | -------------
|
112
112
|
**input_file** | **File**| Input file to perform the operation on. | [optional]
|
113
113
|
**file_url** | **String**| Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB. | [optional]
|
114
|
-
**bit_rate** |
|
114
|
+
**bit_rate** | **Integer**| Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically. | [optional]
|
115
115
|
|
116
116
|
### Return type
|
117
117
|
|
@@ -124,7 +124,7 @@ Name | Type | Description | Notes
|
|
124
124
|
### HTTP request headers
|
125
125
|
|
126
126
|
- **Content-Type**: multipart/form-data
|
127
|
-
- **Accept**: application/
|
127
|
+
- **Accept**: application/octet-stream
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -152,7 +152,7 @@ api_instance = CloudmersiveVideoApiClient::AudioApi.new
|
|
152
152
|
opts = {
|
153
153
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
154
154
|
file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
155
|
-
bit_rate:
|
155
|
+
bit_rate: 56 # Integer | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
156
156
|
}
|
157
157
|
|
158
158
|
begin
|
@@ -170,7 +170,7 @@ Name | Type | Description | Notes
|
|
170
170
|
------------- | ------------- | ------------- | -------------
|
171
171
|
**input_file** | **File**| Input file to perform the operation on. | [optional]
|
172
172
|
**file_url** | **String**| Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB. | [optional]
|
173
|
-
**bit_rate** |
|
173
|
+
**bit_rate** | **Integer**| Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically. | [optional]
|
174
174
|
|
175
175
|
### Return type
|
176
176
|
|
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
|
|
183
183
|
### HTTP request headers
|
184
184
|
|
185
185
|
- **Content-Type**: multipart/form-data
|
186
|
-
- **Accept**: application/
|
186
|
+
- **Accept**: application/octet-stream
|
187
187
|
|
188
188
|
|
189
189
|
|
@@ -211,7 +211,7 @@ api_instance = CloudmersiveVideoApiClient::AudioApi.new
|
|
211
211
|
opts = {
|
212
212
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
213
213
|
file_url: 'file_url_example', # String | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
214
|
-
sample_rate:
|
214
|
+
sample_rate: 8.14 # Float | Optional; Specify the desired sample rate of the converted audio file in kHz. Value may be between 8 and 96. Standard for audio CDs is 44.1, while DVD audio standard is 48. By default, the optimal sample rate will be chosen automatically.
|
215
215
|
}
|
216
216
|
|
217
217
|
begin
|
@@ -229,7 +229,7 @@ Name | Type | Description | Notes
|
|
229
229
|
------------- | ------------- | ------------- | -------------
|
230
230
|
**input_file** | **File**| Input file to perform the operation on. | [optional]
|
231
231
|
**file_url** | **String**| Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB. | [optional]
|
232
|
-
**sample_rate** |
|
232
|
+
**sample_rate** | **Float**| Optional; Specify the desired sample rate of the converted audio file in kHz. Value may be between 8 and 96. Standard for audio CDs is 44.1, while DVD audio standard is 48. By default, the optimal sample rate will be chosen automatically. | [optional]
|
233
233
|
|
234
234
|
### Return type
|
235
235
|
|
@@ -242,7 +242,7 @@ Name | Type | Description | Notes
|
|
242
242
|
### HTTP request headers
|
243
243
|
|
244
244
|
- **Content-Type**: multipart/form-data
|
245
|
-
- **Accept**: application/
|
245
|
+
- **Accept**: application/octet-stream
|
246
246
|
|
247
247
|
|
248
248
|
|
data/docs/VideoApi.md
CHANGED
@@ -82,7 +82,7 @@ Name | Type | Description | Notes
|
|
82
82
|
### HTTP request headers
|
83
83
|
|
84
84
|
- **Content-Type**: multipart/form-data
|
85
|
-
- **Accept**: application/
|
85
|
+
- **Accept**: application/octet-stream
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -149,7 +149,7 @@ Name | Type | Description | Notes
|
|
149
149
|
### HTTP request headers
|
150
150
|
|
151
151
|
- **Content-Type**: multipart/form-data
|
152
|
-
- **Accept**: application/
|
152
|
+
- **Accept**: application/octet-stream
|
153
153
|
|
154
154
|
|
155
155
|
|
@@ -216,7 +216,7 @@ Name | Type | Description | Notes
|
|
216
216
|
### HTTP request headers
|
217
217
|
|
218
218
|
- **Content-Type**: multipart/form-data
|
219
|
-
- **Accept**: application/
|
219
|
+
- **Accept**: application/octet-stream
|
220
220
|
|
221
221
|
|
222
222
|
|
@@ -246,7 +246,7 @@ opts = {
|
|
246
246
|
file_url: 'file_url_example', # String | Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
|
247
247
|
max_width: 56, # Integer | Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
|
248
248
|
max_height: 56, # Integer | Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
|
249
|
-
frames_per_second:
|
249
|
+
frames_per_second: 8.14 # Float | Optional; How many video frames per second to be returned as PNG images. Minimum value is 0.1, maximum is 60. Default is 1 frame per second. Maximum of 2000 total frames.
|
250
250
|
}
|
251
251
|
|
252
252
|
begin
|
@@ -266,7 +266,7 @@ Name | Type | Description | Notes
|
|
266
266
|
**file_url** | **String**| Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB. | [optional]
|
267
267
|
**max_width** | **Integer**| Optional; Maximum width of the output video, up to the original video width. Defaults to original video width. | [optional]
|
268
268
|
**max_height** | **Integer**| Optional; Maximum height of the output video, up to the original video width. Defaults to original video height. | [optional]
|
269
|
-
**frames_per_second** |
|
269
|
+
**frames_per_second** | **Float**| Optional; How many video frames per second to be returned as PNG images. Minimum value is 0.1, maximum is 60. Default is 1 frame per second. Maximum of 2000 total frames. | [optional]
|
270
270
|
|
271
271
|
### Return type
|
272
272
|
|
@@ -346,7 +346,7 @@ Name | Type | Description | Notes
|
|
346
346
|
### HTTP request headers
|
347
347
|
|
348
348
|
- **Content-Type**: multipart/form-data
|
349
|
-
- **Accept**: application/
|
349
|
+
- **Accept**: application/octet-stream
|
350
350
|
|
351
351
|
|
352
352
|
|
@@ -407,7 +407,7 @@ Name | Type | Description | Notes
|
|
407
407
|
### HTTP request headers
|
408
408
|
|
409
409
|
- **Content-Type**: multipart/form-data
|
410
|
-
- **Accept**: application/
|
410
|
+
- **Accept**: application/octet-stream
|
411
411
|
|
412
412
|
|
413
413
|
|
@@ -531,7 +531,7 @@ Name | Type | Description | Notes
|
|
531
531
|
### HTTP request headers
|
532
532
|
|
533
533
|
- **Content-Type**: multipart/form-data
|
534
|
-
- **Accept**: application/
|
534
|
+
- **Accept**: application/octet-stream
|
535
535
|
|
536
536
|
|
537
537
|
|
@@ -598,7 +598,7 @@ Name | Type | Description | Notes
|
|
598
598
|
### HTTP request headers
|
599
599
|
|
600
600
|
- **Content-Type**: multipart/form-data
|
601
|
-
- **Accept**: application/
|
601
|
+
- **Accept**: application/octet-stream
|
602
602
|
|
603
603
|
|
604
604
|
|
@@ -626,7 +626,7 @@ api_instance = CloudmersiveVideoApiClient::VideoApi.new
|
|
626
626
|
opts = {
|
627
627
|
input_file: File.new('/path/to/file.txt'), # File | Input file to perform the operation on.
|
628
628
|
file_url: 'file_url_example', # String | Optional; URL of a video file being scanned. Use this option for files larger than 2GB.
|
629
|
-
frames_per_second:
|
629
|
+
frames_per_second: 8.14 # Float | Optional; How many video frames per second to be scanned. Minimum value is 0.05 (1 frame per 20 seconds), maximum is 1. Default is 0.33 frame per second (1 frame scanned every 3 seconds). Maximum of 1000 total frames can be scanned, potentially adjusting the framerate for longer videos.
|
630
630
|
}
|
631
631
|
|
632
632
|
begin
|
@@ -644,7 +644,7 @@ Name | Type | Description | Notes
|
|
644
644
|
------------- | ------------- | ------------- | -------------
|
645
645
|
**input_file** | **File**| Input file to perform the operation on. | [optional]
|
646
646
|
**file_url** | **String**| Optional; URL of a video file being scanned. Use this option for files larger than 2GB. | [optional]
|
647
|
-
**frames_per_second** |
|
647
|
+
**frames_per_second** | **Float**| Optional; How many video frames per second to be scanned. Minimum value is 0.05 (1 frame per 20 seconds), maximum is 1. Default is 0.33 frame per second (1 frame scanned every 3 seconds). Maximum of 1000 total frames can be scanned, potentially adjusting the framerate for longer videos. | [optional]
|
648
648
|
|
649
649
|
### Return type
|
650
650
|
|
@@ -719,7 +719,7 @@ Name | Type | Description | Notes
|
|
719
719
|
### HTTP request headers
|
720
720
|
|
721
721
|
- **Content-Type**: multipart/form-data
|
722
|
-
- **Accept**: application/
|
722
|
+
- **Accept**: application/octet-stream
|
723
723
|
|
724
724
|
|
725
725
|
|
@@ -24,7 +24,7 @@ module CloudmersiveVideoApiClient
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [File] :input_file Input file to perform the operation on.
|
26
26
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
27
|
-
# @option opts [
|
27
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
28
28
|
# @return [String]
|
29
29
|
def audio_convert_to_aac(opts = {})
|
30
30
|
data, _status_code, _headers = audio_convert_to_aac_with_http_info(opts)
|
@@ -36,7 +36,7 @@ module CloudmersiveVideoApiClient
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [File] :input_file Input file to perform the operation on.
|
38
38
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
39
|
-
# @option opts [
|
39
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
40
40
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
41
41
|
def audio_convert_to_aac_with_http_info(opts = {})
|
42
42
|
if @api_client.config.debugging
|
@@ -51,7 +51,7 @@ module CloudmersiveVideoApiClient
|
|
51
51
|
# header parameters
|
52
52
|
header_params = {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
55
55
|
# HTTP header 'Content-Type'
|
56
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
57
57
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -81,7 +81,7 @@ module CloudmersiveVideoApiClient
|
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @option opts [File] :input_file Input file to perform the operation on.
|
83
83
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
84
|
-
# @option opts [
|
84
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
85
85
|
# @return [String]
|
86
86
|
def audio_convert_to_m4a(opts = {})
|
87
87
|
data, _status_code, _headers = audio_convert_to_m4a_with_http_info(opts)
|
@@ -93,7 +93,7 @@ module CloudmersiveVideoApiClient
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [File] :input_file Input file to perform the operation on.
|
95
95
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
96
|
-
# @option opts [
|
96
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
97
97
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
98
98
|
def audio_convert_to_m4a_with_http_info(opts = {})
|
99
99
|
if @api_client.config.debugging
|
@@ -108,7 +108,7 @@ module CloudmersiveVideoApiClient
|
|
108
108
|
# header parameters
|
109
109
|
header_params = {}
|
110
110
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
112
112
|
# HTTP header 'Content-Type'
|
113
113
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
114
114
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -138,7 +138,7 @@ module CloudmersiveVideoApiClient
|
|
138
138
|
# @param [Hash] opts the optional parameters
|
139
139
|
# @option opts [File] :input_file Input file to perform the operation on.
|
140
140
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
141
|
-
# @option opts [
|
141
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
142
142
|
# @return [String]
|
143
143
|
def audio_convert_to_mp3(opts = {})
|
144
144
|
data, _status_code, _headers = audio_convert_to_mp3_with_http_info(opts)
|
@@ -150,7 +150,7 @@ module CloudmersiveVideoApiClient
|
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [File] :input_file Input file to perform the operation on.
|
152
152
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
153
|
-
# @option opts [
|
153
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
154
154
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
155
155
|
def audio_convert_to_mp3_with_http_info(opts = {})
|
156
156
|
if @api_client.config.debugging
|
@@ -165,7 +165,7 @@ module CloudmersiveVideoApiClient
|
|
165
165
|
# header parameters
|
166
166
|
header_params = {}
|
167
167
|
# HTTP header 'Accept' (if needed)
|
168
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
169
169
|
# HTTP header 'Content-Type'
|
170
170
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
171
171
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -195,7 +195,7 @@ module CloudmersiveVideoApiClient
|
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
196
|
# @option opts [File] :input_file Input file to perform the operation on.
|
197
197
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
198
|
-
# @option opts [
|
198
|
+
# @option opts [Float] :sample_rate Optional; Specify the desired sample rate of the converted audio file in kHz. Value may be between 8 and 96. Standard for audio CDs is 44.1, while DVD audio standard is 48. By default, the optimal sample rate will be chosen automatically.
|
199
199
|
# @return [String]
|
200
200
|
def audio_convert_to_wav(opts = {})
|
201
201
|
data, _status_code, _headers = audio_convert_to_wav_with_http_info(opts)
|
@@ -207,7 +207,7 @@ module CloudmersiveVideoApiClient
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
208
208
|
# @option opts [File] :input_file Input file to perform the operation on.
|
209
209
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
210
|
-
# @option opts [
|
210
|
+
# @option opts [Float] :sample_rate Optional; Specify the desired sample rate of the converted audio file in kHz. Value may be between 8 and 96. Standard for audio CDs is 44.1, while DVD audio standard is 48. By default, the optimal sample rate will be chosen automatically.
|
211
211
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
212
212
|
def audio_convert_to_wav_with_http_info(opts = {})
|
213
213
|
if @api_client.config.debugging
|
@@ -222,7 +222,7 @@ module CloudmersiveVideoApiClient
|
|
222
222
|
# header parameters
|
223
223
|
header_params = {}
|
224
224
|
# HTTP header 'Accept' (if needed)
|
225
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
226
226
|
# HTTP header 'Content-Type'
|
227
227
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
228
228
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -61,7 +61,7 @@ module CloudmersiveVideoApiClient
|
|
61
61
|
# header parameters
|
62
62
|
header_params = {}
|
63
63
|
# HTTP header 'Accept' (if needed)
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
65
65
|
# HTTP header 'Content-Type'
|
66
66
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
67
67
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -131,7 +131,7 @@ module CloudmersiveVideoApiClient
|
|
131
131
|
# header parameters
|
132
132
|
header_params = {}
|
133
133
|
# HTTP header 'Accept' (if needed)
|
134
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
135
135
|
# HTTP header 'Content-Type'
|
136
136
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
137
137
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -200,7 +200,7 @@ module CloudmersiveVideoApiClient
|
|
200
200
|
# header parameters
|
201
201
|
header_params = {}
|
202
202
|
# HTTP header 'Accept' (if needed)
|
203
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
203
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
204
204
|
# HTTP header 'Content-Type'
|
205
205
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
206
206
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -236,7 +236,7 @@ module CloudmersiveVideoApiClient
|
|
236
236
|
# @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
|
237
237
|
# @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
|
238
238
|
# @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
|
239
|
-
# @option opts [
|
239
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be returned as PNG images. Minimum value is 0.1, maximum is 60. Default is 1 frame per second. Maximum of 2000 total frames.
|
240
240
|
# @return [StillFramesResult]
|
241
241
|
def video_convert_to_still_frames(opts = {})
|
242
242
|
data, _status_code, _headers = video_convert_to_still_frames_with_http_info(opts)
|
@@ -250,7 +250,7 @@ module CloudmersiveVideoApiClient
|
|
250
250
|
# @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
|
251
251
|
# @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
|
252
252
|
# @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
|
253
|
-
# @option opts [
|
253
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be returned as PNG images. Minimum value is 0.1, maximum is 60. Default is 1 frame per second. Maximum of 2000 total frames.
|
254
254
|
# @return [Array<(StillFramesResult, Fixnum, Hash)>] StillFramesResult data, response status code and response headers
|
255
255
|
def video_convert_to_still_frames_with_http_info(opts = {})
|
256
256
|
if @api_client.config.debugging
|
@@ -332,7 +332,7 @@ module CloudmersiveVideoApiClient
|
|
332
332
|
# header parameters
|
333
333
|
header_params = {}
|
334
334
|
# HTTP header 'Accept' (if needed)
|
335
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
336
336
|
# HTTP header 'Content-Type'
|
337
337
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
338
338
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -395,7 +395,7 @@ module CloudmersiveVideoApiClient
|
|
395
395
|
# header parameters
|
396
396
|
header_params = {}
|
397
397
|
# HTTP header 'Accept' (if needed)
|
398
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
399
399
|
# HTTP header 'Content-Type'
|
400
400
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
401
401
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -515,7 +515,7 @@ module CloudmersiveVideoApiClient
|
|
515
515
|
# header parameters
|
516
516
|
header_params = {}
|
517
517
|
# HTTP header 'Accept' (if needed)
|
518
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
518
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
519
519
|
# HTTP header 'Content-Type'
|
520
520
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
521
521
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -584,7 +584,7 @@ module CloudmersiveVideoApiClient
|
|
584
584
|
# header parameters
|
585
585
|
header_params = {}
|
586
586
|
# HTTP header 'Accept' (if needed)
|
587
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
587
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
588
588
|
# HTTP header 'Content-Type'
|
589
589
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
590
590
|
header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -618,7 +618,7 @@ module CloudmersiveVideoApiClient
|
|
618
618
|
# @param [Hash] opts the optional parameters
|
619
619
|
# @option opts [File] :input_file Input file to perform the operation on.
|
620
620
|
# @option opts [String] :file_url Optional; URL of a video file being scanned. Use this option for files larger than 2GB.
|
621
|
-
# @option opts [
|
621
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be scanned. Minimum value is 0.05 (1 frame per 20 seconds), maximum is 1. Default is 0.33 frame per second (1 frame scanned every 3 seconds). Maximum of 1000 total frames can be scanned, potentially adjusting the framerate for longer videos.
|
622
622
|
# @return [NsfwResult]
|
623
623
|
def video_scan_for_nsfw(opts = {})
|
624
624
|
data, _status_code, _headers = video_scan_for_nsfw_with_http_info(opts)
|
@@ -630,7 +630,7 @@ module CloudmersiveVideoApiClient
|
|
630
630
|
# @param [Hash] opts the optional parameters
|
631
631
|
# @option opts [File] :input_file Input file to perform the operation on.
|
632
632
|
# @option opts [String] :file_url Optional; URL of a video file being scanned. Use this option for files larger than 2GB.
|
633
|
-
# @option opts [
|
633
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be scanned. Minimum value is 0.05 (1 frame per 20 seconds), maximum is 1. Default is 0.33 frame per second (1 frame scanned every 3 seconds). Maximum of 1000 total frames can be scanned, potentially adjusting the framerate for longer videos.
|
634
634
|
# @return [Array<(NsfwResult, Fixnum, Hash)>] NsfwResult data, response status code and response headers
|
635
635
|
def video_scan_for_nsfw_with_http_info(opts = {})
|
636
636
|
if @api_client.config.debugging
|
@@ -708,7 +708,7 @@ module CloudmersiveVideoApiClient
|
|
708
708
|
# header parameters
|
709
709
|
header_params = {}
|
710
710
|
# HTTP header 'Accept' (if needed)
|
711
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
711
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
712
712
|
# HTTP header 'Content-Type'
|
713
713
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
714
714
|
header_params[:'splitTime'] = split_time
|
data/spec/api/audio_api_spec.rb
CHANGED
@@ -38,7 +38,7 @@ describe 'AudioApi' do
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [File] :input_file Input file to perform the operation on.
|
40
40
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
41
|
-
# @option opts [
|
41
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
42
42
|
# @return [String]
|
43
43
|
describe 'audio_convert_to_aac test' do
|
44
44
|
it 'should work' do
|
@@ -52,7 +52,7 @@ describe 'AudioApi' do
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
53
|
# @option opts [File] :input_file Input file to perform the operation on.
|
54
54
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
55
|
-
# @option opts [
|
55
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
56
56
|
# @return [String]
|
57
57
|
describe 'audio_convert_to_m4a test' do
|
58
58
|
it 'should work' do
|
@@ -66,7 +66,7 @@ describe 'AudioApi' do
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
67
|
# @option opts [File] :input_file Input file to perform the operation on.
|
68
68
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
69
|
-
# @option opts [
|
69
|
+
# @option opts [Integer] :bit_rate Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically.
|
70
70
|
# @return [String]
|
71
71
|
describe 'audio_convert_to_mp3 test' do
|
72
72
|
it 'should work' do
|
@@ -80,7 +80,7 @@ describe 'AudioApi' do
|
|
80
80
|
# @param [Hash] opts the optional parameters
|
81
81
|
# @option opts [File] :input_file Input file to perform the operation on.
|
82
82
|
# @option opts [String] :file_url Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB.
|
83
|
-
# @option opts [
|
83
|
+
# @option opts [Float] :sample_rate Optional; Specify the desired sample rate of the converted audio file in kHz. Value may be between 8 and 96. Standard for audio CDs is 44.1, while DVD audio standard is 48. By default, the optimal sample rate will be chosen automatically.
|
84
84
|
# @return [String]
|
85
85
|
describe 'audio_convert_to_wav test' do
|
86
86
|
it 'should work' do
|
data/spec/api/video_api_spec.rb
CHANGED
@@ -95,7 +95,7 @@ describe 'VideoApi' do
|
|
95
95
|
# @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
|
96
96
|
# @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
|
97
97
|
# @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
|
98
|
-
# @option opts [
|
98
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be returned as PNG images. Minimum value is 0.1, maximum is 60. Default is 1 frame per second. Maximum of 2000 total frames.
|
99
99
|
# @return [StillFramesResult]
|
100
100
|
describe 'video_convert_to_still_frames test' do
|
101
101
|
it 'should work' do
|
@@ -191,7 +191,7 @@ describe 'VideoApi' do
|
|
191
191
|
# @param [Hash] opts the optional parameters
|
192
192
|
# @option opts [File] :input_file Input file to perform the operation on.
|
193
193
|
# @option opts [String] :file_url Optional; URL of a video file being scanned. Use this option for files larger than 2GB.
|
194
|
-
# @option opts [
|
194
|
+
# @option opts [Float] :frames_per_second Optional; How many video frames per second to be scanned. Minimum value is 0.05 (1 frame per 20 seconds), maximum is 1. Default is 0.33 frame per second (1 frame scanned every 3 seconds). Maximum of 1000 total frames can be scanned, potentially adjusting the framerate for longer videos.
|
195
195
|
# @return [NsfwResult]
|
196
196
|
describe 'video_scan_for_nsfw test' do
|
197
197
|
it 'should work' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-video-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|