Getting video resolution on LiveStreamTranscoderActionNotifyBase

Hi! I want to ask you for the best way to get the video resolution on onInitBeforeLoadTemplate method. I need to get the height of the video to choose which template I need to use.

I’ve tried using stream.getRTPStream().getVideoTrack(), but “getRTPStream()” is always null.

Any ideas?

Thanks.-

Hello,

Since this scenario its rtsp our event handlers become limited, and after discussing with our developer support team,

this is not possible since the transcoder chooses a template well before getting this codec info.

You could try to programmatically use the transcoder API to reject the initial stream from transcoding, wait for codec info to arrive, re-publish as a new stream and rebuild the template from the ground up based on the resolution information received.

Regards,

Jason Hatchett