File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ defmodule Membrane.Transcoder do
81
81
82
82
Can be either:
83
83
* an atom: `:always`, `:if_needed` (default) or `:never`,
84
- * a function that receives the input stream format and returns an atom.
84
+ * a function that receives the input stream format and returns either `:always`,
85
+ `:if_needed` or `:never`.
85
86
86
87
If set to `:always`, the input media stream will be decoded and encoded, even
87
88
if the input stream format and the output stream format are the same type.
@@ -90,10 +91,13 @@ defmodule Membrane.Transcoder do
90
91
stream format and the output stream format are different types.
91
92
This is the default behavior.
92
93
93
- If set to `:never`, the input media stream won't be neither decoded nor transcoded .
94
+ If set to `:never`, the input media stream won't be neither decoded nor encoded .
94
95
Changing alignment, encapsulation or stream structure is still possible. This option
95
96
is helpful when you want to ensure that #{ inspect ( __MODULE__ ) } will not use too much
96
97
of resources, e.g. CPU or memory.
98
+
99
+ If the transition from the input stream format to the output stream format is not
100
+ possible without decoding or encoding the stream, an error will be raised.
97
101
"""
98
102
]
99
103
You can’t perform that action at this time.
0 commit comments