We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82cb416 commit 7268137Copy full SHA for 7268137
README.md
@@ -55,3 +55,27 @@ Setting up AWS Elastic Transcoder
55
2. Hookup every Notification.
56
3. Subscribe SNS Notification through HTTP
57
4. You are ready to encode!
58
+
59
60
61
+Usage
62
+------------
63
64
+For instance, encode an mp3
65
66
+```python
67
+from dj_elastictranscoder.utils import encode
68
69
+input = {
70
+ 'Key': 'path/to/input/file.mp3',
71
+}
72
73
+outputs = [{
74
+ 'Key': 'path/to/output/file.mp3',
75
+ 'PresetId': '1351620000001-300040' # for example: 128k mp3 audio preset
76
+}]
77
78
+pipeline_id = '<pipeline_id>'
79
80
+encode(pipeline_id, input, outputs)
81
+```
0 commit comments