Streaming Video with IP cameras in Second Life
Streaming Video with IP cameras into Second Life
Getting Started
The following are the basic prerequisites for streaming video with Ip cameras into Second Life:
- Your movie files must be compressed using QuickTime format (.mpeg4 or .mov), and QuickTime must be installed on your computer.
- If the video you're attempting to stream plays in the QuickTime player on your own computer, it should stream into Second Life correctly.
- Be sure that stream's URL exists.
Setting IP camera
The first step will be configure your IP camera with the correct video format. This format should be mpeg4. See the documentation of you IP camera to set up this feature.
Install Quicktime on your computer
It is a priority have installed Quicktime in order to show video on Second Life. You can download it from http://www.apple.com/es/quicktime/download/ When you have Quicktime on your computer, you can make a proof opening an URL of video streaming.
Figure 1. Open a URL to display video with Quicktime.
On figure 1 you can see that, in order to display video streaming, we use 'rtsp protocol'. You only have to put a correct URL on File/Open URL File to demand the video streaming to the IP camera. We use a Axis IP camera to test it.
Create a screen to display video streaming
On this step, we will create a screen in order to show video streaming. Several primitives that Second Life offers have been used to implement a screener, from which the most important is the cube that will display the video stream.
How to create a cube:
- Inside Second Life viewer, click on your mouse right button and choose Build. It will open a menu that will show what primitive you want to create as shown on figure 2. Choose the cube.
Figure 2. Creating a cube
- Now, we want to set a texture to your cube primitive. We will use Default Media texture on Texture tab. See the figure 3.
Figure 3. Setting the texture
- You can also give a screen appearance using other primitives. In figure 4 you can see a possible result.
Figure 3. Setting the texture