Stream (preview) in CasparCG 2.5.0

Hi everyone,

I’m testing CasparCG 2.5.0, which brings many improvements, but I’m having trouble with the FFmpeg consumer. I can’t get any preview or output stream to work and keep running into this error:

[ffmpeg] [mp2 @ 0000026E4BB3D880] Specified channel layout 'hexadecagonal' is not supported by the mp2 encoder  
[2025-01-28 11:53:10.187] [error]  
[2025-01-28 11:53:10.187] [error] [ffmpeg] [mp2 @ 0000026E4BB3D880] Supported channel layouts:  
[2025-01-28 11:53:10.187] [error] [ffmpeg] [mp2 @ 0000026E4BB3D880] mono  
[2025-01-28 11:53:10.187] [error] [ffmpeg] [mp2 @ 0000026E4BB3D880] stereo  

It’s a clean installation with no manual config updates or channel layout settings. I’ve tried adding options and omitting audio, but the issue persists. I tested even default Client. Here are some commands I’ve tested:

ADD 1 STREAM udp://127.0.0.1:5000 -format mpegts  
ADD 1 STREAM udp://127.0.0.1:9250 -format mpegts -codec:v libx264 -crf:v 25 -tune:v zerolatency -preset:v ultrafast -filter:v scale=288:162  
ADD 1 STREAM udp://127.0.0.1:9250 -format mpegts -codec:v libx264 -crf:v 25 -tune:v zerolatency -preset:v ultrafast -filter:v scale=288:162 -ac 2  
ADD 1 STREAM udp://127.0.0.1:9250 -format mpegts -codec:v libx264 -crf:v 25 -tune:v zerolatency -preset:v ultrafast -filter:v scale=288:162 -an  

Any advice on what might be wrong or how to fix it?

Thanks!

Try with different audio codec like -codec:a aac

1 Like

Thanks, that worked like a charm for a fast preview:

-format mpegts -codec:a aac -filter:v scale=288x162

But unfortunately without actual audio in final stream :frowning:

Had a similar issue with the hexadecagonal layout, i add “-filter:a pan=stereo|c0=c0|c1=c1” (without the -format mpegts) and it worked then.