Results 1 to 8 of 8

Thread: Doubts about Media Cache - VOD Edge

  1. #1

    Default 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"?>
    <Root version="1">
    <MediaCache>
    <WriterThreadPool>
    <PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    </WriterThreadPool>
    <ReadAheadThreadPool>
    <PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
    </ReadAheadThreadPool>
    <MaxPendingWriteRequestSize>${com.wowza.wms.TuningAuto}</MaxPendingWriteRequestSize>
    <MaxPendingReadAheadRequestSize>${com.wowza.wms.TuningAuto}</MaxPendingReadAheadRequestSize>
    <GCFrequency>10000</GCFrequency>
    <ContextMapperClass></ContextMapperClass>
    <AddFileExtensionIfNeeded>true</AddFileExtensionIfNeeded>
    <URLEscapeStreamNameSpaces>true</URLEscapeStreamNameSpaces>
    <URLEscapeStreamNameAll>false</URLEscapeStreamNameAll>
    <OnStartReloadCache>false</OnStartReloadCache>
    <OnStartReloadCacheVerifySource>true</OnStartReloadCacheVerifySource>
    <DebugLog>false</DebugLog>
    </MediaCache>
    <MediaCacheStores>
    <MediaCacheStore>
    <Name>default</Name>
    <Description>Default Store</Description>
    <!-- variables: ${com.wowza.wms.context.ServerConfigHome} -->
    <Path>${com.wowza.wms.context.ServerConfigHome}/mediacache</Path>
    <MaxSize>10G</MaxSize>
    <Level1FolderCount>24</Level1FolderCount>
    <Level2FolderCount>24</Level2FolderCount>
    <FileCount>1000</FileCount>
    <WriteRate>16M</WriteRate>
    <WriteRateMaxBucketSize>64M</WriteRateMaxBucketSize>
    <WriteRateFillFrequency>100</WriteRateFillFrequency>
    <Properties>
    </Properties>
    </MediaCacheStore>
    </MediaCacheStores>
    <MediaCacheSources>
    <!-- dvr repeater -->
    <MediaCacheSource>
    <Name>dvrorigin</Name>
    <Type>HTTP</Type>
    <Description>Default DVR source</Description>
    <BasePath>http://</BasePath>
    <Prefix>dvrorigin/</Prefix>
    <BaseClass>com.wowza.wms.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass>
    <ReaderClass></ReaderClass>
    <DefaultBlockSize>262144</DefaultBlockSize>
    <MaxTimeToLive>1200000</MaxTimeToLive>
    <MinTimeToLive>600000</MinTimeToLive>
    <ReadAhead>true</ReadAhead>
    <ReadAheadThreshold>50</ReadAheadThreshold>
    <Properties>
    <Property>
    <Name>httpReadTimeout</Name>
    <Value>3000</Value>
    <Type>Integer</Type>
    </Property>
    </Properties>
    </MediaCacheSource>
    <MediaCacheSource>
    <Name>Storage1</Name>
    <Type>File</Type>
    <Description>eeee...</Description>
    <BasePath>C:/Wowza/</BasePath>
    <Prefix>path1/</Prefix>

    <BaseClass>com.wowza.wms.mediacache.impl.MediaCacheItemFileImpl</BaseClass>
    <ReaderClass></ReaderClass>
    <DefaultBlockSize>1M</DefaultBlockSize>
    <MaxTimeToLive>10000</MaxTimeToLive>
    <MinTimeToLive>10000</MinTimeToLive>
    <ReadAhead>true</ReadAhead>
    <ReadAheadThreshold>30</ReadAheadThreshold>
    <IsPassThru>false</IsPassThru>
    <Properties>
    <Property>
    <Name>fileReadRetries</Name>
    <Value>3</Value>
    <Type>Integer</Type>
    </Property>
    </Properties>
    </MediaCacheSource>
    </MediaCacheSources>
    </Root>

    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/...layer/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/...layer/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/...layer/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(MediaCacheRandomAccessReaderFi lter.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)

  2. #2

    Default

    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

  3. #3

    Default

    Quote Originally Posted by salvadore View Post
    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

  4. #4

    Default

    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

  5. #5

    Default

    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

  6. #6

    Default

    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

  7. #7

    Default

    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!

    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

  8. #8

    Default

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

    Salvadore

Similar Threads

  1. Media Cache origin-edge configuration
    By oferhe in forum On-Demand Streaming
    Replies: 4
    Last Post: 04-16-2014, 05:43 AM
  2. Replies: 3
    Last Post: 03-02-2014, 03:56 AM
  3. Replies: 1
    Last Post: 03-04-2013, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •