Mono sound out

Is it possible to get mono sound out of CasparCG?

the scenario is:
Stereo sound in SDI video into Blackmagic card.
Use track 1 only and send it on track 1 & 2 at the output of CasparCG (Blackmagic)

I tried this with a file and not with decklink input but i guess it will work in simmilar way. Just replace filename with decklink 1

We need to put audio config in casparcg.config file as bellow.

Server 2.07
Audio Config

<audio>
  <channel-layouts>
  <channel-layout>
<name>R_to_Both</name>
<type>xyz</type>
<num-channels>2</num-channels>
<channels>1 2</channels>
</channel-layout>

 <channel-layout>
<name>L_to_Both</name>
<type>xyz1</type>
<num-channels>2</num-channels>
<channels>1 2</channels>
</channel-layout>

 <channel-layout>
<name>Mix</name>
<type>xyz2</type>
<num-channels>2</num-channels>
<channels>1 2</channels>
</channel-layout>

 <channel-layout>
<name>Only_L</name>
<type>xyz3</type>
<num-channels>2</num-channels>
<channels>1 2</channels>
</channel-layout>

 <channel-layout>
<name>Only_R</name>
<type>xyz4</type>
<num-channels>2</num-channels>
<channels>1 2</channels>
</channel-layout>

 </channel-layouts>


<mix-configs>

<mix-config>
<from>xyz</from>
<to>2.0</to>
<mix>add</mix>
<mappings>
<mapping>2 L 1.0</mapping>
<mapping>2 R 1.0</mapping>
</mappings>
</mix-config>

<mix-config>
<from>xyz1</from>
<to>2.0</to>
<mix>add</mix>
<mappings>
<mapping>1 L 1.0</mapping>
<mapping>1 R 1.0</mapping>
</mappings>
</mix-config>

<mix-config>
<from>xyz2</from>
<to>2.0</to>
<mix>add</mix>
<mappings>
<mapping>1 L 0.7</mapping>
<mapping>2 R 0.7</mapping>
<mapping>1 R 0.7</mapping>
<mapping>2 L 0.7</mapping>
</mappings>
</mix-config>

<mix-config>
<from>xyz3</from>
<to>2.0</to>
<mix>add</mix>
<mappings>
<mapping>1 L 1.0</mapping>
<mapping>1 R 0.0</mapping>
</mappings>
</mix-config>

<mix-config>
<from>xyz4</from>
<to>2.0</to>
<mix>add</mix>
<mappings>
<mapping>2 L 0.0</mapping>
<mapping>2 R 1.0</mapping>
</mappings>
</mix-config>


</mix-configs>
</audio>

play 1-1 “filename” channel_layout L_to_Both

Server 2.1
Audio Config

<audio>
<channel-layouts>

<channel-layout name="R_to_Both"      type="xyz"      num-channels="2" channel-order="FL FR" />
<channel-layout name="L_to_Both"      type="xyz1"      num-channels="2" channel-order="FL FR" />
<channel-layout name="Mix"      type="xyz2"      num-channels="2" channel-order="FL FR" />
<channel-layout name="Only_L"      type="xyz3"      num-channels="2" channel-order="FL FR" />
<channel-layout name="Only_R"      type="xyz4"      num-channels="2" channel-order="FL FR" />
</channel-layouts>

<mix-configs>
<mix-config from-type="xyz"          to-types="stereo"  mix="FL=FR | FR=FR" />
<mix-config from-type="xyz1"         to-types="stereo"  mix="FL=FL | FR=FL" />	
<mix-config from-type="xyz2"         to-types="stereo"  mix="FL=0.7FL+0.7FR | FR=0.7FL+0.7FR" />
<mix-config from-type="xyz3"         to-types="stereo"  mix="FL=FL | FR=0FR" />	
<mix-config from-type="xyz4"         to-types="stereo"  mix="FL=0FL | FR=FR" />		
</mix-configs>

</audio>

play 1-1 “filename” channel_layout L_to_Both

Server 2.3
Audio Config- no audio config required.

play 1-1 “filename” af pan=stereo|c0=c0|c1=c0

Thanks!
Do you know if it’s the same when I run CasparCG Server v2.3.0

Server 2.3
Audio Config- no audio config required.

play 1-1 “filename” af pan=stereo|c0=c0|c1=c0

Thanks for being a big help.

This works:
PLAY 1-10 DECKLINK DEVICE 1 FORMAT 1080i5000 af pan=stereo|c0=c0|c1=c0

Do you know if it is possible to do it on the fly, if I discover it should be mono after it is started?
have tried with: MIXER 1-10 af pan=stereo|c0=c0|c1=c0
as you can do with e.g. volume adjustment. But it does not work

The only way I found out is to STOP 1-10 and PLAY it again with full command.
Thanks again for your help

Privacy Policy   Terms of Service