Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11eb87d

Browse files
committed
add example of multiple outputs, each with options
1 parent774937f commit11eb87d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,24 @@ Install httplib2 with pip or easy_install.
2828
progress = zen.output.progress(job.body['outputs'][0]['id'])
2929
print progress.body
3030

31+
32+
# configure your outputs with dictionaries
33+
iphone = {
34+
'label': 'iPhone',
35+
'url': 's3://output-bucket/output-file-1.mp4',
36+
'width': 480,
37+
'height': 320
38+
}
39+
web = {
40+
'label': 'web',
41+
'url': 's3://output-bucket/output-file.vp8',
42+
'video_codec':, 'vp8
43+
}
44+
# the outputs kwarg requires an iterable
45+
outputs = (iphone, web)
46+
another_job = zen.job.create(input_url, outputs=outputs)
47+
48+
49+
3150
**Note:** If you set the**ZENCODER\_API\_KEY** environment variable to your api key, you don't have to provide it when initializing Zencoder.
3251

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp