Second Life Development/creating streaming video

From VitalWiki

Jump to: navigation, search

Contents

Creating A Streaming Movie for the OU Streaming Server

    This guide is written for Apple QuickTime Pro which can be purchased for $29.99 (as of 6/25/07).
    Multiple video formats are usable, but the recommended format is .mov and this guide will be written assuming .mov is used.

In order to create a streaming movie, you must follow these four steps:

  1. Make a Movie
  2. Make a Hinted Streaming Movie
  3. Move the Movie to the Streaming Server
  4. Secure the Movie




Make a Movie

Before you can create a streaming movie, you first must have a movie of course. If you do not have a movie that you are legally allowed to put onto the Ohio University Streaming Server, you may want to look at the machinima creation guide for Second Life.

This movie will be your master copy. This movie should be of the best quality available and be fully edited. We will call this movie “master.mov” and for this guide, we will say that our master.mov is 640x480. You can use any name for your movie, but for the movie to be successfully uploaded to the OU Streaming Server, use lowercase and no spaces when naming your movies.

    For example:
           Use mymovie or my_movie instead of My Movie, MyMovie, my movie, etc.




Make a Hinted Streaming Movie

In this step, we will prepare the movie for the OU Streaming Server. This step is divided into three sections:

  1. Small Movie Settings
  2. Medium Movie Settings
  3. Large Movie Settings

The larger the settings, the larger the movie will be and thus the more demanding. The OU Streaming Server is able to easily provide the largest settings, but if the computer you will be viewing this movie on is using less than a broadband internet connection, you may want to try another movie setting. If you wish to have all three size settings, you may of course do all three individually.

Small Movie Settings

  • Open master.mov.
  • Go to File > Export.
  • In the Save As window, name your movie “small.mov” in the “Save As:” textbox at the top.
  • In the “Export:” field, choose “Movie to QuickTime Movie”.
  • In the “Use:” field, choose “Streaming – Low”.
  • Click on the “Options…” button.
    • Click on the “Size…” button.
      • Edit it to be 160x120 (quarter the size of master.mov).
      • Click on “OK”.
    • Check the “Prepare for Internet Streaming” checkbox (if it is not already checked).
    • In the dropdown textbox below, choose “Hinted Streaming”.
    • Click on the “Settings…” button to the left of the textbox.
      • Check the “Optimize Hints for Server” checkbox (if it is not already checked).
      • Click on “OK”.
  • Click on the “OK” button on the bottom of the “Movie Settings” window.



Medium Movie Settings

  • Open master.mov.
  • Go to File > Export.
  • In the Save As window, name your movie “medium.mov” in the “Save As:” textbox at the top.
  • In the “Export:” field, choose “Movie to QuickTime Movie”.
  • In the “Use:” field, choose “Streaming – Medium”.
  • Click on the “Options…” button.
    • Click on the “Size…” button.
      • Edit it to be 320x240 (half the size of master.mov).
      • Click on “OK”.
    • Check the “Prepare for Internet Streaming” checkbox (if it is not already checked).
    • In the dropdown textbox below, choose “Hinted Steraming”.
    • Click on the “Settings…” button under the “Sound” section.
      • Edit “Channel:” to “Stereo” for music or “Mono” for voice. If your movie contains both music and voice, use “Stereo”.
      • Click on “OK”.
    • Check the “Prepare for Internet Streaming” checkbox (if it is not already checked).
    • In the dropdown textbox below, choose “Hinted Streaming”.
    • Click on the “Settings…” button to the left of the textbox.
      • Check the “Optimize Hints for Server” checkbox (if it is not already checked).
      • Click on “OK”.
  • Click on the “OK” button on the bottom of the “Movie Settings” window.



