Wowza Community

Streaming Mp4, 3gp and 3g2 via RTMP

Im new to Wowza and currently stream files via Darwin Streaming Server. I have Wowza installed, verified it running and accessable by connecting through my browser (http://IPAddress:1935) and now would like to stream some video.

I created a folder “PhoneFling” in the applications directory. Its an empty folder. I then added a hinted H264 video into the content folder named Test1.mp4.

I then start quicktime viewer, > open from URL and type:

rtmp://[IPAddress]/PhoneFling/definst/mp4:test1.mp4

and get Error 2000: A necessary data reference could not be resolved (test1.mp4)

What am I doing wrong? Also, will I be able to stream H263 3gp and 3g2 files through Wowza?

Thanks!

Yes, that is correct.

Charlie

The log file should say exactly what file path it is looking for. What player are you using. Some of them just don’t deal with paths correctly at all.

Charlie

The Application.xml file goes in the [install-dir]/conf/[application] folder.

Charlie

Yes, it is the player.

Charlie

I don’t think quicktime viewer is supported. Just Flash, so far.

Richard

I remember this player being a problem. Try this package as well:

FixStreamPath.zip

Try all the different combinations with this moduled installed and not installed:

rtmp://[IPAddress]/PhoneFling/mp4:Test1/test1.mp4

rtmp://[IPAddress]/PhoneFling/Test1/mp4:test1.mp4

rtmp://[IPAddress]/PhoneFling/definst/mp4:Test1/test1.mp4

rtmp://[IPAddress]/PhoneFling/definst/Test1/mp4:test1.mp4

These players do not all handle this single urls properly. I think this player is especially bad at it.

Charlie

The link you show that works in FLV player is right, but those others have mp4 prefix in wrong place, and I think that is making both errors.

This looks right:

rtmp://[IPAddress]/PhoneFling/definst/mp4:test1.mp4

This is wrong:

rtmp://[IPAddress]/PhoneFling/mp4:Test1/test1.mp4

Wowza thinks this flv, puts flv extension, and also apparently doesn’t like that colon in the prefix in the path.

Richard

You change content directory in the Application.xml /Streams/StorageDir.

So, to be sure were able to hit the most client players out there, should we always add the definst when we link to a video?

You have to do it in each player you want to use.

Richard

I downloaded a flash player and was able to stream my MP4 files. I also need to stream H263 encoded 3gp and 3g2 files as well. From the documentation I see only H264 3GP & 3G2 files are supported by Wowza…Is this correct? I guess I can stream the MP4 through Wowza, and keep streaming my 3gp and 3g2 files through Darwin SS…

Also, if I try to create subfolders in the Content folder, ie Test1 and Test2, then place the files test1.mp4 in Test1, and test2.mp4 in Test2 folder, I am unable to stream them.

[install Dir]/Content/Test1/test1.mp4

[install Dir]/Content/Test2/test2.mp4

i tried:

rtmp://[IPAddress]/PhoneFling/mp4:Test1/test1.mp4

and

rtmp://[IPAddress]/PhoneFling/definst/mp4:Test1/test1.mp4

and a few others. This is how the documentation says to do it, but all i get is “Failed to load test1.mp4”

FLV PLayer 2.0…its works great if the video is directly inside the content folder via

rtmp://[IPAddress]/PhoneFling/definst/mp4:test1.mp4

here is what is in the error log after I add the file to the test1 subdirectory:

ERROR server comment 2009-01-28 15:30:28 - - - - - 62.516 - - - - - - - onApplicationInstanceCreate: javax.management.MalformedObjectNameException: Invalid character ‘:’ in value part of property

WARN server comment 2009-01-28 15:30:28 - - - - - 62.657 - - - - - - test1.mp4 open: java.io.FileNotFoundException: C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server Pro 1.6.0\content\test1.mp4.flv (The system cannot find the file specified)

the main thing i am trying to accomplish here is adding a subdirectory under the content folder. If I take a file named test1.mp4 and place it directly into the content folder, i can stream it using

rtmp://[ipadress]/phonefling/definst/mp4:test1.mp4

However…If I create a folder called test1 inside the content folder, then add my same file into the test1 folder, and try to stream it from the same FLV player using the url specified in the documentation

rtmp://[ipaddress]/phonefling/definst/mp4:test1/test1.mp4

I get "Loading…Stopping…Failed to load test1.mp4

ok the FixStream module worked. It only works with the definst in the URL. Does that just mean I need to copy the Application.xml file into my application folder?

i tried that, created a PhoneFling folder inside the conf forlder as such:

InstallDir/Conf/PhoneFling/Application.xml (which has the FixStream module added)

and I still cant stream using

rtmp://66.152.165.83/PhoneShag/Test1/mp4:test1.mp4

it only works with

rtmp://66.152.165.83/PhoneFling/definst/mp4:Test1/test1.mp4

rtmp://66.152.165.83/PhoneFling/definst/Test1/mp4:test1.mp4

Do you think its just the player?

So, to be sure were able to hit the most client players out there, should we always add the definst when we link to a video?

How would I change the content directory. Most of our vids are going to be on a direct attached storage RAID so I need to be able to keep my content dir somewhere else.