# AXIS H264 to Flash

**URL:** <https://community.wowza.com/t/axis-h264-to-flash/34011>\
**Category:** Wowza Streaming Engine\
**Created:** [November 19, 2009, 5:36pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011 "2009-11-19T17:36:28Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 19, 2009, 5:36pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/1 "2009-11-19T17:36:28Z")

</div>

Hi all,

I’m a newbie into streaming software, and I’m trying to stream an AXIS H264 via HTTP (flash), using a mediaplayer to avoid to have too many clients connected directly to the AXIS IP.

What I first tested is this configuration of conf/rtplive/Application.xml:

  

sortPackets

 

True

 

Boolean

   

sortBufferSize

 

500

 

Integer

 

_and, on the wowza flash player I’m using these links:_

_Server: rtmp://192.168.0.251/rtplive_

_Stream: rtsp://192.168.0.104/axis-media/media.amp_

_192.168.0.104 is the AXIS IP_

_192.168.0.251 is the WOWZA IP_

_I did nothing more, and everything works, both video and audio!_

_Now, I’m trying to insert the flash file into a webpage._

_Is it possible to insert the “Server” and “Stream” parameters directly into the webpage?_

_Or, if it’s not possible, how can I use FLOWPLAYER?_

_I think wowza should convert rtsp to rtmp, and I should get rtmp from wowza: how can I make such a conversion on wowza?_

_Thanks!_

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 19, 2009, 4:53pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/2 "2009-11-19T16:53:27Z")

</div>

Flowplayer will work. You use the rtmp or Wowza plugin. The Server is the rtmp plugin netConnectionURL, and the Stream is the Clip Url

See this post:

[http://community.wowza.com/t/-/40](http://community.wowza.com/t/-/40)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 19, 2009, 5:26pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/3 "2009-11-19T17:26:24Z")

</div>

You might have to use StreamNameAlias so you can use a simple name in the player instead of the rtsp url:

[http://community.wowza.com/t/-/47](http://community.wowza.com/t/-/47)

But I’m not sure if it’s necessary, in JW player it is not necessary.

What about the version numbers of the player and plugin? They are different, one is 3.1.5 the other is 3.1.3. I’m not sure if that matters either, but it might.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 20, 2009, 12:23pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/4 "2009-11-20T12:23:50Z")

</div>

Regarding the alias file, you must put the default rule last. The first match is always used, so rules below the default rule will never be read.

> MyStream=rtsp://192.168.0.104/axis-media/media.amp
> 
> MyServer=rtmp://192.168.0.251/rtplive2
> 
> \*=${Stream.Name}

But with JW player I know it’s not necessary to use an alias with rtsp stream, so it seems like it is another problem.

Be careful not to break this other ways while try to work this out, maybe we should start from the top. I would comment out the StreamNameAlias module for the moment.

I’m using axis camera. I followed this guide to setting up the application:

[http://community.wowza.com/t/-/53](http://community.wowza.com/t/-/53)

Have you tried with the Wowza example player, SimpleVideoStreaming?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 20, 2009, 2:25pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/5 "2009-11-20T14:25:05Z")

</div>

Great, if that works then it is setup correctly. To get it working in JW player now, try this:

> s1.addParam(“flashvars”,“fullscreen=true&bufferlength=2&streamer=rtmp://192.168.0.251/rtplive&file=rtsp://192.168.0.104/axis-media/media.amp&type=rtmp”);

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 20, 2009, 3:26pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/6 "2009-11-20T15:26:10Z")

</div>

It’s a javascript problem at this point. Either there is something wrong with the swfobject.js or the src of the script tag is wrong and it is not loading, or you have javascript turned off.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 11, 2009, 11:48pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/7 "2009-12-11T23:48:00Z")

</div>

Clients that connect to a Wowza app are connecting directly to the web cam.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 12, 2009, 10:21am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/8 "2009-12-12T10:21:34Z")

</div>

I forgot to put “not”. Clients that connect to Wowza are **not** connecting directly to a webcam. They are connecting to Wowza which sends a copy of the stream to the client.

Sorry, “not” was the keyword there.

Richard

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 19, 2009, 6:01pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/9 "2009-11-19T18:01:18Z")

</div>

I yet made this test, but maybe there’s something wrong on what I’m doing.

I used:

