• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • Server Administration /
avatar image
Question by Sathishkumar KPS · Dec 08, 2014 at 03:07 PM · server administration

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

Hi,

I have installed Stream Alias by using http://www.wowza.com/forums/content.php?116-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
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by sal jefferson · Dec 08, 2014 at 11:34 AM

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
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sathishkumar KPS · Dec 09, 2014 at 04:17 PM 0
Share
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
avatar image sal jefferson Sathishkumar KPS · Dec 09, 2014 at 01:45 PM 0
Share
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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Log Data Usage for each Application 1 Answer

OS X Installer Insecure Permissions 1 Answer

http://[wowza-address]:8086/connectioncounts - can this be unsecured? 4 Answers

Sending to Primary & Backup simultaneously for Akamai PushPublish 0 Answers

Filter publisher by application? 1 Answer

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges