Mixer layout is giving issue with one use case - 2_participants.desktopmix

Shri Kant

New Member
Hello,

I have 5 layouts
2_participants.desktopmix
3_participants.desktopmix
4_participants.desktopmix
5_participants.desktopmix

All are working fine except 2_participants.desktopmix. For this use case, it's going in fallback

I am using below command:
./mixer_layout_tool.sh /opt/mixer-layout-vert-collab -o=/tmp -N=test1-screenShare -n=2

Erroneous layout:
2_participants.desktopmix
<?xml version="1.0" encoding="utf-8"?>
<body>
<row height="50%" align="INLINE_VERTICAL_CENTER">
<video height="60%" width="100%" align="CENTER">.*-screenShare*</video>
</row>
<row height="50%" align="INLINE_VERTICAL_CENTER">
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="60%" align="CENTER"/></div>
</row>
</body>


working layouts
3_participants.desktopmix
<?xml version="1.0" encoding="utf-8"?>
<body>
<row height="50%" align="INLINE_VERTICAL_CENTER">
<video height="60%" width="100%" align="CENTER">.*-screenShare*</video>
</row>
<row height="25%" align="INLINE_VERTICAL_CENTER">
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="60%" align="RIGHT"/></div>
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="60%" align="LEFT"/></div>
</row>
</body>

4_participants.desktopmix
<?xml version="1.0" encoding="utf-8"?>
<body>
<row height="50%" align="INLINE_VERTICAL_CENTER">
<video height="60%" width="100%" align="CENTER">.*-screenShare*</video>
</row>
<row height="25%" align="INLINE_VERTICAL_CENTER">
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="60%" align="RIGHT"/></div>
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="60%" align="LEFT"/></div>
</row>
<row height="25%" align="INLINE_VERTICAL_CENTER">
<div width="1col" height="100%" align="INLINE_HORIZONTAL"><video width="95%" height="95%" align="CENTER"/></div>
</row>
</body>



Looks like there is some issue with this specific use case, please help


Regards,
Shri Kant
 

Max

Administrator
Staff member
Hello,

Please let know whether a non-default value is specified for mixer_video_layout_desktop_key_word in flashphoner.properties.
If the option has the default value (desktop), .mix (not .desktopmix) file will be used if none of the stream names contains desktop (like test1-screenShare).
 

Max

Administrator
Staff member
./mixer_layout_tool.sh /opt/mixer-layout-vert-collab -o=/tmp -N=test1-screenShare -n=2
You are adding only one stream to the mixer in this case. The -N option should include all the streams name if it is used:
Code:
/mixer_layout_tool.sh /opt/mixer-layout-vert-collab -o=/tmp -N=test1-screenShare,test -n=2
 

Shri Kant

New Member
Hello,

Please let know whether a non-default value is specified for mixer_video_layout_desktop_key_word in flashphoner.properties.
If the option has the default value (desktop), .mix (not .desktopmix) file will be used if none of the stream names contains desktop (like test1-screenShare).

flashphoner.properies is :
mixer_video_layout_desktop_key_word = screenShare

I am running specifically the test with screen share + camera and in vertical position. for all other profiles it's working fine except the above mentioned one.

Thanks
 
Last edited:

Max

Administrator
Staff member
Please see the message above. Make sure you've set two names in -N option for two participants layout.
 

Shri Kant

New Member
Hello

It's weird but for 3 participants it's working fine with command
./mixer_layout_tool.sh /opt/mixer-layout-vert-collab -o=/tmp -N=test1-screenShare -n=3

logs
06:17:30,301 INFO B - GridLayout loaded for mixer video layout
06:17:30,304 INFO MixerLayoutRenderer - Rendering for: [test1-screenShare, stream0, stream1]
06:17:30,305 INFO C - Mixer got 3 frames. Using 3_participants.desktopmix descriptor

1671518128877.png


For 2 participants it's throwing error that "No corresponding layout descriptor found"
./mixer_layout_tool.sh /opt/mixer-layout-vert-collab -o=/tmp -N=test1-screenShare -n=2

logs

06:17:57,479 INFO B - GridLayout loaded for mixer video layout
06:17:57,481 INFO MixerLayoutRenderer - Rendering for: [test1-screenShare, stream0]
06:17:57,482 WARN C - Mixer got 2 frames. No corresponding layout descriptor found
06:17:57,482 WARN C - Mixer fallback on: com.flashphoner.media.mixer.video.presentation.GridLayout for 2 number of participants
06:17:57,484 INFO B - Changed main desktop stream to test1-screenShare


1671518160600.png
 
Top