cloudmersive-video-api-client 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ # CloudmersiveVideoApiClient::VideoFile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **video_number** | **Integer** | Sequence number of the video | [optional]
7
+ **content** | **String** | The video file as a byte array | [optional]
8
+
9
+
@@ -18,8 +18,15 @@ require 'cloudmersive-video-api-client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'cloudmersive-video-api-client/models/media_information'
21
+ require 'cloudmersive-video-api-client/models/nsfw_result'
22
+ require 'cloudmersive-video-api-client/models/nsfw_scanned_frame'
23
+ require 'cloudmersive-video-api-client/models/split_video_result'
24
+ require 'cloudmersive-video-api-client/models/still_frame'
25
+ require 'cloudmersive-video-api-client/models/still_frames_result'
26
+ require 'cloudmersive-video-api-client/models/video_file'
21
27
 
22
28
  # APIs
29
+ require 'cloudmersive-video-api-client/api/audio_api'
23
30
  require 'cloudmersive-video-api-client/api/video_api'
24
31
 
25
32
  module CloudmersiveVideoApiClient
@@ -0,0 +1,251 @@
1
+ =begin
2
+ #videoapi
3
+
4
+ #The video APIs help you convert, encode, and transcode videos.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CloudmersiveVideoApiClient
16
+ class AudioApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Convert Audio File to AAC format.
23
+ # Automatically detect audio file format and convert it to AAC format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [String]
29
+ def audio_convert_to_aac(opts = {})
30
+ data, _status_code, _headers = audio_convert_to_aac_with_http_info(opts)
31
+ data
32
+ end
33
+
34
+ # Convert Audio File to AAC format.
35
+ # Automatically detect audio file format and convert it to AAC format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
41
+ def audio_convert_to_aac_with_http_info(opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: AudioApi.audio_convert_to_aac ...'
44
+ end
45
+ # resource path
46
+ local_var_path = '/audio/convert/to/aac'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
57
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
58
+ header_params[:'bitRate'] = opts[:'bit_rate'] if !opts[:'bit_rate'].nil?
59
+
60
+ # form parameters
61
+ form_params = {}
62
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
63
+
64
+ # http body (model)
65
+ post_body = nil
66
+ auth_names = ['Apikey']
67
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => 'String')
74
+ if @api_client.config.debugging
75
+ @api_client.config.logger.debug "API called: AudioApi#audio_convert_to_aac\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
76
+ end
77
+ return data, status_code, headers
78
+ end
79
+ # Convert Audio File to M4A format.
80
+ # Automatically detect audio file format and convert it to M4A format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [String]
86
+ def audio_convert_to_m4a(opts = {})
87
+ data, _status_code, _headers = audio_convert_to_m4a_with_http_info(opts)
88
+ data
89
+ end
90
+
91
+ # Convert Audio File to M4A format.
92
+ # Automatically detect audio file format and convert it to M4A format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
98
+ def audio_convert_to_m4a_with_http_info(opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: AudioApi.audio_convert_to_m4a ...'
101
+ end
102
+ # resource path
103
+ local_var_path = '/audio/convert/to/m4a'
104
+
105
+ # query parameters
106
+ query_params = {}
107
+
108
+ # header parameters
109
+ header_params = {}
110
+ # HTTP header 'Accept' (if needed)
111
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
112
+ # HTTP header 'Content-Type'
113
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
114
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
115
+ header_params[:'bitRate'] = opts[:'bit_rate'] if !opts[:'bit_rate'].nil?
116
+
117
+ # form parameters
118
+ form_params = {}
119
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
120
+
121
+ # http body (model)
122
+ post_body = nil
123
+ auth_names = ['Apikey']
124
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => 'String')
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug "API called: AudioApi#audio_convert_to_m4a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ end
134
+ return data, status_code, headers
135
+ end
136
+ # Convert Audio File to MP3 format.
137
+ # Automatically detect audio file format and convert it to MP3 format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
138
+ # @param [Hash] opts the optional parameters
139
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [String]
143
+ def audio_convert_to_mp3(opts = {})
144
+ data, _status_code, _headers = audio_convert_to_mp3_with_http_info(opts)
145
+ data
146
+ end
147
+
148
+ # Convert Audio File to MP3 format.
149
+ # Automatically detect audio file format and convert it to MP3 format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
155
+ def audio_convert_to_mp3_with_http_info(opts = {})
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug 'Calling API: AudioApi.audio_convert_to_mp3 ...'
158
+ end
159
+ # resource path
160
+ local_var_path = '/audio/convert/to/mp3'
161
+
162
+ # query parameters
163
+ query_params = {}
164
+
165
+ # header parameters
166
+ header_params = {}
167
+ # HTTP header 'Accept' (if needed)
168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
169
+ # HTTP header 'Content-Type'
170
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
171
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
172
+ header_params[:'bitRate'] = opts[:'bit_rate'] if !opts[:'bit_rate'].nil?
173
+
174
+ # form parameters
175
+ form_params = {}
176
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
177
+
178
+ # http body (model)
179
+ post_body = nil
180
+ auth_names = ['Apikey']
181
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
182
+ :header_params => header_params,
183
+ :query_params => query_params,
184
+ :form_params => form_params,
185
+ :body => post_body,
186
+ :auth_names => auth_names,
187
+ :return_type => 'String')
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug "API called: AudioApi#audio_convert_to_mp3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
+ end
191
+ return data, status_code, headers
192
+ end
193
+ # Convert Audio File to WAV format.
194
+ # Automatically detect audio file format and convert it to WAV format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
195
+ # @param [Hash] opts the optional parameters
196
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [String]
200
+ def audio_convert_to_wav(opts = {})
201
+ data, _status_code, _headers = audio_convert_to_wav_with_http_info(opts)
202
+ data
203
+ end
204
+
205
+ # Convert Audio File to WAV format.
206
+ # Automatically detect audio file format and convert it to WAV format. Supports many input audio formats, including AAC, FLAC, M4A, MP2, MP3, OGG, WMA, and WAV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
207
+ # @param [Hash] opts the optional parameters
208
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
212
+ def audio_convert_to_wav_with_http_info(opts = {})
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug 'Calling API: AudioApi.audio_convert_to_wav ...'
215
+ end
216
+ # resource path
217
+ local_var_path = '/audio/convert/to/wav'
218
+
219
+ # query parameters
220
+ query_params = {}
221
+
222
+ # header parameters
223
+ header_params = {}
224
+ # HTTP header 'Accept' (if needed)
225
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
226
+ # HTTP header 'Content-Type'
227
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
228
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
229
+ header_params[:'sampleRate'] = opts[:'sample_rate'] if !opts[:'sample_rate'].nil?
230
+
231
+ # form parameters
232
+ form_params = {}
233
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = ['Apikey']
238
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'String')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: AudioApi#audio_convert_to_wav\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+ end
251
+ end
@@ -20,44 +20,38 @@ module CloudmersiveVideoApiClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Convert Video to Animated GIF format.
23
- # Automatically detect video file format and convert it to animated GIF format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB. Default height is 250 pixels, while preserving the video's aspect ratio.
24
- # @param input_file Input file to perform the operation on.
23
+ # Automatically detect video file format and convert it to animated GIF format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB. Default height is 250 pixels, while preserving the video's aspect ratio.
25
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [File] :input_file Input file to perform the operation on.
26
26
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
27
- # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to 250 pixels.
28
- # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to 250 pixels.
27
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to 250 pixels, maximum is 500 pixels.
28
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to 250 pixels, maximum is 500 pixels.
29
29
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
30
30
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to 24 frames per second.
31
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
32
31
  # @option opts [DateTime] :start_time Optional; Specify the desired starting time of the GIF video in TimeSpan format.
