How to switch transcoder list?

Hello!

That I have not pointed out in the logs silence…

		public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
		{
			System.out.println("onPublish[" + stream.getContextStr() + "]: isRecord:" + isRecord + " isAppend:" + isAppend); 							
			stream.setLiveStreamTranscoderList("/usr/local/WowzaStreamingEngine-4.1.2/transcoder/templates/mylist.xml");			
						
		}

Tnx!

Hi there.

When using System.out.println() you have to run Wowza in stand-alone mode for the message to be output to the console. It will not get written to the logs.

To write to the log file you would need to use getLogger().info(“YOUR-LOG-HERE”);

Hope this answers your question.

Salvadore

It is not in the log, but the fact that transcoding on the fly, I can not change … and the error logs do not give …

Me how to change the transcoder, because this team does not help but only cancels the current transcoder

stream.setLiveStreamTranscoderList("/usr/local/WowzaStreamingEngine-4.1.2/transcoder/templates/mylist.xml");

By default, I adjusted myself to a specific transcoder application sheet.

But for some threads I need to use a different transcoder sheet.

How can i do this?

Аnd more please help me here

It might help if you explain what you are trying to do.

Please be as clear as possible with your explanation.

Thanks,

Salvadore

You could take a look at the ILiveStreamTranscoderNotify and ILiveStreamTranscoderActionNotify interfaces. and dynamically choose your template file. Setup the following event handlers as indicated in this post. Then you can choose the template required by leveraging the liveStreamTranscoder object within the ILiveStreamTranscoderActionNotify.onInitBeforeLoadTemplate event handler as follows:

liveStreamTranscoder.setTemplateName("TemplateName.xml");

Regards,

Salvadore