How to setup Roku with Wowza Streaming Engine and Hosting Marketers

You need first to decided what you want to do, live streaming? Video Streaming? then order the appropriate Wowza package at

Wowza Hosting | Wowza Streaming Engine

I suggest you contact us with your requirements, because the bitrate on the packages are not very high and if you going to stream high quality videos you will need higher bitrate, we will customize your package by increasing the bitrate and reducing the number of users allowed.

The formula we use is as below:

package bitrate x viewers allowed = A

A / bitrate requested = new number of viewers

If your wowza package that you want to order is  Wowza 300 you allowed 512kbps.

https://hosting-marketers.com/wowza-hosting/

512 x 300= 153600

Now if you ask for 2000kbps bitrate:

153600 / 2000= 77 viewers

so you will have 2000kbps bitrate and 77 max. viewers.

Now for the instructions how to Stream to Roku using Wowza streaming engine.

So lets say you want to stream videos, you will need to order Ondemand Streaming.  After you order and agree on the bitrate upload a few videos files in MP4 format and slightly below the bitrate allowed. Your HLS URL for any of your videos would be something like this

https://11234566777778.streamlock.net:1937/8XXX/mp4:video.mp4/playlist.m3u8

you will have your HLS URL from your wowza control panel, on it should click on “Media Player” and you will have on the left a player and on the right the code for the player, copy it to a notepad and find on it the “sourceURL” that will be it for the sample file. replace the sample file with the name of your uploaded video.  For instructions on setting up the ondemand streaming check the tutorial here.

Now lets go  basic instructions for packaging and uploading your application and creating a private channel on a Roku set-top box to stream videos from our Wowza to the Roku device.

Notes:

  • You may need to configure your stream as a multi-bitrate stream as outlined in How to create Apple App Store compliant streams (audio only rendition).
  • If you experience playback problems, see How to switch between absolute and relative URLs in Apple https Live Streaming playlists. This article describes how to switch back to using absolute paths for iOS playlists. This has been fixed in recent Roku firmware updates.
  • If your stream only uses AC3 surround sound audio, set the Roku Audio mode (found in Settings > Audio > Audio) to Auto. If Audio is set to Stereo and the stream only contains AC3 audio, users unable to playback surround sound will not hear audio in the stream. Viewers can identify if their HDMI device can decode Dolby Digital AC3 surround sound by looking for a (DD) or (DD+) label next to the Autosetting. To increase accessibility of your stream, make sure you have both stereo and surround sound audio tracks in your stream.

 

  • Setting up the Roku device and Roku SDK

    1. Get your Roku running and associate it with an online Roku account.
    2. In your online account, sign up for the developer program, and then download the Roku SDK (Software Development Kit) and unzip RokuSDK.zip.
    3. Navigate to the Packaging Your Application section of the Roku SDK documentation, and then follow the instructions to set up a DevID and Password. These credentials are used when packaging your application before uploading to a channel.
    4. Unzip the RokuSDK/examples/zips/simplevideoplayer.zip example and edit the simplevideoplayer/source/appMain.brs file as follows:
      1. Comment out the following lines using an apostrophe () character:
        'urls = ["https://video.ted.com/talks/podcast/CraigVenter_2008_480.mp4"]
        'qualities = ["HD"]
        'StreamFormat = "mp4"
        'title = "Craig Venter Synthetic Life"
        'srt = "file://pkg:/source/craigventer.srt"
      2. Uncomment and modify the following lines so that the urls line matches the one below:
        ' a test stream from Wowza
        urls = ["https://11234566777778.streamlock.net:1937/8XXX/mp4:video.mp4/playlist.m3u8"]
        qualities = ["SD"]
        streamformat = "hls"
        title = "my video file"
        srt = ""
        Note: To play your own content, change the urls value to the playlist URL of your content.
    5. Select all files in the simplevideoplayer folder and compress these files (not the folder itself) into a zip file to upload to the Roku box.
    6. Follow the Run the package Utility instructions in the Packaging Your Application section of the Roku SDK documentation to upload your package zip file and register your application to the Roku player. After successfully uploading the application to the Roku box, the application will show up as a channel.

    After completing these steps, a prompt to run your application appears on your Roku box. After the application is running, you can refer to the Roku SDK documentation for information on how to set up a private channel and make it accessible to users to subscribe.

how to fix “Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing”

this normally happens with filezilla. we had a post from 2010 about this here.

so this is an update, first check if you using the correct login info, then if still not working do:

  1. Open Filezilla and open the settings (under the Edit menu)
  2. Under “Connection” select “FTP”
  3. The section at the top is called Transfer Mode. Within that, choose “Passive Mode”
  4. Click OK. You should now be able to connect.

what is the use of red5?

Well there are 2 red5’s, the open source red5 which is the one we use on our servers and red5pro, which is very expensive but still does not do what Wowza Streaming Engine does.

Red5 the open source can be used for ondemand streaming which is video streaming, you upload videos (in flv or mp4 format) to a red5 server and you stream the videos using red5, it is a better experience then using just a normal server, it starts faster because you don’t have to download the all file to the viewer computer and it is difficult for users to steal the video. But and this always applies, you can stream only to flash players, and most platforms are leaving flash, specially mobiles, so what I am saying is that red5 does not work well with smartphones, be Apple or Android devices.

You can also use red5 to stream live events, or video chats software’s.

How to run Python scripts

How to run Python scripts

If you wish to run Python scripts in your hosting account, you can create and edit them in two ways: either in cPanel or via SSH.

To create and edit Python script in cPanel use the following steps: 

1. Log in to your cPanel:
2. Go to section Files > File Manager:

3. You can choose whether you want to run the script in the cgi-bin folder or outside of it.

The cgi-bin folder contains executable CGI scripts. If the file should be placed out of the cgi-bin folder, .htaccess should be created additionally.

4. In order to run the Python script in the cgi-bin folder follow the steps:

  • Go to the cgi-bin folder
  • Create a file with a .py extension, for example nctest.py in the /home/cPuser/public_html/cgi-bin directory (where cPuser is your actual cPanel username).

5. In order to create the file, click New File > specify the name of the file with the required extension and click Create New File:

6. Change the permission of the file to 0755

NOTE: Files are created with default permissions 0644. The .py file will become executable when the permissions are changed to 0755.

7. In order to change the permissions of the file you need to select the file > click Change Permissions > Mark Execute for User, Group, World columns and click Change Permissions:

8. Open the file, click Edit and add the code.

We will add the following script for testing purposes:

#!/usr/bin/python

print “Content-type: text/html\n\n”
print “How to run Python scripts in cPanel”

NOTE: The file should start with the path to the Python scripts that is /usr/bin/python on our servers, but you can run the whereis pythoncommand via SSH to check the directory.

Now the script should work using http://domain.com/cgi-bin/nctest.py

If you would like to run the Python file not in the cgi-bin folder (in public_html or any other directory), it is necessary to add the following code to the .htaccess file in the same directory where the Python script is placed:

Options +ExecCGI
AddHandler cgi-script .py 

How to use FMLE – Flash Media Live Encoder

You can download FMLE here.  Or if you using a MAC computer you can download it directly from Adobe site here.

Install it on your computer.  when you run it, it looks like this:

click on the images to see the all picture.

on the left you select your camera and you enter your settings, important thing is your Bitrate, if you order wowza from us you should use the bitrate allocated to your account, on the wowza control panel on service overview click configure and then limits, you will see the Maximum Bitrate for your account, you should be slightly less, if it says 480kbps try to setup the FMLE that both video and audio are below 450kbps. If you using red5 then I suggest you use something around 450kbps, anything above this number and your stream will have issues.

On the right side of the FMLE you configure the RTMP.  Login to your wowza control panel find the FMS URL and stream name, enter it on the FMLE and then click “Connect”

after you click connect a little window pops up and you need to enter the username and password, username is usually the stream name, this information you can find on the wowza control panel.

Red5 will not have this option of securing the RTMP.

Going back to stream settings on the left, under the “Device” where you select your camera, you the Format, for wowza use always H.264, this allows to stream to desktops and mobile devices, if you using red5 you can use the VP6 option, red5 doesn’t stream to mobile devices. And then you have frame rate, start by using 20 and increase until you have a good result on both desktops and mobiles, some mobile devices will show a better stream if the frame rate is high.

Now that both the FMLE settings and the RTMP is setup clic “start” at the bottom, your broadcast will start.

 

 

Important updates, news, reviews of our customers sites and tricks for common problems…