Wowza Community

How to play a video on demand file

It is difficult, but if you want to see it work in a Flash player, the shortest and easiest way to get there is in on the first page of that article, the download, “dynstream_walkthrough_pt1.zip”

See this post:

http://www.wowza.com/forums/showthread.php?p=34958

Richard

Switching has to be done in the client in this system. You might store the smil server-side, but the stream options from it still must be loaded in the client somehow where switching is controlled using the Quality of Service metrics.

Richard

Yes, in both cases.

Edit [wowza-install-dir]/conf/[applicationName]/Applicatoin.xml /StorageDir

Change to mount point or unc path or mapped drive.

Richard

VOD streaming with Wowza Server and this device might not work. I don’t think it will.

Richard

That post was deleted in a re-organization of the forum guides. I’m not sure which one that was but I don’t think it would help. I don’t know of a work-around. I have not heard of Wowza working with Windows mobile devices.

Richard

They have to be H.264 Baseline 3 profile or lower. You can check with GSpot:

http://www.wowza.com/community/t/-/62

Richard

Actually Gspot doesn’t have that info

Richard

You could determined which edge to use before you start playing the stream. Use the Wowza Dynamic Load Balancing package with its HTTP method to get the “least loaded server” from the middle tier.

https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon

Richard

Look at this tutorial

https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtmp-based-encoder

Note the FMLE (read EULA) seems to be the best option for producing streams that work.

Richard

No, sorry, RTSP/vod is not supported yet.

And now the VOD streaming, via mms://, is very slow during the protocol negotiation time. When I VOD a WM9 file, it takes 45 seconds to see the 1st picture. May this be an authentication problem? Any ideas? Thanks.

Is Wowza server involved in this?

Richard

There should be output in the console. You would see something like:

INFO smoothstreaming connect 1200151480 -

INFO stream create Extremists.m4v -

INFO stream play Extremists.m4v -

One approach at this point, that works for me all the time, is to start over. You have an application named “vod”, make one named “vod2” or delete the Application.xml in /conf/vod then copy in a new one, go over every step again with new files.

Richard

Is that different from what is linked to at the top of this post? Do you have a link to that?

Richard

Well, whatever works is great. But it does work for me from the file system, on my Windows 7 machine.

Richard

Keyframe timecodes have to be aligned for switching to occur. You will see logger statements indicating switching. If not the keyframe timecodes are probably not aligned. For live streaming you can debug this like this.

http://www.wowza.com/forums/showthread.php?t=7942

Server-side smil does not work with Flash. Read the Adobe articles referenced in the Live and Video on Demand tutorials. You can use the JW Player, and I think Flowplayer now also as a plugin for multi-bitrate dynamic switching. This is the JW Player tutorial:

http://www.longtailvideo.com/support/jw-player/jw-flv-player-v4/27/bitrate-switching

Width and height can, and in many cases should, be different.

Richard

ffmpeg is used to produce. For example:

bin\ffmpeg -i c:\projects\wms200\content\Extremists_H264.mov -y -ss 6 -t 240 -s 560x320 -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vb 450k -vpre slow -vpre ipod640 -threads 64 c:\content\Extremists.mp4

Using the latest ffmpeg from here:

http://ffmpeg.arrozcru.org/autobuilds/

But we do not support ffmpeg, so you are on your own with this.

Richard

Well, try your preferred encoder. Make sure to set the keyframe interval (GOP) the same on all versions. If each version has aligned timecodes, it should work.

Richard

You might try adding “-g [number]” setting to the ffmpeg command.

http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html#Encoding_H.264_Long_GOP

Richard

Do it like this:

http://[wowza-address]:1935/vod/[B]_definst_[/B]/SUBFOLDER/mp4:FILENAME.mp4/playlist.m3u

Richard

For the first issue, you might be able to fix this by re-building the server-side of the BWCheck example and change the module function checkBandwidth name to _checkbw. Or the vice versa, change _checkbw in the player to checkBandwidth

http://www.wowza.com/community/t/-/31

You will probably also have to reconcile onBWCheck and onBWDone with the client-side code.

On the silverlight issue, not sure. It is switching, so that’s good. But as far as it not doing what you expect, I’m not sure. But you might be making assumptions about your bandwidth that are not actual from the point of view of Wowza server’s connection to you.

Richard

I don’t think we will be able to help. Smooth streaming is built-in to Silverlight. If it is not behaving as expected, it’s either a player issue or maybe your network is not as reliable as you think it is. I would try to run tests from other locations to compare.

Richard