Large Movie Settings

  • Open master.mov.
  • Go to File > Export.
  • In the Save As window, name your movie “large.mov” in the “Save As:” textbox at the top.
  • In the “Export:” field, choose “Movie to QuickTime Movie”.
  • In the “Use:” field, choose “Broadband – High”.
  • Click on the “Options…” button.
    • Click on the “Settings…” button under the “Video” section.
      • Edit it to be “Data Rate: optimize for: Streaming”.
      • Click on “OK”.
    • Click on the “Size…” button.
      • Edit it to be 480x360 (the large size).
      • Click on “OK”.
    • Click on the “Settings…” button under the “Sound” section.
      • Edit “Channels:” to the same as source (master.mov).
      • Click on “OK”.
    • Check the “Prepare for Internet Streaming” checkbox (if it is not already checked).
    • In the dropdown textbox below, choose “Hinted Streaming”.
    • Click on the “Settings…” button to the left of the textbox.
      • Check the “Optimize Hints for Server” checkbox (if it is not already checked).
      • Click on “OK”.
  • Click on the “OK” button on the bottom of the “Movie Settings” window.




Move the Movie to the Streaming Server

To upload a movie onto the Ohio University Streaming Server, you need two things:

  1. An account on the Ohio University Streaming Server
  2. A Secure File Transfer Program (SFTP) to upload files onto the Streaming Server

If you do not have an account, there are two ways around this:

  1. If you are a faculty member of OU and believe that you need to have your own account, you can talk to Matt Tragert, I.T. Specialist, at tragert@ohio.edu.
  2. If you wish for the VITAL Lab to host your video, please contact Dr. Chang Liu at liuc@ohio.edu who will assist you. He may be able to have your video uploaded to the streaming server if you have performed the other steps.

For the FTP program, this guide will provide steps for:

  1. Oak SSH
  2. MACSFTP Carbon

If you are an Ohio University Faculty member or Student, you can download Oak SSH from here or MacSSH from here.

Oak SSH

  • Open Oak SSH.
  • Click on “Quick Connect” in the bottom toolbar at the top of the window.
    • In the “Connect to Remote Host” window, fill in the following:
      • Host Name: "streaming.ohio.edu"
      • User Name: "your oak login"
      • Port Number: “22” (should be 22 by default, but if not change it)
      • Authentication Method: Choose “Keyboard Interactive”
      • Click on “Connect”.
        • In the “Enter Authentication Response” window, type in "your password".
        • Click on “OK”. You are now connect to the OU Streaming Server.
        • Click on the yellow folder with blue dots in front of it, this should be the fourth item from the right in the middle toolbar. This opens up the SFTP window.
          • On the left, the “Local Name” area is your computer. On the right, the “Remote Name” area is the server. You should be at your user folder on the right by default.
          • Navigate to your movie on your computer in the “Local Name” area.
          • In the right, if you wish to create a folder or sub folders for your movie, right-click in the white and choose “New Folder”, or press Ctrl-N, or click on the yellow folder with a spark on the corner of the folder in the toolbar directly above the “Remote Name” area.
          • Drag your movie from your computer in “Local Name” to the desired location in “Remote Name”. You have just uploaded your movie to the OU Streaming Server!

The URL for your movie is http://streaming.ohio.edu/username/folders/my_movie.mov To test your movie, open a browser such as Safari or FireFox or etc. and type in the URL in your address bar. Your movie is not streaming, but you should be able to watch your movie at this point.

MACSFTP Carbon

  • Open MACSFTP Carbon and type in the following information in the corresponding fields:
    • Host Name: streaming.ohio.edu
    • Login: ‘’your oak login’’
    • Password: ‘’your password’’
  • In the MACSFTP Carbon window, click on the “streaming” folder.
    • You are now in your space on the server. Drag your movies or movie folder into this space.

The URL for your movie is http://streaming.ohio.edu/username/folders/my_movie.mov To test your movie, open a browser such as Safari or FireFox and type in the URL in your address bar. Your movie is not streaming, but you should be able to watch your movie at this point.

Secure the Movie

  • Open QuickTime Pro
    • Go to the "File" menu and select "Open URL"
    • Enter your your movie address into the URL (eg. "rtsp://xx.xx.xx.xx/small.mov") and press enter. Your movie should begin to stream.
    • After the movie has played for one or two seconds, go to the "File" menu and select "Save As".
      • Fill in your movie name (eg. "my_movie_stream.mov") and press choose "Save as a reference movie."
  • Move the Movie to the Streaming Server and link to that.
Personal tools