Wowza Community

Doubts about Media Cache - VOD Edge

Hello friends,

I have tryed thousand times before come here. Now I need help from someone. Please!

I have a mission to access a remote server, get the files from there and then play streamming via Wowza.

I know that I have to use de Media Cache, and then use the VOD Edge application making the “link” to the source of Media Cache.

First of all I tryed access my local folder, and I couldn’t.

Bellow is my configuration and the logs:

Configuration - Media Cache

<?xml version="1.0" encoding="UTF-8"?>

${com.wowza.wms.TuningAuto}

${com.wowza.wms.TuningAuto}

${com.wowza.wms.TuningAuto}

${com.wowza.wms.TuningAuto}

10000

true

true

false

false

true

false

default

Default Store

${com.wowza.wms.context.ServerConfigHome}/mediacache

10G

24

24

1000

16M

64M

100

dvrorigin

HTTP

Default DVR source

http://

dvrorigin/

com.wowza.wms.mediacache.impl.MediaCacheItemHTTPImpl

262144

1200000

600000

true

50

httpReadTimeout

3000

Integer

Storage1

File

eeee…

C:/Wowza/

path1/

com.wowza.wms.mediacache.impl.MediaCacheItemFileImpl

1M

10000

10000

true

30

false

fileReadRetries

3

Integer

Logs

2014-04-18 03:18:08 BRT comment server INFO 200 - Wowza Streaming Engine is started! - - - 4.355 - - - - - - - - - - - - - - - - - - - - - - - - -

2014-04-18 03:18:06 BRT - - - - - - - - - 2.156 - - - - - - - - - - - - - - - - - - - - - - - - -

2014-04-18 03:18:35 BRT comment server INFO 200 - REST API: Restart Application: Application (VODEdge) shutdown - - - 31.317 - - - - - - - - - - - - - - - - - - - - - - - - -

2014-04-18 03:19:19 BRT comment server INFO 200 - MediaCasterStreamValidator.init[VODEdge/definst]: Started - - - 75.174 - - - - - - - - - - - - - - - - - - - - - - - - -

2014-04-18 03:19:19 BRT app-start application INFO 200 definst VODEdge/definst - - - 75.23 - - - - - - - - - - - - - - - - - - - - - - - - -

2014-04-18 03:19:19 BRT connect-pending session INFO 100 192.168.195.132 - defaultVHost VODEdge definst 0.168 [any] 1935 rtmp://192.168.195.132:1935/VODEdge 192.168.195.132 rtmp http://localhost:8088/enginemanager/applications/test/vod/FlashRTMPPlayer/vod.swf/[[DYNAMIC]]/3 WIN 11,8,800,97 649083881 3533 3073 - - - - - - - - - - - - - rtmp://192.168.195.132:1935/VODEdge -

2014-04-18 03:19:19 BRT connect session INFO 200 192.168.195.132 - defaultVHost VODEdge definst 0.17 [any] 1935 rtmp://192.168.195.132:1935/VODEdge 192.168.195.132 rtmp http://localhost:8088/enginemanager/applications/test/vod/FlashRTMPPlayer/vod.swf/[[DYNAMIC]]/3 WIN 11,8,800,97 649083881 3533 3073 - - - - - - - - - - - - - rtmp://192.168.195.132:1935/VODEdge -

2014-04-18 03:19:19 BRT create stream INFO 200 - - defaultVHost VODEdge definst 0.017 [any] 1935 rtmp://192.168.195.132:1935/VODEdge 192.168.195.132 rtmp http://localhost:8088/enginemanager/applications/test/vod/FlashRTMPPlayer/vod.swf/[[DYNAMIC]]/3 WIN 11,8,800,97 649083881 3587 3413 1 - 0 0 - - - - 0 0.0 rtmp://192.168.195.132:1935/VODEdge rtmp://192.168.195.132:1935/VODEdge - rtmp://192.168.195.132:1935/VODEdge -

