This is a question about the mixer.

hyuk

Member
Hi,
Mix and save video streaming (A) and audio streaming (B).
The audio (B) sounds, but I don't want to see that area on the screen.
The video (A) is displayed on the full screen, I tried adjusting the size of the audio (B), but it is not invisible.
It looks like the audio (B) is lined over the video (A).
Is there any way to make the audio (B) invisible at all or to be placed behind the video (A)?

1610956310414.png
 

Max

Administrator
Staff member
Good day.
Please try to add the following parameter to flashphoner.properties file:
Code:
mixer_show_separate_audio_frame=false
In this case, audio only stream B should not be displayed in separate frame, but still should be hearable (like a dubbing)
 

hyuk

Member
Hi,
I tried putting that code before, but the audio area still existed.
The code for my mixer is as follows.
Code:
mixer_mcu_audio=true
mixer_mcu_video=true
record_mixer_streams=true
mixer_voice_activity=false
mixer_show_separate_audio_frame=false
mixer_layout_class=com.flashphoner.media.mixer.video.presentation.CropNoPaddingGridLayout
mixer_video_layout_desktop_key_word=share
mixer_video_desktop_fullscreen=true
record_streams=true
mixer_idle_timeout=2000
mixer_lossless_video_processor_enabled=true
mixer_lossless_video_processor_max_mixer_buffer_size_ms=200

The code below is how I solved it, but it doesn't seem to be the normal way.
Code:
mixer_audio_only_width=1
mixer_audio_only_height=640

WCS version: 5.2.873


1611039707552.png
 
Last edited:

Max

Administrator
Staff member
If you want audio to be hearable in mixer, but not visible, you should
1. Add the setting
Code:
mixer_show_separate_audio_frame=false
and restart WCS.
2. Create a mixer automatically by publishing stream with name like stream#mixer1 or by REST API
Code:
POST /rest-api/mixer/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
 
{
    "uri": "mixer://mixer1",
    "localStreamName": "mixer1"
}

POST /rest-api/mixer/add HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
 
{
    "uri": "mixer://mixer1",
    "remoteStreamName": "stream"
}
3. Publish a stream from which you want to add audio to mixer, for example stream_dub. Please note: this must be audio+video stream.
4. Add the stream stream_dub to the mixer using REST API query /mixer/add
Code:
POST /rest-api/mixer/add HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
 
{
    "uri": "mixer://mixer1",
    "remoteStreamName": "stream_dub",
    "hasVideo":false,
    "hasAudio":true
}
In this case only, you should not see a dark box from stream_dub

We also recommend you to remove the following settings from config
Code:
mixer_lossless_video_processor_enabled=true
mixer_lossless_video_processor_max_mixer_buffer_size_ms=200
because they atomatically disable realtime mixing. This can lead to freezes and out of sync in mixer output stream if there are any channels issues with any of input streams, so one participant will drop the quality of whole mix.
 
Top