33
- # @option opts [DateTime] :time_span Optional; Specify the desired length of the GIF video in TimeSpan format. Limit is 30 minutes.
32
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the GIF video in TimeSpan format. Limit is 30 seconds. Default is 10 seconds.
34
33
  # @return [String]
35
- def video_convert_to_gif(input_file, opts = {})
36
- data, _status_code, _headers = video_convert_to_gif_with_http_info(input_file, opts)
34
+ def video_convert_to_gif(opts = {})
35
+ data, _status_code, _headers = video_convert_to_gif_with_http_info(opts)
37
36
  data
38
37
  end
39
38
 
40
39
  # Convert Video to Animated GIF format.
41
- # Automatically detect video file format and convert it to animated GIF format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB. Default height is 250 pixels, while preserving the video&#39;s aspect ratio.
42
- # @param input_file Input file to perform the operation on.
40
+ # Automatically detect video file format and convert it to animated GIF format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB. Default height is 250 pixels, while preserving the video&#39;s aspect ratio.
43
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [File] :input_file Input file to perform the operation on.
44
43
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
45
- # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to 250 pixels.
46
- # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to 250 pixels.
44
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to 250 pixels, maximum is 500 pixels.
45
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to 250 pixels, maximum is 500 pixels.
47
46
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
48
47
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to 24 frames per second.
49
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
50
48
  # @option opts [DateTime] :start_time Optional; Specify the desired starting time of the GIF video in TimeSpan format.
51
- # @option opts [DateTime] :time_span Optional; Specify the desired length of the GIF video in TimeSpan format. Limit is 30 minutes.
49
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the GIF video in TimeSpan format. Limit is 30 seconds. Default is 10 seconds.
52
50
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
53
- def video_convert_to_gif_with_http_info(input_file, opts = {})
51
+ def video_convert_to_gif_with_http_info(opts = {})
54
52
  if @api_client.config.debugging
55
53
  @api_client.config.logger.debug 'Calling API: VideoApi.video_convert_to_gif ...'
56
54
  end
57
- # verify the required parameter 'input_file' is set
58
- if @api_client.config.client_side_validation && input_file.nil?
59
- fail ArgumentError, "Missing the required parameter 'input_file' when calling VideoApi.video_convert_to_gif"
60
- end
61
55
  # resource path
62
56
  local_var_path = '/video/convert/to/gif'
63
57
 
@@ -75,13 +69,12 @@ module CloudmersiveVideoApiClient
75
69
  header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
76
70
  header_params[:'preserveAspectRatio'] = opts[:'preserve_aspect_ratio'] if !opts[:'preserve_aspect_ratio'].nil?
77
71
  header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
78
- header_params[:'extendProcessingTime'] = opts[:'extend_processing_time'] if !opts[:'extend_processing_time'].nil?
79
72
  header_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
80
73
  header_params[:'timeSpan'] = opts[:'time_span'] if !opts[:'time_span'].nil?
81
74
 
82
75
  # form parameters
83
76
  form_params = {}
84
- form_params['inputFile'] = input_file
77
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
85
78
 
86
79
  # http body (model)
87
80
  post_body = nil
@@ -99,42 +92,36 @@ module CloudmersiveVideoApiClient
99
92
  return data, status_code, headers
100
93
  end
101
94
  # Convert Video to MOV format.
102
- # Automatically detect video file format and convert it to MOV format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
103
- # @param input_file Input file to perform the operation on.
95
+ # Automatically detect video file format and convert it to MOV format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
104
96
  # @param [Hash] opts the optional parameters
97
+ # @option opts [File] :input_file Input file to perform the operation on.
105
98
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
106
99
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
107
100
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
108
101
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
109
102
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
110
103
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
111
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
112
104
  # @return [String]
113
- def video_convert_to_mov(input_file, opts = {})
114
- data, _status_code, _headers = video_convert_to_mov_with_http_info(input_file, opts)
105
+ def video_convert_to_mov(opts = {})
106
+ data, _status_code, _headers = video_convert_to_mov_with_http_info(opts)
115
107
  data
116
108
  end
117
109
 
118
110
  # Convert Video to MOV format.
119
- # Automatically detect video file format and convert it to MOV format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
120
- # @param input_file Input file to perform the operation on.
111
+ # Automatically detect video file format and convert it to MOV format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
121
112
  # @param [Hash] opts the optional parameters
113
+ # @option opts [File] :input_file Input file to perform the operation on.
122
114
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
123
115
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
124
116
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
125
117
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
126
118
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
127
119
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
128
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
129
120
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
130
- def video_convert_to_mov_with_http_info(input_file, opts = {})
121
+ def video_convert_to_mov_with_http_info(opts = {})
131
122
  if @api_client.config.debugging
132
123
  @api_client.config.logger.debug 'Calling API: VideoApi.video_convert_to_mov ...'
133
124
  end
134
- # verify the required parameter 'input_file' is set
135
- if @api_client.config.client_side_validation && input_file.nil?
136
- fail ArgumentError, "Missing the required parameter 'input_file' when calling VideoApi.video_convert_to_mov"
137
- end
138
125
  # resource path
139
126
  local_var_path = '/video/convert/to/mov'
140
127
 
@@ -153,11 +140,10 @@ module CloudmersiveVideoApiClient
153
140
  header_params[:'preserveAspectRatio'] = opts[:'preserve_aspect_ratio'] if !opts[:'preserve_aspect_ratio'].nil?
154
141
  header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
155
142
  header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
156
- header_params[:'extendProcessingTime'] = opts[:'extend_processing_time'] if !opts[:'extend_processing_time'].nil?
157
143
 
158
144
  # form parameters
159
145
  form_params = {}
160
- form_params['inputFile'] = input_file
146
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
161
147
 
162
148
  # http body (model)
163
149
  post_body = nil
@@ -175,42 +161,36 @@ module CloudmersiveVideoApiClient
175
161
  return data, status_code, headers
176
162
  end
177
163
  # Convert Video to MP4 format.
178
- # Automatically detect video file format and convert it to MP4 format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
179
- # @param input_file Input file to perform the operation on.
164
+ # Automatically detect video file format and convert it to MP4 format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
180
165
  # @param [Hash] opts the optional parameters
166
+ # @option opts [File] :input_file Input file to perform the operation on.
181
167
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
182
168
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
183
169
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
184
170
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
185
171
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
186
172
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
187
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
188
173
  # @return [String]
189
- def video_convert_to_mp4(input_file, opts = {})
190
- data, _status_code, _headers = video_convert_to_mp4_with_http_info(input_file, opts)
174
+ def video_convert_to_mp4(opts = {})
175
+ data, _status_code, _headers = video_convert_to_mp4_with_http_info(opts)
191
176
  data
192
177
  end
193
178
 
194
179
  # Convert Video to MP4 format.
195
- # Automatically detect video file format and convert it to MP4 format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
196
- # @param input_file Input file to perform the operation on.
180
+ # Automatically detect video file format and convert it to MP4 format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
197
181
  # @param [Hash] opts the optional parameters
182
+ # @option opts [File] :input_file Input file to perform the operation on.
198
183
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
199
184
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
200
185
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
201
186
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
202
187
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
203
188
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
204
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
205
189
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
206
- def video_convert_to_mp4_with_http_info(input_file, opts = {})
190
+ def video_convert_to_mp4_with_http_info(opts = {})
207
191
  if @api_client.config.debugging
208
192
  @api_client.config.logger.debug 'Calling API: VideoApi.video_convert_to_mp4 ...'
209
193
  end
210
- # verify the required parameter 'input_file' is set
211
- if @api_client.config.client_side_validation && input_file.nil?
212
- fail ArgumentError, "Missing the required parameter 'input_file' when calling VideoApi.video_convert_to_mp4"
213
- end
214
194
  # resource path
215
195
  local_var_path = '/video/convert/to/mp4'
216
196
 
@@ -229,11 +209,10 @@ module CloudmersiveVideoApiClient
229
209
  header_params[:'preserveAspectRatio'] = opts[:'preserve_aspect_ratio'] if !opts[:'preserve_aspect_ratio'].nil?
230
210
  header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
231
211
  header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
232
- header_params[:'extendProcessingTime'] = opts[:'extend_processing_time'] if !opts[:'extend_processing_time'].nil?
233
212
 
234
213
  # form parameters
235
214
  form_params = {}
236
- form_params['inputFile'] = input_file
215
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
237
216
 
238
217
  # http body (model)
239
218
  post_body = nil
@@ -250,43 +229,100 @@ module CloudmersiveVideoApiClient
250
229
  end
251
230
  return data, status_code, headers
252
231
  end
232
+ # Convert Video to PNG Still Frames.
233
+ # Automatically detect video file format and convert it to an array of still frame PNG images. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time.
234
+ # @param [Hash] opts the optional parameters
235
+ # @option opts [File] :input_file Input file to perform the operation on.
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
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
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 [Object] :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
+ # @return [StillFramesResult]
241
+ def video_convert_to_still_frames(opts = {})
242
+ data, _status_code, _headers = video_convert_to_still_frames_with_http_info(opts)
243
+ data
244
+ end
245
+
246
+ # Convert Video to PNG Still Frames.
247
+ # Automatically detect video file format and convert it to an array of still frame PNG images. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time.
248
+ # @param [Hash] opts the optional parameters
249
+ # @option opts [File] :input_file Input file to perform the operation on.
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
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
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 [Object] :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
+ # @return [Array<(StillFramesResult, Fixnum, Hash)>] StillFramesResult data, response status code and response headers
255
+ def video_convert_to_still_frames_with_http_info(opts = {})
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_convert_to_still_frames ...'
258
+ end
259
+ # resource path
260
+ local_var_path = '/video/convert/to/still-frames'
261
+
262
+ # query parameters
263
+ query_params = {}
264
+
265
+ # header parameters
266
+ header_params = {}
267
+ # HTTP header 'Accept' (if needed)
268
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
269
+ # HTTP header 'Content-Type'
270
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
271
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
272
+ header_params[:'maxWidth'] = opts[:'max_width'] if !opts[:'max_width'].nil?
273
+ header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
274
+ header_params[:'framesPerSecond'] = opts[:'frames_per_second'] if !opts[:'frames_per_second'].nil?
275
+
276
+ # form parameters
277
+ form_params = {}
278
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
279
+
280
+ # http body (model)
281
+ post_body = nil
282
+ auth_names = ['Apikey']
283
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
284
+ :header_params => header_params,
285
+ :query_params => query_params,
286
+ :form_params => form_params,
287
+ :body => post_body,
288
+ :auth_names => auth_names,
289
+ :return_type => 'StillFramesResult')
290
+ if @api_client.config.debugging
291
+ @api_client.config.logger.debug "API called: VideoApi#video_convert_to_still_frames\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
292
+ end
293
+ return data, status_code, headers
294
+ end
253
295
  # Convert Video to WEBM format.
254
- # Automatically detect video file format and convert it to WEBM format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
255
- # @param input_file Input file to perform the operation on.
296
+ # Automatically detect video file format and convert it to WEBM format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
256
297
  # @param [Hash] opts the optional parameters
