@@ -54,12 +54,13 @@ Specifies the kind of output to generate.
5454- ` video ` : Outputs an H.264/AAC optimized MP4 file.
5555- ` frame ` : Outputs a still image.
5656- ` spritesheet ` : Outputs a JPEG with multiple frames.
57+ - ` audio ` : Outputs an AAC optimized M4A file.
5758
5859### ` time `
5960
6061Specifies when to start extracting the output in the input file. Depends on ` mode ` :
6162
62- - When ` mode ` is ` spritesheet ` or ` video ` , specifies the timestamp where the output will start.
63+ - When ` mode ` is ` spritesheet ` , ` video ` , or ` audio ` , specifies the timestamp where the output will start.
6364- When ` mode ` is ` frame ` , specifies the timestamp from which to extract the still image.
6465- Formats as a time string, for example: 5s, 2m
6566- Acceptable range: 0 – 30s
@@ -69,7 +70,7 @@ Specifies when to start extracting the output in the input file. Depends on `mod
6970
7071The duration of the output video or spritesheet. Depends on ` mode ` :
7172
72- - When ` mode ` is ` video ` , specifies the duration of the output.
73+ - When ` mode ` is ` video ` or ` audio ` , specifies the duration of the output.
7374- When ` mode ` is ` spritesheet ` , specifies the time range from which to select frames.
7475- Acceptable range: 1s - 60s (or 1m)
7576- Default: input duration or 30 seconds, whichever is shorter
@@ -102,12 +103,18 @@ When `mode` is `video`, specifies whether or not to include the source audio in
102103- ` false ` : Output will be silent.
103104- Default: ` true `
104105
106+ However, When ` mode ` is ` audio ` , audio cannot be false.
107+
105108### ` format `
106109
107110If ` mode ` is ` frame ` , specifies the image output format.
108111
109112- Acceptable options: ` jpg ` , ` png `
110113
114+ If ` mode ` is ` audio ` , specifies the audio output format.
115+
116+ - Acceptable options: ` m4a ` (default)
117+
111118## Source video requirements
112119
113120Input video must be less than 100MB.
@@ -129,6 +136,6 @@ Media Transformations will be free for all customers while in beta.
129136After that, Media Transforamtions and Image Transformations will use the same subscriptions and usage metrics.
130137
131138- Generating a still frame (single image) from a video counts as 1 transformation.
132- - Generating an optimized video counts as 1 transformation _ per second of the output_ video .
139+ - Generating an optimized video or extracting audio counts as 1 transformation _ per second of the output_ content .
133140- Each unique transformation is only billed once per month.
134141- All Media and Image Transformations cost $0.50 per 1,000 monthly unique transformation operations, with a free monthly allocation of 5,000.
0 commit comments