2014-04-18 03:19:19 BRT comment server WARN 404 sample.mp4 MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: MediaCache source not found: sample.mp4: java.io.IOException: MediaCacheRandomAccessReader.open: MediaCache source not found: sample.mp4|at com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReaderFilter.open(MediaCacheRandomAccessReaderFilter.java:77)|at com.wowza.wms.mediareader.h264.MediaReaderH264.open(MediaReaderH264.java:250)|at com.wowza.wms.stream.file.PlaylistPlayer.play(PlaylistPlayer.java:790)|at com.wowza.wms.stream.file.MediaStreamFilePlay.play(MediaStreamFilePlay.java:111)|at com.wowza.wms.response.ResponseStreams.output(ResponseStreams.java:51)| - - - 75.382 - - - - - - - - - - - - - - - - - - - - - - - - -

Additional commets

I’m using “VODEdge” Application

“Storage1”, Media Cache Source

When I’m trying create the source, I have inserterd:

Prefix

path1/

Base Path

C:/Wowza/

But in validate configuration, Wowza show me:

path1/data/media/sample.mp4

C:/Wowza/data/media/sample.mp4

Even I didn’t want to have the data/media, Wowza show me that. But I created this folder in my server and Wowza still didn’t recognize my folder. I mean, I can’t play the clipe via Test Player.

I think once I can access local folder via Media cache, I will be able to access remote network drive as well.

In advance, thank you so much!

Kind regards,

Roan (becoming crazy)

Hi Roan, if content is in a sub-folder you have to specify an app instance. If the url is in the form protocol://[ip-address]/[app-name]/[stream-name].mp4 Wowza assumes that the app instance is definst and that sample.mp4 is located in the root of the content folder. If there is a part between [app-name] and [stream-name].mp4, Wowza reads that as app instance, and still looks for the [stream-name].mp4 in the root of the content folder.

So you might try a URL like this:

protocol://[ip-address]/[app-name]/_definst_/folder/sub-folder/[stream-name].mp4

Salvadore

Roan, I worked through this and tried to recreate the issue you are having. I was not able to recreate the issue, but instead it works for me.

So that I understand what you are doing:

You have created a folder called “Wowza” and there is a .mp4 file in this directory?

The Prefix is “path1/”

And Base Path is “C:/Wowza/”

If you open the RTMP Test Player, you should be able to view the stream with this info:

Server: rtmp://[ip-address]:1935/[app-name]/_definst_
Stream: mp4:path1/[some-file].mp4

If you are still having trouble, please refer back to this guide:

How to scale video on demand streaming with Media Cache

Salvadore

You will want to make sure you are following this section of the guide:

Adding a File Source

When you are ready to access the content from a remote server you well want to use the HTTP Source:

Add HTTP Source

Salvadore

That’s great new Roan! I am glad I could help and thanks for the update.

Salvadore

Hi Roan, if content is in a sub-folder you have to specify an app instance. If the url is in the form protocol://[ip-address]/[app-name]/[stream-name].mp4 Wowza assumes that the app instance is definst and that sample.mp4 is located in the root of the content folder. If there is a part between [app-name] and [stream-name].mp4, Wowza reads that as app instance, and still looks for the [stream-name].mp4 in the root of the content folder.

So you might try a URL like this:

protocol://[ip-address]/[app-name]/_definst_/folder/sub-folder/[stream-name].mp4

Salvadore

Salvadore,

Thank you for your answer.

I think you are talking about to run the media. But befor that, the Media Cache can’t see my Source files. This is my problem at this minute.

I’m trying access local folder, just to test, but I must access a remote server that the files .mp4 are stored.

Do you have skype?

Thank you again,

Kind regards,

Roan

Salvadore,

Thank you so much! I could access my local stream!!!

In the Test Player, was just necessary include the “path1/” on Media File Name: mp4:**path1/**sample.mp4

I have tryed change in my Media Cache from “C:/Wowza/” to “X:/Wowza/” where, “X:/” is my Network Drive mapped in my server but it didn’t works.

Do I need change the sintaxe? Can I use the IP in “Base Path”?

Do I must use HTTP in Media Cache? Because I don’t have HTTP server running in My Storage (X:/).

Once again, thank you so much!!!

Kind regards

Roan

Salvadore,

It works!!!

My base Path" is: “//10.12.80.2/Storage1/Wowza/

Prefix: “path1”

Thank you so much!!!

Two day to put it to work!

Now I’m gonna drink some beer! :slight_smile:

Maybe in the next future I will need your help again, but in this moment I’m too much happy!

Thank you for your time and assistance!

Have a good weekends!

Roan