Wowza Community

Disable Audio to Videochat

Hello , I am new to wowza .

I wonder how do I disable the audio of a video chat application ?

thank you.

Hi,

For RTMP playback, you can set a stream to video only using onStreamCreate event below:

How to use event listeners in Wowza#IMediaStreamActionNotify3

something like this.

public void onStreamCreate(IMediaStream stream)
 {
  stream.setReceiveAudio(false);
 }

Another option would be to use the Transcoder AddOn and create an encode which does not have audio by editing the transcoding template.

The encode could have the Video/Codec as PassThru and the Audio/Codec as Disable as shown in the example below.

			<Encode>
				<Enable>true</Enable>
				<Name>source</Name>
				<StreamName>mp4:${SourceStreamName}_source</StreamName>
				<Video>
					<!-- H.264, H.263, PassThru, Disable -->
					<Codec>PassThru</Codec>
					<Bitrate>${SourceVideoBitrate}</Bitrate>
					<Parameters></Parameters>
				</Video>
				<Audio>
					<!-- AAC, PassThru, Disable -->
					<Codec>Disable</Codec>
					<Bitrate></Bitrate>
					<Parameters></Parameters>
				</Audio>
				<Properties>
				</Properties>
			</Encode>

Regards,

Jason

Hi

You do need to ensure that you playback the Transcoded stream name and not the source.

In this case that would be:

yourstreamname_512

Daren

Hi,

When testing in the Player to stream " 999_portalpet_512 ​​" does not work and the " 999_portalpet " works with audio .

What does not work exactly? It doesn’t play at all? What do you see? Any messages?

What are the source stream’s video and audio codecs ?

Daren

Hello , I made ​​changes to the file transcoder , but not emerged effects .

see my .xml transcoder

is something wrong ?

<?xml version="1.0" encoding="UTF-8"?>

PortalPet

true

mp4:${SourceStreamName}_512

Friend, still can not disable the audio .

My name stream in stream files is " 999_portalpet "

We publish as " 999_portalpet " , and when checking inconming streams there are 2 streams active

  1. 999_portalpet_512 ​​- place ( Transcoder )

  2. 999_portalpet - rtmp : //192.168.1.10 : 61021

When testing in the Player to stream " 999_portalpet_512 ​​" does not work and the " 999_portalpet " works with audio .

another test

My name stream in stream files is " 999_portalpet_512 ​​"

We publish as " 999_portalpet_512 ​​" , and when checking inconming streams there are 2 streams active

  1. 999_portalpet_512_512 - place ( Transcoder )

  2. 999_portalpet_512 ​​- rtmp : //192.168.1.10 : 61021

When testing in the Player to stream " 999_portalpet_512_512 " does not work and the " 999_portalpet_512 ​​" works with audio .

Can you help me?

even with these settings I can not disable the audio webcam.

I just can not disable the transmission of audio Webcam.

Help