Stream Alias - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry

Hi,

I have installed Stream Alias by using https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon method.

My aliasmap.play.txt

bunnyalias=smil:bunny.smil
ppp=smil:ppp.smil

ppp.smil file entries

# cat ../content/ppp.smil
	<smil>
     <head>
     </head>
     <body>
          <switch>
               <video src="240p.mp4" system-bitrate="240000"/>
               <video src="360p.mp4" system-bitrate="360000"/>
          </switch>
     </body>
</smil>

bunny.smil file entries

<?xml version="1.0" encoding="UTF-8"?>
<smil title="Bunny">
	<body>
		<switch>
			<video height="240" src="bigbuckbunny_450.mp4"
                systemLanguage="eng" width="424">
				<param name="videoBitrate" value="450000" valuetype="data"></param>
				<param name="audioBitrate" value="44100" valuetype="data"></param>
			</video>
			<video height="360" src="bigbuckbunny_750.mp4"
                systemLanguage="eng" width="640">
				<param name="videoBitrate" value="750000" valuetype="data"></param>
				<param name="audioBitrate" value="44100" valuetype="data"></param>
			</video>
			<video height="720" src="bigbuckbunny_1100.mp4"
                systemLanguage="eng" width="1272">
				<param name="videoBitrate" value="1100000" valuetype="data"></param>
				<param name="audioBitrate" value="44100" valuetype="data"></param>
			</video>
		</switch>
	</body>
</smil>

Errors I’m getting when I tried to play ppp.smil file

INFO server comment - StatsManager:startManager() Enabled=true
INFO server comment - Wowza Streaming Engine is started!
INFO server comment - MediaCasterStreamValidator.init[ondemand/_definst_]: Started
INFO server comment - ModuleStreamNameAlias.onAppStart: aliasMapFileStream: /usr/local/WowzaStreamingEngine/conf/aliasmap.stream.txt
INFO server comment - ModuleStreamNameAlias.onAppStart: aliasMapFilePlay: /usr/local/WowzaStreamingEngine/conf/aliasmap.play.txt
INFO server comment - ServerListenerEC2Variables#ApplicationInstanceNotify.onApplicationInstanceCreate[ondemand/_definst_]: Auto-set application RTSP addresses: internal[bind]:172.31.47.170 external[origin,connection]:54.86.160.236
INFO application app-start _definst_ ondemand/_definst_
INFO server comment - StreamNameAliasFile.load[/usr/local/WowzaStreamingEngine/conf/aliasmap.play.txt]: size:2:2 hash:true matchAll:false
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:ppp alias:{pattern: "ppp" alias:"smil:ppp.smil" wildcardMatches:null} result:smil:ppp.smil
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:ppp alias:{pattern: "ppp" alias:"smil:ppp.smil" wildcardMatches:null} result:smil:ppp.smil
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:ppp alias:{pattern: "ppp" alias:"smil:ppp.smil" wildcardMatches:null} result:smil:ppp.smil
INFO cupertino connect 348726779 -
INFO stream create ppp.smil -
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry for: mp4:240p.mp4
ERROR server comment - HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException|at com.wowza.wms.util.ModuleUtils.decodeStreamExtension(ModuleUtils.java:205)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.resolveStreamName(HTTPStreamerAdapterBase.java:1089)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1752)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:469)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:426)|
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry for: mp4:360p.mp4
ERROR server comment - HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException|at com.wowza.wms.util.ModuleUtils.decodeStreamExtension(ModuleUtils.java:205)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.resolveStreamName(HTTPStreamerAdapterBase.java:1089)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1752)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:469)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:426)|
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:ppp alias:{pattern: "ppp" alias:"smil:ppp.smil" wildcardMatches:null} result:smil:ppp.smil
INFO stream destroy ppp.smil -
INFO cupertino disconnect 348726779 -
INFO application app-stop _definst_ ondemand/_definst_
INFO server comment - ModuleStreamNameAlias.onAppStop: ondemand/_definst_

Errors I’m getting on bunny.smil file

INFO server comment - StatsManager:startManager() Enabled=true
INFO server comment - Wowza Streaming Engine is started!
INFO server comment - MediaCasterStreamValidator.init[ondemand/_definst_]: Started
INFO server comment - ModuleStreamNameAlias.onAppStart: aliasMapFileStream: /usr/local/WowzaStreamingEngine/conf/aliasmap.stream.txt
INFO server comment - ModuleStreamNameAlias.onAppStart: aliasMapFilePlay: /usr/local/WowzaStreamingEngine/conf/aliasmap.play.txt
INFO server comment - ServerListenerEC2Variables#ApplicationInstanceNotify.onApplicationInstanceCreate[ondemand/_definst_]: Auto-set application RTSP addresses: internal[bind]:172.31.47.170 external[origin,connection]:54.86.160.236
INFO application app-start _definst_ ondemand/_definst_
INFO server comment - StreamNameAliasFile.load[/usr/local/WowzaStreamingEngine/conf/aliasmap.play.txt]: size:2:2 hash:true matchAll:false
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:bunnyalias alias:{pattern: "bunnyalias" alias:"smil:bunny.smil" wildcardMatches:null} result:smil:bunny.smil
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:bunnyalias alias:{pattern: "bunnyalias" alias:"smil:bunny.smil" wildcardMatches:null} result:smil:bunny.smil
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:bunnyalias alias:{pattern: "bunnyalias" alias:"smil:bunny.smil" wildcardMatches:null} result:smil:bunny.smil
INFO cupertino connect 435290909 -
INFO stream create bunny.smil -
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry for: mp4:bigbuckbunny_450.mp4
ERROR server comment - HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException|at com.wowza.wms.util.ModuleUtils.decodeStreamExtension(ModuleUtils.java:205)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.resolveStreamName(HTTPStreamerAdapterBase.java:1089)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1752)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:469)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:426)|
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry for: mp4:bigbuckbunny_750.mp4
ERROR server comment - HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException|at com.wowza.wms.util.ModuleUtils.decodeStreamExtension(ModuleUtils.java:205)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.resolveStreamName(HTTPStreamerAdapterBase.java:1089)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1752)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:469)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:426)|
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: Can't find alias entry for: mp4:bigbuckbunny_1100.mp4
ERROR server comment - HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException|at com.wowza.wms.util.ModuleUtils.decodeStreamExtension(ModuleUtils.java:205)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.resolveStreamName(HTTPStreamerAdapterBase.java:1089)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1752)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:469)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:426)|
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:bunnyalias alias:{pattern: "bunnyalias" alias:"smil:bunny.smil" wildcardMatches:null} result:smil:bunny.smil

I’m using JWplayer for the playback and I’m getting “The operation could not be completed” error

Here is my JWplayer code

<script type="text/javascript">
  jwplayer('player7').setup({
//    'flashplayer': 'jwplayer.flash.swf',
//    'id': 'playerID',
    'width': '720',
    'height': '306',
    'file': 'http://cdn.metamorphosis.tv:1935/ondemand/bunnyalias/playlist.m3u8'
//    'plugins': {
//       'qualitymonitor-2': {}
//    }
  });
</script>

Could some help me to fix this issue ?

Thanks,

Sathish

Hello there.

You cannot use alias names with .stream extension in StreamNameAlias. There is no way around that right now. Wowza treats stream names with .stream extension as aliases that resolve to the contents of the file, so you can’t use them as an alias in StreamNameAlias.

Essentially, you cannot alias a .stream file because it is already aliased.

Kind regards,

Salvadore

Hello Salvadore,

I don’t understand your reply. I’m not using any .stream file here. I’m using SMIL files. :confused:

Please clarify.

Thanks,

Sathish

Hello Sathish.

You are correct, I am sorry for the confusion. I read your post to quickly and miss spoke.

I had to test this myself because I was not sure .smil files would be supported for the same reason as stated above. But it in fact does work.

The only way I was able to reproduce your error was to remove the default entry from the aliasmap.play.txt file. Please try adding this to your aliasmap.play.txt file at the bottom of the list and see if this fixes the issue:

*=${Stream.Name}

I hope this helps.

Kind regards,

Salvadore