voc / voctomix

Full-HD Software Live-Video-Mixer in python
https://c3voc.de/
MIT License
573 stars 104 forks source link

Audio matrix settings. #300

Open SonnyWalkman opened 1 year ago

SonnyWalkman commented 1 year ago

What is the format for for setting up audio for inputs such as kind=test audio matrix? The current core instructions mentions nothing on how to configure audio parameters. I'm struggling using ini files in the configs directory to work out how audio is configured. Is there any examples would help me out please. I require a simple stereo for all sources to connect to.

filiphanes commented 1 year ago

Hope I was solving same problem as you.

Here is code for parsing audio_map to gst audiomixmatrix https://github.com/voc/voctomix/blob/27e2c58eaeda59cc021a6596d36fdb1ed28a4ace/vocto/audio_codecs.py#L38 Here is documentation for audiomixmatrix https://gstreamer.freedesktop.org/documentation/audiomixmatrix/index.html?gi-language=python

So in config.ini: audio_map=from_channel,to_channel;from_channel2,to_channel2

For example:

audio_channels=2
audio_map=0,0;1,1