# Basic setup of StreamNameAlias

**URL:** <https://community.wowza.com/t/basic-setup-of-streamnamealias/93002>\
**Category:** Wowza Streaming Engine\
**Created:** [March 17, 2021, 12:29am UTC](https://community.wowza.com/t/basic-setup-of-streamnamealias/93002 "2021-03-17T00:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_Teterine](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Anton\_Teterine](https://community.wowza.com/u/Anton_Teterine)\
**Post date:** [March 17, 2021, 12:29am UTC](https://community.wowza.com/t/basic-setup-of-streamnamealias/93002/1 "2021-03-17T00:29:32Z")

</div>

Hi community,

I found number of post about the StreamNameAlias but I am having tough time setting it up.  
My end scenario is a bit more complex, but even basic test fails.

I have an app liveorigin, I have 2 Stream Files “Anton.stream” and “Anton Test.stream” pointing to rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny\_115k.mov, I have a startup stream “Anton” for liveorigin app.

I have tried aliasmap.play.txt like this:

> #Converting names  
> My\*=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny\_115k.mov  
> \*=${Stream.Name}

I also tried this

> #Converting names  
> MyStream=Anton  
> \*=${Stream.Name}

I even tried this

> Anton\*=Anton  
> .\*=${Stream.Name}

In all cases, trying to play the RTSP://serverIP:1935/liveorigin/Anton or RTSP://serverIP:1935/liveorigin/MyStream or RTSP://serverIP:1935/liveorigin/Anton.stream fails.

Always resulting in the error:

> ModuleStreamNameAlias.nameToAlias[play]: Can’t find alias entry for: MyStream  
> ModuleStreamNameAlias.nameToAlias[play]: Can’t find alias entry for: Anton.stream  
> ModuleStreamNameAlias.nameToAlias[play]: Can’t find alias entry for: Anton Test.stream

The only time error didn’t occur, was when I had only in aliasmap.play.txt

> .\*=${Stream.Name}

> ModuleStreamNameAlias.nameToAlias[stream]: streamName:Anton.stream alias:{pattern: “\*” alias:“${Stream.Name}” wildcardMatches:{[0]: “Anton.stream”}} result:Anton.stream

But even then the stream didn’t play in VLC.

Removing and as per installation instructions from Application.xml plays the stream after connecting to the Stream Files.  
Btw I could not connect to Stream Files when Module installed and activated:

> Stream alias access denied Anton.stream.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Anton\_Teterine](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Anton\_Teterine](https://community.wowza.com/u/Anton_Teterine)\
**Post date:** [March 17, 2021, 11:46pm UTC](https://community.wowza.com/t/basic-setup-of-streamnamealias/93002/2 "2021-03-17T23:46:31Z")

</div>

Ok that was very dumb on my side 🤦‍♂️  
What should have been

```auto
<Property>
	<Name>aliasMapNameDelimiter</Name>
	<Value>=</Value>
</Property>

```

I had it as

```auto
<Property>
	<Name>aliasMapNameDelimiter</Name>
	<Value>/</Value>
</Property>

```

My alias map.play.txt was

```auto
#Converting names
Anton%20Test=Anton Test
*=${Stream.Name}

```

And alias map.stream.txt was

```auto
Anton Test=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
*=${Stream.Name}

```
