Elphel on OSX

From ElphelWiki
Jump to: navigation, search

This section will give you a brief overview on how to control the video cam via the firefox or safari browser and how to get a nice video stream on a Mac with OS X running. I will try to keep it as simple as possible to archive a good result. You will see that it is not a big deal.

Note: The standard IP address of an Elphel Camera is 192.168.0.9. I've changed the IP address of the camera for my network to 192.168.1.2.

Used Configuration

Hardware

  • Mac Book Intel Duo Core, 2Ghz, 2GByte Ram, 128 GByte Solid State Drive
  • Elphel Camera Model 353, 10338 sensor board, 10369 Interface board, External Power
  • Lense 4-8mm, C/CS Mount
  • External Power Supply (Labratory, set to 15V and 0,5A)*
  • CAT5 Cable, straight, modified for external power supply (not PoE!)*


*Note: In case you're camera uses 48V DC, refer to Using the Camera for a description on how to use 48V DC supply. If you're using external power (12-36V), check polarity twice before applying power. You can cause damage to the camera and computer/equipment in case of reverse polarity.

Low voltage (12-36V) cameras as shipped from Elphel still have input diode bridges intact, so polarity is not critical. It is possible to bypass that bridge (and additionally save some power) - then the note above would apply

Software

It is possible that different version might work as well, but I haven't tested. Most probably all software versions higher than the below listed will work.

Software on the Mac

Software on the Cam

  • elphel353-8.0

General and Network Configuration

After connecting the camera via the CAT5 cable to the computer and applying power to the camera (48V DC or External), the yellow LED on the backside should be on. The green LED starts flashing as soon a datatransfer between the computer and the cam is established.

The network settings of the cam are:

  • IP: 192.168.0.9 (standard -> I use 192.168.1.2)
  • Netmask: 255.255.255.0

Check the network configuration on Leopard

--->System Configuration - - - - - - - - - -->Network - - - - - - - - - - - -->Ethernet

SystemConfiguration.jpg

The standard setting to obtain an IP address is DHCP . As soon as you connect the cable to the cam, Leopard will try to get an IP address. Since the camera does not work as DHCP server, Leopard will assign itself an IP address. You can leave it by that, if you don't want to create you're own network. Else, choose IP settings Manual and enter your IP configuration (the cam and the computer must be on the same subnet).

The Camera in a Webbrowser

Apples Webbrowser Safari as well as Mozillas Firefox (see the versions I used and higher) do support the features needed to open the webinterface on the Elphel camera. Both will open a second window, so popups should be allowed for http://192.168.0.1. Right after you have entered the URL, a notice from Elphel pops up. After confirming, the camera control panel including a JPEG taken from the camera appears. The JPEG will be refresh every few seconds - depending on the settings on the camera, which can be changed using the camera control panel.

Safari

three screen shots come here

Firefox

three screen shots come here

Media Player/Streamer

I've tested three different media players/streamer to view the real time stream from the camera. All worked (almost)fine and do their work. If you just want to watch the stream, Quicktime will do it. If you want to manipulate or stream the video, you will need VLC or Mplayer (or Quicktime Pro). Here a short list of my last experiences and some screen shots.

Note: I've found a recommandation from live555 to use VLC instead of Mplayer to view rtsp streams, since VLC shall run more stable. See this link and decide yourself.

Quicktime Player

screen shots come here

VLC

screen shots come here

Mplayer

Mplayer requires live555 to stream the video, so you need to install live555 before installing mplayer. Best way to install mplayer and live555 is by using Darwinport. After (or if) you've Darwinports allready installed, just follow the instruction you can find here to install live555, and these instructions to install mplayer.


Other

Icecast

Possible Faults

...more content coming soon...