You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,10 +157,14 @@ The `thumbnail_options` object is optional and contains a set of thumbnails that
157
157
* A size can be specified in pixels (width x height). If omitted it will generate thumbnails the size of the source video. (optional)
158
158
* A format for the thumbnails. The format must be supported by your ffmpeg binary. If omitted it will generate thumbnails in the JPEG format. Most people will use either "jpg" or "png". (optional)
159
159
160
-
If you specify thumbnails but somehow they can't be generated, your job will be marked as failed.
160
+
If you specify thumbnails but an error occurs during generation, your job will be marked as failed. If you don't specify a valid `seconds` or `percentages` option thumbnail generation will be skipped but the job can still be completed successfully.
161
161
162
162
All other options are required (`source_file`, `destination_file` and `encoder_options`). Input and output files must be *absolute* paths.
163
163
164
+
### Thumbnail-only job
165
+
166
+
It's possible to only generate thumbnails from a video and not do any transcoding at all. This might come in handy if you're transcoding to lots of different formats and want to keep thumbnail generation separate from transcoding. You achieve this by POSTing a job with `"encoder_options": ""` (empty string) and of course specifying your `thumbnail_options`. In this case `destination_file` should be a _prefix_ for the output file, e.g. `"destination_file": "/Users/codem/output/my_video"` results in thumbnails in `/Users/codem/output/` with filenames such as `my_video-$offset.$format` (where `$offset` is the thumbnail offset in the video and `$format` of course the thumbnail format). All other options remain the same. See the examples.
167
+
164
168
* * *
165
169
Request: `GET /jobs`
166
170
@@ -249,6 +253,12 @@ Probe a file using `ffprobe`.
249
253
250
254
Output: {"ffprobe":{"streams":[ ... stream info ... ],"format":{ ... format info ... }}}}
251
255
256
+
Thumbnail-only job (160x90 in PNG format every 10% of the video).
0 commit comments