flowplayer(“player”, “flowplayer-3.1.5.swf”,

{

clip: {

url: ‘rtsp://192.168.0.104/axis-media/media.amp’,

live: true,

provider: ‘rtmp’

},

plugins: {

rtmp: {

url: ‘flowplayer.rtmp-3.1.3.swf’,

netConnectionUrl: ‘rtmp://192.168.0.251/rtplive’

}

}

But this doesn’t work… do you know why?

* * *

This is the output of wowza when I access to flowplayer:

INFO application app-start _definst_ rtplive/_definst_

INFO session connect-pending 192.168.0.66 -

INFO session connect 192.168.0.66 -

INFO stream create - -

INFO server comment - MediaStreamMediaCasterPlay: startPlay

INFO server comment - RTPMediaCaster.create

INFO server comment - RTPMediaCaster.init

INFO server comment - RTPMediaCaster.Reconnector: start

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: /usr/local/WowzaMediaServerPro/content/media.amp

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: SDP file missing: /usr/local/WowzaMediaServerPro/content/media.amp

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 19, 2009, 6:47pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/10 "2009-11-19T18:47:44Z")

</div>

Yes, that’s because I found only flowplayer.rtmp-3.1.3.swf rtmp plugin, and not 3.1.5. Now I’m not where I have this testing server, tomorrow I’ll try with StreamNameAlias.

Now I checked on flowplayer site:

[http://flowplayer.org/plugins/streaming/rtmp.html](http://flowplayer.org/plugins/streaming/rtmp.html)

They are using 3.1.5 and rtmp-3.1.3.swf, so I think/hope this is correct.

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 8:55am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/11 "2009-11-20T08:55:07Z")

</div>

It seems not to work even with StreamNameAlias.

I’m using this flowplayer conf:

flowplayer(“player”, “flowplayer-3.1.5.swf”,

{

clip: {

url: ‘MyStream’,

live: true,

provider: ‘rtmp’

},

plugins: {

rtmp: {

url: ‘flowplayer.rtmp-3.1.3.swf’,

netConnectionUrl: ‘rtmp://192.168.0.251/rtplive2’

}

}

}

and this is my StreamNameAliasMap.txt:

\*=${Stream.Name}

MyStream=rtsp://192.168.0.104/axis-media/media.amp

That’s the output of Wowza:

INFO server comment - ModuleStreamNameAlias.onAppStart: streamNameAliasFile: /usr/local/WowzaMediaServerPro/conf/StreamNameAliasMap.txt

INFO application app-start _definst_ rtplive2/_definst_

INFO session connect-pending 192.168.0.66 -

INFO session connect 192.168.0.66 -

INFO stream create - -

INFO server comment - ModuleStreamNameAlias.streamNameToAlias: streamName:MyStream alias:{pattern: “\*” alias:"${Stream.Name}" wildcardMatches:{[0]: “MyStream”}} result:MyStream

INFO server comment - ModuleStreamNameAlias.play: MyStream=MyStream

INFO server comment - MediaStreamMediaCasterPlay: startPlay

INFO server comment - RTPMediaCaster.create

INFO server comment - RTPMediaCaster.init

INFO server comment - RTPMediaCaster.Reconnector: start

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: /usr/local/WowzaMediaServerPro/content/MyStream

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: SDP file missing: /usr/local/WowzaMediaServerPro/content/MyStream

Any hint?

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 9:14am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/12 "2009-11-20T09:14:25Z")

</div>

Same thing with JWPlayer.

StreamNameAliasMap.txt:

\*=${Stream.Name}

MyStream=rtsp://192.168.0.104/axis-media/media.amp

MyServer=rtmp://192.168.0.251/rtplive2

JWPlayer:

or:

This time no output from wowza!

I think I’m forgetting something, but don’t understand what 😕

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 11:04am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/13 "2009-11-20T11:04:36Z")

</div>

2 questions:

1. I tried wowza flash player with rtplive application. Is it correct to use this even with flowplayer and jwplayer?

2. What does it mean the error:

RTPSessionDescriptionDataProviderBasic.getStreamIn fo: SDP file missing: /usr/local/WowzaMediaServerPro/content/MyStream ?

Should I create the SDP file? How should I do it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 3:19pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/14 "2009-11-20T15:19:01Z")

</div>

> Have you tried with the Wowza example player, SimpleVideoStreaming?
> 
> Richard

I tried with the **How to setup a live streaming application** guide on [https://www.wowza.com/quickstart.html](https://www.wowza.com/quickstart.html)

And it works with these parameters:

Server: rtmp://192.168.0.251/rtplive

Stream: rtsp://192.168.0.104/axis-media/media.amp

Should I try even with simplevideostreaming?

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 4:02pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/15 "2009-11-20T16:02:11Z")

</div>

Thanks for help… I can’t get out of this :eek:

This is my HTML page:

Testing JWPlayer

These are the files into the directory:

index.html, player.swf, swfobject.js

The page I open has only the “Testing JWPlayer” text and the rest is blank. It does not even open the player and no output from wowza.

If I make the same thing with flowplayer I have the player but the stream does not start.

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [November 20, 2009, 7:09pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/16 "2009-11-20T19:09:24Z")

</div>

Got it working with flowplayer using the alias MyStream as rtsp://…

nothing with jwplayer…

After a lot of tests on both linux and windows server I’m a little happier now!

I’ll go saving this configuration for now 😃

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [December 12, 2009, 12:36am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/17 "2009-12-12T00:36:08Z")

</div>

It seems that even watching the webcam through flowplayer, the client PC connects to the webcam to reach the stream (port 80 and 1935).

Is it possible to get everything by the wowza server (wowza and webserver are on the same hardware).

What I want is clients not to be directly connected to the webcam.

Thanks!

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [December 12, 2009, 10:19am UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/18 "2009-12-12T10:19:24Z")

</div>

And do you know a way to avoid this?

Using other softwars?

VLC between webcam and wowza could permit me doing this thing?

I should have a webcam on private network, visible by the server, but the server on public network. So, obviously users can’t see the private IP of the webcam.

---

<div class="post-metadata">

**Author:** ![Andrea\_Scarso](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Andrea\_Scarso](https://community.wowza.com/u/Andrea_Scarso)\
**Post date:** [December 12, 2009, 1:03pm UTC](https://community.wowza.com/t/axis-h264-to-flash/34011/19 "2009-12-12T13:03:20Z")

</div>

Uhm… maybe I’m starting to understand my problem:

it’s not working on public IP cause of the client trying to connect to the webcam, but because I was doing a NAT from a public IP to the private IP of the server.

I think the server needs to have a public IP, or to NAT both ports 80 and 1935.

I’ll make some more tests on this…

Thanks!
