Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: correct StorageDir and other settings with JW Player 6

  1. #1
    Join Date
    Oct 2013
    Posts
    8

    Default correct StorageDir and other settings with JW Player 6

    Dear community,
    we are currently using a managed CentOS 6 Server for hosting our selfmade videos. We also use JW Player 6 Premium.
    The website where we publish our videos is a wordpress (3.6.1) cms with the jw player plugin. To serve our content also to iOS devices, which do not support flash, the documentation on longtailvideo.com recommends streaming. So I came here, got a developer licence for testing and installed it via putty (SSH client) on our CentOS server.

    The videofiles are on the same server in the directory httpdocs/uploads/videos/[videoname]/

    and the files:
    [videoname]_360p.mp4
    [videoname]_720p.mp4
    [videoname]_1080p.mp4

    Until now I published the videos with the javascript api from jw player with a playlist (for quality selection).

    Now I like to use this so called "adaptive streaming".

    I read the doc here and found out that I have to configure the <StorageDir> value in the Application.xml.
    So I logged into the server (Virtuozzo at 1and1) and found there two folders:

    WowzaMediaServer and WowzaMediaServer-3.6.2

    In both folders I find a Application.xml.
    Which one is the right one?


    The next step is this *.smil file. Or do I have to use this m8u8? I don't know

    I hope I am right here.

    Best greetings,
    milesdavis

  2. #2
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi,
    Please find below the video on demand tutorial, this tutorial will show you have to configure a video on demand application and gives an example .smil file for adaptive bitrate streaming.
    You will also find the content used in the example .smil file for testing.
    Video on demand tutorial

    You will also find playback examples in the tutorial above, the new stream name will be [chosen].smil and the iOS URL will still end in /playlist.m3u8

    When using a Linux operating system the /usr/local/WowzaMediaServer/ will be the latest version of Wowza you have installed.
    You can test this by editing the /usr/local/WowzaMediaServer/conf/[AppName]/Application.xml and then checking the same file using WowzaMediaServer-3.6.2 in the path.

    Jason

  3. #3
    Join Date
    Oct 2013
    Posts
    8

    Default

    Okay, first of all, thank you for this fast answer!

    I saw this documentation and tried to read it carefully.

    So do I have to change the StorageDir value in both Application.xml files?? And what I do also not know is where do I have to put this *.smil file into?
    At the moment my storage direction in the Application.xml is "/httpdocs/uploads/videos". This is the path I see in filezilla.

    Do I have to put the smil file into /httpdocs/uploads/videos/[folder of video #1]/ (if that is so should I create a *.smil file for each video folder??) or into /httpdocs/uploads/videos/

    These are the questions I can't figure out of the documentation....


    To be honest, my target is to have it like the video example here:

    http://www.longtailvideo.com/support...aptive-stream/

  4. #4
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi,
    The .smil file should be in the same place as the content you're playing.
    If the StorageDir is configured to look in "/httpdocs/uploads/videos/" then your .smil file should be here too.

    If you have sub directories from the above location that's fine, the application will be able to please these files too but you should have the bigbuckbunny_450.mp4, bigbuckbunny_750.mp4, bigbuckbunny_1100.mp4, bigbuckbunny_1500.mp4 and bigbuckbunny.smil in the same directory.

    Please note the following section of the video on demand tutorial:
    Playback of content outside of the content root

    To play content that's not in the content root folder ([install-dir]/content), you must add the default application instance name to the playback URL. For example, if the sample.mp4 video file is in [install-dir]/content/myvideos/sample.mp4, the URLs for the different streaming technologies are:
    This section can be found under the playback section

    Did you try the example .smil and files in the video on demand tutorial?

    Jason

  5. #5
    Join Date
    Oct 2013
    Posts
    8

    Default

    Okay,
    now I got it like this:

    <StorageDir>/httpdocs/uploads/videos/</StorageDir>
    in my Application.xml

    It's the same (complete) path I see in filezilla. In that folder I have my video folder named like "ID002_name_of_the_video"

    directory structure is:

    /httpdocs/uploads/videos/
    ID002_NameoOfVideo2/
    ID003_NameoOfVideo3/
    ID004_NameoOfVideo4/
    ...
    ID030_NameoOfVideo30/

    And inside of each folder the video files are named like the folder:

    360p: "ID002_name_of_the_video_360p.mp4"
    720p: "ID002_name_of_the_video_720p.mp4"
    1080p: "ID002_name_of_the_video_1080p.mp4"

    I also got a manifest.smil in that folder with the following content:
    <smil>
      <head>
      </head>
      <body>
        <switch>
          <video src="mp4:ID002_name_of_the_video_1080p.mp4" system-bitrate="5276000" width="1920" height="1080" />
          <video src="mp4:ID002_name_of_the_video_720p.mp4" system-bitrate="3286000" width="1280" height="720" />
          <video src="mp4:ID002_name_of_the_video_360p.mp4" system-bitrate="1306000" width="640" height="360" />
        </switch>
        </body> 
    </smil>
    Is that right so far?
    What's missing?
    Last edited by milesdavis; 10-08-2013 at 05:44 AM.

  6. #6
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi,
    Yes, all of the above looks correct.
    Please let me know how you get on with your testing.

    Jason

  7. #7
    Join Date
    Oct 2013
    Posts
    8

    Default

    Okay,
    so my code in the wordpress articlse look like this:
    jwplayer("myElement").setup({
            image: videoUrl+".png",
            file: " ??? "
    });
    How do I have to write there?

    UPDATE:

    If I write
    http://[server ip without port 1935]/mp4:[name of my file without _360p or _720p or _1080p].mp4/[name of m3u8 file].m3u8
    it says:
    Cannot load M3U8:
    crossdomain access denied
    although my crossdomain.xml
    <allow-access-from domain="*" />
    Okay I give up!
    Please help me!

    What is the correct file path??
    Last edited by milesdavis; 10-08-2013 at 06:34 AM.

  8. #8
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi,
    Does the stream work when you have the following in the Apple iOS device browser?,
    Apple iOS device (Cupertino/Apple HLS)
    http://[wowza-ip-address]:1935/vod/_definst_/smil:ID002_NameoOfVideo2/manifest.smil/playlist.m3u8
    Does the stream work when you try with the example players found in the [Wowza-Install]/examples/VideoOnDemandStreaming/FlashRTMPPlayer/player.html

    Flash RTMP:
    Server: rtmp://[wowza-ip-address]/vod
    Stream: smil:ID002_NameoOfVideo2/manifest.smil

    It sounds like it may be a player issue, you may have to use the host name instead of the IP address.
    Please see the JW Player 6 tutorial

    Jason

  9. #9
    Join Date
    Oct 2013
    Posts
    8

    Default

    If I try the example for Simple RTMP and HLS streaming under the topic here http://www.wowza.com/forums/content....a-Media-Server it is loading and loading but nothing happens...


    UPDATE:

    I have another idea. Could it be because of the redirection?

    In older versions I use these urls with jw player 6 premium (newest version):
    http://videos.[my company].com/[folder of video ID001]/[folder of video ID001]_360p.mp4
    http://videos.[my company].com/[folder of video ID001]/[folder of video ID001]_720p.mp4
    http://videos.[my company].com/[folder of video ID001]/[folder of video ID001]_1080p.mp4

    That means that the main url points directly to httpdocs/uploads/videos. Normally I would need to write:

    http://videos.[my company].com/uploads/videos/[folder of video ID001]/[folder of video ID001]_360p.mp4
    http://videos.[my company].com/uploads/videos/[folder of video ID001]/[folder of video ID001]_720p.mp4
    http://videos.[my company].com/uploads/videos/[folder of video ID001]/[folder of video ID001]_1080p.mp4

    And now I use the IP of the server with the port 1935:
    http://[ip of video server]:1935

    Could this be irritating for wowza or jw player??

    Secont question:
    On my root directory on the server in /usr/local/ I find these two directories of WowzaMediaServer:

    And in WowzaMediaServer as well as in WowzaMediaServer-3.6.2 I find in the subfolder conf an Application.xml.
    In which of them do I have to change the storageDir value? In both?


    So that's all for now...
    Last edited by milesdavis; 10-09-2013 at 06:08 AM. Reason: a new day :)

  10. #10
    Join Date
    Oct 2013
    Posts
    8

    Default

    Please help me!

Page 1 of 2 12 LastLast

Posting Permissions

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