298
+ # @option opts [File] :input_file Input file to perform the operation on.
257
299
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
258
300
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
259
301
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
260
302
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
261
303
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
262
304
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
263
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
264
305
  # @return [String]
265
- def video_convert_to_webm(input_file, opts = {})
266
- data, _status_code, _headers = video_convert_to_webm_with_http_info(input_file, opts)
306
+ def video_convert_to_webm(opts = {})
307
+ data, _status_code, _headers = video_convert_to_webm_with_http_info(opts)
267
308
  data
268
309
  end
269
310
 
270
311
  # Convert Video to WEBM format.
271
- # Automatically detect video file format and convert it to WEBM format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Maximum output file size is 50GB.
272
- # @param input_file Input file to perform the operation on.
312
+ # Automatically detect video file format and convert it to WEBM format. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
273
313
  # @param [Hash] opts the optional parameters
314
+ # @option opts [File] :input_file Input file to perform the operation on.
274
315
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
275
316
  # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
276
317
  # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
277
318
  # @option opts [BOOLEAN] :preserve_aspect_ratio Optional; If false, the original video&#39;s aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true.
278
319
  # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
279
320
  # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
280
- # @option opts [BOOLEAN] :extend_processing_time Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes.
281
321
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
282
- def video_convert_to_webm_with_http_info(input_file, opts = {})
322
+ def video_convert_to_webm_with_http_info(opts = {})
283
323
  if @api_client.config.debugging
284
324
  @api_client.config.logger.debug 'Calling API: VideoApi.video_convert_to_webm ...'
285
325
  end
286
- # verify the required parameter 'input_file' is set
287
- if @api_client.config.client_side_validation && input_file.nil?
288
- fail ArgumentError, "Missing the required parameter 'input_file' when calling VideoApi.video_convert_to_webm"
289
- end
290
326
  # resource path
291
327
  local_var_path = '/video/convert/to/webm'
292
328
 
@@ -305,11 +341,10 @@ module CloudmersiveVideoApiClient
305
341
  header_params[:'preserveAspectRatio'] = opts[:'preserve_aspect_ratio'] if !opts[:'preserve_aspect_ratio'].nil?
306
342
  header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
307
343
  header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
308
- header_params[:'extendProcessingTime'] = opts[:'extend_processing_time'] if !opts[:'extend_processing_time'].nil?
309
344
 
310
345
  # form parameters
311
346
  form_params = {}
312
- form_params['inputFile'] = input_file
347
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
313
348
 
314
349
  # http body (model)
315
350
  post_body = nil
@@ -326,31 +361,87 @@ module CloudmersiveVideoApiClient
326
361
  end
327
362
  return data, status_code, headers
328
363
  end
364
+ # Cut a Video to a Shorter Length
365
+ # Cuts a video to the specified start and end times. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [File] :input_file Input file to perform the operation on.
368
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
369
+ # @option opts [DateTime] :start_time Optional; Specify the desired starting time of the cut video in TimeSpan format.
370
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the cut video in TimeSpan format. Leave blank to include the rest of the video. Maximum time is 4 hours.
371
+ # @return [String]
372
+ def video_cut_video(opts = {})
373
+ data, _status_code, _headers = video_cut_video_with_http_info(opts)
374
+ data
375
+ end
376
+
377
+ # Cut a Video to a Shorter Length
378
+ # Cuts a video to the specified start and end times. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [File] :input_file Input file to perform the operation on.
381
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
382
+ # @option opts [DateTime] :start_time Optional; Specify the desired starting time of the cut video in TimeSpan format.
383
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the cut video in TimeSpan format. Leave blank to include the rest of the video. Maximum time is 4 hours.
384
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
385
+ def video_cut_video_with_http_info(opts = {})
386
+ if @api_client.config.debugging
387
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_cut_video ...'
388
+ end
389
+ # resource path
390
+ local_var_path = '/video/cut'
391
+
392
+ # query parameters
393
+ query_params = {}
394
+
395
+ # header parameters
396
+ header_params = {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
399
+ # HTTP header 'Content-Type'
400
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
401
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
402
+ header_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
403
+ header_params[:'timeSpan'] = opts[:'time_span'] if !opts[:'time_span'].nil?
404
+
405
+ # form parameters
406
+ form_params = {}
407
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
408
+
409
+ # http body (model)
410
+ post_body = nil
411
+ auth_names = ['Apikey']
412
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => 'String')
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: VideoApi#video_cut_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
329
424
  # Get detailed information about a video or audio file
330
425
  # Retrieve detailed information about a video or audio file, including format, dimensions, file size, bit rate, duration and start time. Compatible with many formats, including: AVI, ASF, FLV, GIF, MP4, MPEG/MPG, Matroska/WEBM, MOV, AIFF, ASF, CAF, MP3, MP2, MP1, Ogg, OMG/OMA, and WAV. Uses 1 API call per 10 MB of file size.
331
- # @param input_file Input file to perform the operation on.
332
426
  # @param [Hash] opts the optional parameters
427
+ # @option opts [File] :input_file Input file to perform the operation on.
333
428
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
334
- # @return [String]
335
- def video_get_info(input_file, opts = {})
336
- data, _status_code, _headers = video_get_info_with_http_info(input_file, opts)
429
+ # @return [MediaInformation]
430
+ def video_get_info(opts = {})
431
+ data, _status_code, _headers = video_get_info_with_http_info(opts)
337
432
  data
338
433
  end
339
434
 
340
435
  # Get detailed information about a video or audio file
341
436
  # Retrieve detailed information about a video or audio file, including format, dimensions, file size, bit rate, duration and start time. Compatible with many formats, including: AVI, ASF, FLV, GIF, MP4, MPEG/MPG, Matroska/WEBM, MOV, AIFF, ASF, CAF, MP3, MP2, MP1, Ogg, OMG/OMA, and WAV. Uses 1 API call per 10 MB of file size.
342
- # @param input_file Input file to perform the operation on.
343
437
  # @param [Hash] opts the optional parameters
438
+ # @option opts [File] :input_file Input file to perform the operation on.
344
439
  # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
345
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
346
- def video_get_info_with_http_info(input_file, opts = {})
440
+ # @return [Array<(MediaInformation, Fixnum, Hash)>] MediaInformation data, response status code and response headers
441
+ def video_get_info_with_http_info(opts = {})
347
442
  if @api_client.config.debugging
348
443
  @api_client.config.logger.debug 'Calling API: VideoApi.video_get_info ...'
349
444
  end
350
- # verify the required parameter 'input_file' is set
351
- if @api_client.config.client_side_validation && input_file.nil?
352
- fail ArgumentError, "Missing the required parameter 'input_file' when calling VideoApi.video_get_info"
353
- end
354
445
  # resource path
355
446
  local_var_path = '/video/convert/get-info'
356
447
 
@@ -367,7 +458,7 @@ module CloudmersiveVideoApiClient
367
458
 
368
459
  # form parameters
369
460
  form_params = {}
370
- form_params['inputFile'] = input_file
461
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
371
462
 
372
463
  # http body (model)
373
464
  post_body = nil
@@ -378,11 +469,270 @@ module CloudmersiveVideoApiClient
378
469
  :form_params => form_params,
379
470
  :body => post_body,
380
471
  :auth_names => auth_names,
381
- :return_type => 'String')
472
+ :return_type => 'MediaInformation')
382
473
  if @api_client.config.debugging
383
474
  @api_client.config.logger.debug "API called: VideoApi#video_get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
384
475
  end
385
476
  return data, status_code, headers
386
477
  end
