Re: Audio Routing from one to another Channel

#5
TheYouth wrote:
28 Jan 2018, 23:13
Hi everyone,

following scenario:
2 Channels SDI Out
On SDI Channel 1 I´m playing Audio on the Channels 1+2

Is it possible to route the Audio from SDI Channel 2 1+2 to the Audio Channels 3+4 on the SDI 1 Signal?

Thanks in advance!
balte wrote: I'd think it was possible using audio maps and the route producer, but don't have the tools here to try it out.
With following config file and commands for server 2.07, This can be achieved.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <paths>
    <media-path>c:/casparcg/_media\</media-path>
    <log-path>log\</log-path>
    <data-path>data\</data-path>
    <template-path>c:/casparcg\</template-path>
    <thumbnails-path>thumbnails\</thumbnails-path>
  </paths>
  <channels>
   <channel>
        <video-mode>PAL</video-mode>
  <channel-layout>8ch</channel-layout>
        <consumers>
<decklink>
                <device>1</device>
                <embedded-audio>true</embedded-audio>
                <channel-layout>8ch</channel-layout>
</decklink>
          <screen>
            <device>1</device>
          </screen>
          <system-audio />
        </consumers>
    </channel>


 <channel>
        <video-mode>PAL</video-mode>
  <channel-layout>8ch</channel-layout>
        <consumers>
<decklink>
                <device>2</device>
                <embedded-audio>true</embedded-audio>
                <channel-layout>8ch</channel-layout>
</decklink>
          <screen>
            <device>1</device>
          </screen>
          <system-audio />
        </consumers>
    </channel>

  </channels>
  <controllers>
    <tcp>
        <port>5250</port>
        <protocol>AMCP</protocol>
    </tcp>
  </controllers>
<osc>
  <default-port>6250</default-port>
  <predefined-clients>

    <predefined-client>
      <address>127.0.0.1</address>
      <port>6251</port>
    </predefined-client>
  </predefined-clients>
</osc>

<audio>
  <channel-layouts>

    <channel-layout>
      <name>stereo</name>
      <type>2.0</type>
      <num-channels>2</num-channels>
      <channels>L R</channels>
    </channel-layout>

    <channel-layout>
      <name>8ch</name>
      <type>8ch</type>
      <num-channels>8</num-channels>
      <channels>1 2 3 4 5 6 7 8</channels>
    </channel-layout>
 </channel-layouts>
  <mix-configs>
  <mix-config>
<from>stereo</from>
<to>8ch</to>
<mix>add</mix>
<mappings>
<mapping>L 1 1.2</mapping>
<mapping>R 2 1.0</mapping>
<mapping>L 3 1.0</mapping>
<mapping>R 4 1.0</mapping>
<mapping>L 5 1.0</mapping>
<mapping>R 6 1.0</mapping>
<mapping>L 7 1.0</mapping>
<mapping>R 8 1.0</mapping>
</mappings>
 </mix-config>

  <mix-config>
<from>2.0</from>
<to>8ch</to>
<mix>add</mix>
<mappings>
<mapping>L 1 1.2</mapping>
<mapping>R 2 1.0</mapping>
<mapping>L 3 1.0</mapping>
<mapping>R 4 1.0</mapping>
<mapping>L 5 1.0</mapping>
<mapping>R 6 1.0</mapping>
<mapping>L 7 1.0</mapping>
<mapping>R 8 1.0</mapping>
</mappings>
 </mix-config>

</mix-configs>
</audio>

</configuration>

Commands

Code: Select all

Play 1-1 go1080p25 channel_layout "8ch:1 2"
Play 2-1 CG1080i50 channel_layout "8ch:3 4"
route 1-2 route://2
mixer 1-2 opacity 0