This call implements a still generation based on the source file using the specified parameters. The URL contains the mediafile_id. In response, the job id is returned, it can be used to request that status later. Till version 1.7.
/mediafile/{mediafile_id}/still/create [POST]
|
Parameter |
Type |
Description |
Method |
Obligatory/Optional |
|
mediafile_id |
alphanumeric |
mediafile id |
URL |
obligatory |
|
user_id |
string |
user id |
POST |
obligatory |
|
frametime |
integer |
Time in seconds |
POST |
optioneel |
|
width |
integer |
width of image |
POST |
optional |
|
height |
integer |
height of image |
POST |
optional |
|
Other: See Still creation parameters (POST) |
|
|
|
|
Example request URL (POST)
/mediafile/SOGsCn8yIYAYlf9LAoP058pr/still/create
POST:
user_id=entree004
frametime=12
|
Field |
Description |
|
job_id |
job id |
<items>
<item id="1">
<job_id>7596</job_id>
</item>
</items>|
Parameter |
Type |
Description |
Method |
Obligatory/Optional |
|
still_type |
string |
The type of the still:
|
POST |
optional |
|
still_per_mediafile |
integer |
For 'normal' type. The number of the still / mediafile |
POST |
optional (If omitted when still_type = normal, still_type will default to 'none') |
|
still_every_second |
integer |
For 'second' type. The distance between two stills in second. |
POST |
optional (If omitted when still_type = second, still_type will default to 'none') |
|
start_time |
integer |
Start time. |
POST |
optional |
|
end_time |
integer |
End time. |
POST |
optional |
|
size |
string |
Still size. E.g. “176x144”, or “qcif” |
POST |
optional |
|
h_padding |
integer |
Horizontal padding. |
POST |
optional |
|
v_padding |
integer |
Vertical padding. |
POST |
optional |
Compatibilit: Creating stills without still_type:
still_type: normal
still_number: 1
start_frame: 10 (or video length / 2)
Comments
frametime should be starttime
Posted by Michiel.Schok on November 23rd, 2009 - 17:10Under description of parameter still_type, the value of 'frametime' is used.
That should be start_time, as frametime is not used anymore (deprecated).
Start time
Posted by forgacs on November 23rd, 2009 - 17:39It is fixed. Thanks.