478
+ # Resizes a Video Preserving the Original Aspect Ratio.
479
+ # Resizes a video, while maintaining the original aspect ratio and encoding. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
480
+ # @param [Hash] opts the optional parameters
481
+ # @option opts [File] :input_file Input file to perform the operation on.
482
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
483
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
484
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
485
+ # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
486
+ # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
487
+ # @option opts [String] :extension Optional; Specify the file extension of the input video. This is recommended when inputting a file directly, without a file name. If no file name is available and no extension is provided, the extension will be inferred from the file data, which may cause a different extension to be used in the output.
488
+ # @return [String]
489
+ def video_resize_video(opts = {})
490
+ data, _status_code, _headers = video_resize_video_with_http_info(opts)
491
+ data
492
+ end
493
+
494
+ # Resizes a Video Preserving the Original Aspect Ratio.
495
+ # Resizes a video, while maintaining the original aspect ratio and encoding. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
496
+ # @param [Hash] opts the optional parameters
497
+ # @option opts [File] :input_file Input file to perform the operation on.
498
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
499
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
500
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
501
+ # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
502
+ # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
503
+ # @option opts [String] :extension Optional; Specify the file extension of the input video. This is recommended when inputting a file directly, without a file name. If no file name is available and no extension is provided, the extension will be inferred from the file data, which may cause a different extension to be used in the output.
504
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
505
+ def video_resize_video_with_http_info(opts = {})
506
+ if @api_client.config.debugging
507
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_resize_video ...'
508
+ end
509
+ # resource path
510
+ local_var_path = '/video/resize/preserveAspectRatio'
511
+
512
+ # query parameters
513
+ query_params = {}
514
+
515
+ # header parameters
516
+ header_params = {}
517
+ # HTTP header 'Accept' (if needed)
518
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
519
+ # HTTP header 'Content-Type'
520
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
521
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
522
+ header_params[:'maxWidth'] = opts[:'max_width'] if !opts[:'max_width'].nil?
523
+ header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
524
+ header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
525
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
526
+ header_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
527
+
528
+ # form parameters
529
+ form_params = {}
530
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
531
+
532
+ # http body (model)
533
+ post_body = nil
534
+ auth_names = ['Apikey']
535
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
536
+ :header_params => header_params,
537
+ :query_params => query_params,
538
+ :form_params => form_params,
539
+ :body => post_body,
540
+ :auth_names => auth_names,
541
+ :return_type => 'String')
542
+ if @api_client.config.debugging
543
+ @api_client.config.logger.debug "API called: VideoApi#video_resize_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
544
+ end
545
+ return data, status_code, headers
546
+ end
547
+ # Resizes a Video without Preserving Aspect Ratio.
548
+ # Resizes a video without maintaining original aspect ratio, allowing fully customizable dimensions. May cause image skewing. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
549
+ # @param [Hash] opts the optional parameters
550
+ # @option opts [File] :input_file Input file to perform the operation on.
551
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
552
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
553
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
554
+ # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
555
+ # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
556
+ # @option opts [String] :extension Optional; Specify the file extension of the input video. This is recommended when inputting a file directly, without a file name. If no file name is available and no extension is provided, the extension will be inferred from the file data, which may cause a different extension to be used in the output.
557
+ # @return [String]
558
+ def video_resize_video_simple(opts = {})
559
+ data, _status_code, _headers = video_resize_video_simple_with_http_info(opts)
560
+ data
561
+ end
562
+
563
+ # Resizes a Video without Preserving Aspect Ratio.
564
+ # Resizes a video without maintaining original aspect ratio, allowing fully customizable dimensions. May cause image skewing. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
565
+ # @param [Hash] opts the optional parameters
566
+ # @option opts [File] :input_file Input file to perform the operation on.
567
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
568
+ # @option opts [Integer] :max_width Optional; Maximum width of the output video, up to the original video width. Defaults to original video width.
569
+ # @option opts [Integer] :max_height Optional; Maximum height of the output video, up to the original video width. Defaults to original video height.
570
+ # @option opts [Integer] :frame_rate Optional; Specify the frame rate of the output video. Defaults to original video frame rate.
571
+ # @option opts [Integer] :quality Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50.
572
+ # @option opts [String] :extension Optional; Specify the file extension of the input video. This is recommended when inputting a file directly, without a file name. If no file name is available and no extension is provided, the extension will be inferred from the file data, which may cause a different extension to be used in the output.
573
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
574
+ def video_resize_video_simple_with_http_info(opts = {})
575
+ if @api_client.config.debugging
576
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_resize_video_simple ...'
577
+ end
578
+ # resource path
579
+ local_var_path = '/video/resize/target'
580
+
581
+ # query parameters
582
+ query_params = {}
583
+
584
+ # header parameters
585
+ header_params = {}
586
+ # HTTP header 'Accept' (if needed)
587
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
588
+ # HTTP header 'Content-Type'
589
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
590
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
591
+ header_params[:'maxWidth'] = opts[:'max_width'] if !opts[:'max_width'].nil?
592
+ header_params[:'maxHeight'] = opts[:'max_height'] if !opts[:'max_height'].nil?
593
+ header_params[:'frameRate'] = opts[:'frame_rate'] if !opts[:'frame_rate'].nil?
594
+ header_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
595
+ header_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
596
+
597
+ # form parameters
598
+ form_params = {}
599
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
600
+
601
+ # http body (model)
602
+ post_body = nil
603
+ auth_names = ['Apikey']
604
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
605
+ :header_params => header_params,
606
+ :query_params => query_params,
607
+ :form_params => form_params,
608
+ :body => post_body,
609
+ :auth_names => auth_names,
610
+ :return_type => 'String')
611
+ if @api_client.config.debugging
612
+ @api_client.config.logger.debug "API called: VideoApi#video_resize_video_simple\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
613
+ end
614
+ return data, status_code, headers
615
+ end
616
+ # Scan a Video for NSFW content.
617
+ # Automatically detect video file format and scan it for Not Safe For Work (NSFW)/Porn/Racy content. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per frame scanned.
618
+ # @param [Hash] opts the optional parameters
619
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [NsfwResult]
623
+ def video_scan_for_nsfw(opts = {})
624
+ data, _status_code, _headers = video_scan_for_nsfw_with_http_info(opts)
625
+ data
626
+ end
627
+
628
+ # Scan a Video for NSFW content.
629
+ # Automatically detect video file format and scan it for Not Safe For Work (NSFW)/Porn/Racy content. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, OGV, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per frame scanned.
630
+ # @param [Hash] opts the optional parameters
631
+ # @option opts [File] :input_file Input file to perform the operation on.
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 [Object] :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
+ # @return [Array<(NsfwResult, Fixnum, Hash)>] NsfwResult data, response status code and response headers
635
+ def video_scan_for_nsfw_with_http_info(opts = {})
636
+ if @api_client.config.debugging
637
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_scan_for_nsfw ...'
638
+ end
639
+ # resource path
640
+ local_var_path = '/video/scan/nsfw'
641
+
642
+ # query parameters
643
+ query_params = {}
644
+
645
+ # header parameters
646
+ header_params = {}
647
+ # HTTP header 'Accept' (if needed)
648
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
649
+ # HTTP header 'Content-Type'
650
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
651
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
652
+ header_params[:'framesPerSecond'] = opts[:'frames_per_second'] if !opts[:'frames_per_second'].nil?
653
+
654
+ # form parameters
655
+ form_params = {}
656
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
657
+
658
+ # http body (model)
659
+ post_body = nil
660
+ auth_names = ['Apikey']
661
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
662
+ :header_params => header_params,
663
+ :query_params => query_params,
664
+ :form_params => form_params,
665
+ :body => post_body,
666
+ :auth_names => auth_names,
667
+ :return_type => 'NsfwResult')
668
+ if @api_client.config.debugging
669
+ @api_client.config.logger.debug "API called: VideoApi#video_scan_for_nsfw\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
670
+ end
671
+ return data, status_code, headers
672
+ end
673
+ # Split a Video into Two Shorter Videos
674
+ # Cuts a video into two videos based on the specified start time. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
675
+ # @param split_time Specify the desired time at which to split the video in TimeSpan format.
676
+ # @param [Hash] opts the optional parameters
677
+ # @option opts [File] :input_file Input file to perform the operation on.
678
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
679
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the second video in TimeSpan format. Leave blank to include the rest of the video. Maximum time is 4 hours.
680
+ # @return [SplitVideoResult]
681
+ def video_split_video(split_time, opts = {})
682
+ data, _status_code, _headers = video_split_video_with_http_info(split_time, opts)
683
+ data
684
+ end
685
+
686
+ # Split a Video into Two Shorter Videos
687
+ # Cuts a video into two videos based on the specified start time. Supports many input video formats, including AVI, ASF, FLV, MP4, MPEG/MPG, Matroska/WEBM, 3G2, MKV, M4V and MOV. Uses 1 API call per 10 MB of file size. Also uses 1 API call per additional minute of processing time over 5 minutes, up to a maximum of 25 minutes total processing time. Maximum output file size is 50GB.
688
+ # @param split_time Specify the desired time at which to split the video in TimeSpan format.
689
+ # @param [Hash] opts the optional parameters
690
+ # @option opts [File] :input_file Input file to perform the operation on.
691
+ # @option opts [String] :file_url Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB.
692
+ # @option opts [DateTime] :time_span Optional; Specify the desired length of the second video in TimeSpan format. Leave blank to include the rest of the video. Maximum time is 4 hours.
693
+ # @return [Array<(SplitVideoResult, Fixnum, Hash)>] SplitVideoResult data, response status code and response headers
694
+ def video_split_video_with_http_info(split_time, opts = {})
695
+ if @api_client.config.debugging
696
+ @api_client.config.logger.debug 'Calling API: VideoApi.video_split_video ...'
697
+ end
698
+ # verify the required parameter 'split_time' is set
699
+ if @api_client.config.client_side_validation && split_time.nil?
700
+ fail ArgumentError, "Missing the required parameter 'split_time' when calling VideoApi.video_split_video"
701
+ end
702
+ # resource path
703
+ local_var_path = '/video/split'
704
+
705
+ # query parameters
706
+ query_params = {}
707
+
708
+ # header parameters
709
+ header_params = {}
710
+ # HTTP header 'Accept' (if needed)
711
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
712
+ # HTTP header 'Content-Type'
713
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
714
+ header_params[:'splitTime'] = split_time
715
+ header_params[:'fileUrl'] = opts[:'file_url'] if !opts[:'file_url'].nil?
716
+ header_params[:'timeSpan'] = opts[:'time_span'] if !opts[:'time_span'].nil?
717
+
718
+ # form parameters
719
+ form_params = {}
720
+ form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
721
+
722
+ # http body (model)
723
+ post_body = nil
724
+ auth_names = ['Apikey']
725
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
726
+ :header_params => header_params,
727
+ :query_params => query_params,
728
+ :form_params => form_params,
729
+ :body => post_body,
730
+ :auth_names => auth_names,
731
+ :return_type => 'SplitVideoResult')
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug "API called: VideoApi#video_split_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
734
+ end
735
+ return data, status_code, headers
736
+ end
387
737
  end
388
738
  end