Audio Mixer: Usage In GraphEdit

From AVObjects Knowledge Base
(Difference between revisions)
Jump to: navigation, search
 
(11 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
[[Image:AudioMixerCustomMode.gif|thumb|right|300px|Using Audio Mixer to mix in custom mode.]]
 
[[Image:AudioMixerCustomMode.gif|thumb|right|300px|Using Audio Mixer to mix in custom mode.]]
  
Render two (or more) media files in GraphEdit. Connect uncompressed
+
Render media files or insert audio source filters in GraphEdit.
outputs to the inputs of the Audio Mixer and render one or more output
+
pins (AM Out) of the Audio Mixer.
+
  
Open the property page of the Audio Mixer. The selector on the left
+
Insert Audio Mixer in GraphEdit, open property page and select "Custom" mode in mode control. Press "Apply" or "OK" on propertry frame.
shows the rendered output pins - if you have rendered only one one
+
output pin, only "AM Out 01" is displayed.
+
  
The grid matrix on the right defines what is to be output to the selected output pin. Values from 0 (silence - in) to 1 (original level) are accepted. In the current version an empty field will also be treated as silence. If values higher than 1 are specified, the filter will work as an amplifier.
+
Connect uncompressed outputs to the inputs of the Audio Mixer. All outputs should have identical frequency.
  
For editing the grid - either double click or press "Space" or "F2".
+
Render one or more output pins of the Audio Mixer.
  
For example, if you have two input stereo streams and you wish to mix
+
Open the property page of Audio Mixer. You can select the following common parameters for the filter:
these streams in such a way that both of the input left channels are
+
 
mixed to the right output channel and both input right channels - to
+
* "Max delay" value (maximum delay between output of samples from Audio Mixer and playing of the appropriate sound in speakers).
the left, and at the same time decrease the volume of each channel by
+
 
30% - this is how your grid should look like.
+
* "Don't correct delay" flag. If this flag is set, the delay correction (and "Max delay" control) is disabled.
 +
 
 +
* "Wait for EndOfStream from all input pins" flag. This flag used for send EndOfStream notification to output pin if EndOfStream received from all input pins or from any input pin.
 +
 
 +
* "Fill gaps" flag. This flag used to fill output samples with silence if samples from some input pins are not received.
 +
 
 +
For each output pin (pin number specified in "Output" control) the following parameters can be set:
 +
 
 +
* Number of channels "Channels" from 1 to 32.
 +
 
 +
* Number of bits per mono sample "Bits" from 8 to 32.
 +
 
 +
* Channel mask "Mask" hex value.
 +
 
 +
* Dynamic range compression parameters (threshold and ratio).
 +
 
 +
* Mixing parameters (matrix of gain factors): 0.0 is silence, 1.0 is original level.

Latest revision as of 18:34, 25 January 2011

Audio Mixer GraphEdit usage instructions.

Using Audio Mixer to mix in custom mode.

Render media files or insert audio source filters in GraphEdit.

Insert Audio Mixer in GraphEdit, open property page and select "Custom" mode in mode control. Press "Apply" or "OK" on propertry frame.

Connect uncompressed outputs to the inputs of the Audio Mixer. All outputs should have identical frequency.

Render one or more output pins of the Audio Mixer.

Open the property page of Audio Mixer. You can select the following common parameters for the filter:

  • "Max delay" value (maximum delay between output of samples from Audio Mixer and playing of the appropriate sound in speakers).
  • "Don't correct delay" flag. If this flag is set, the delay correction (and "Max delay" control) is disabled.
  • "Wait for EndOfStream from all input pins" flag. This flag used for send EndOfStream notification to output pin if EndOfStream received from all input pins or from any input pin.
  • "Fill gaps" flag. This flag used to fill output samples with silence if samples from some input pins are not received.

For each output pin (pin number specified in "Output" control) the following parameters can be set:

  • Number of channels "Channels" from 1 to 32.
  • Number of bits per mono sample "Bits" from 8 to 32.
  • Channel mask "Mask" hex value.
  • Dynamic range compression parameters (threshold and ratio).
  • Mixing parameters (matrix of gain factors): 0.0 is silence, 1.0 is original level.
Personal tools