Stand alone video server

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Stand alone video server

Post by Willem4ever »

A widely used control protocol is VISCA (Video System Control Architecture). This is a platform-independent machine control method developed by Sony that can be used to operate up to seven VISCA-compliant devices, such as PTZ cameras on a daisy chain of eight-pin RS-232 cables. Each camera is individually addressable by means of an identifying hardware switch or hexadecimal code assignment. Some models also permit various exposure modes and white balance to be set remotely with VISCA commands. These commands may also be used for controlling monitors, AV switchers, VCRs, and other devices. The protocol is open, and no licensing is required for distribution of VISCA-compatible hardware or software.

Other Camera manufacturers (e.g. Canon) also support the above protocol.

To answer snelvuur's question about UTP etc. The RS232/485 port is only used to control the camera's (i.e. Pan/Tilt/Zoom)
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Stand alone video server

Post by Bwired »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Posted - Today : 22:13:17
--------------------------------------------------------------------------------
is someone familiar with the video server from Aviosys?
http://www.videofrank.nl/catalog/produc ... cts_id=378
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">Don't expect much from this videoserver, they are good in price but not so good in streaming [:(] Google first for experiences!
And the Sony Camera's EVI-D30C can be daisy chained, However it's not that handy to do if they are apart from each other. The Sony EVI-D30L can not be daisy chained.
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

Stand alone video server

Post by TANE »

Pieter,
thanks for the advice.

I will use the video server most of the time only for the snapshots
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Stand alone video server

Post by Bwired »

Ok Chak, try to find out how fast the videoserver displays the first image after switching to the port. In some cases that could take a while. Keep this in mind for the project you wanna use it for.

Pieter
User avatar
Wima
Member
Member
Posts: 127
Joined: Sun Aug 16, 2009 11:05 am
Location: Netherlands

Stand alone video server

Post by Wima »

Hi Piter,

Received my Axis 241q today and was experimenting with it. I want to get the streaming video on my site, so I tried your script below.
I get an error on line 18. When removing the "if" the error is gone but I see no video on the IE.(just the video icon)
Any idea ?

Wil



<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Bwired</i>
<br />Hi
The Axis 241q Videoserver comes with a built in webserver. If you open this webserver You see all the attached camera's in one shot.[img]images/icon_paperclip.gif[/img] axis241screen.gif Also offers this webserver some examples on how to implement the live streams in your own software. I think its easy to make a new menu in a homeseer webpage where you can view the camera's attached to the AXIS 241Q Camera server.

This javascript in your Html page and you have live video
<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the URL of your camera
var BaseURL = "http://ipadres of your server!";
// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = "352";
var DisplayHeight = "288";
// This is the path to the image generating file inside the camera
lf var File = "axis-cgi/mjpg/video.cgi?resolution=CIF&camera=4";
// No changes required below this point
var output = "";
output = '<APPLET ARCHIVE=AxisCamApplet.zip CODEBASE="';
output += BaseURL;
output += 'java/"';
output += ' CODE=AxisCamApplet.class HEIGHT=';
output += DisplayHeight;
output += ' WIDTH=';
output += DisplayWidth;
output += '>';
output += '<PARAM NAME="StreamLocation" VALUE="/';
output += File;
output += '&showlength=1">';
output += '</APPLET>'
document.write(output);
</SCRIPT>

This Camera server also has a great API interface which can be called upon from within different program languages like VB or C+.

Pieter Knuvers
www.bwired.nl Online House in the netherlands. Domotica, Home Automation.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

-------------------------------
Even the genious ask questions.
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

Stand alone video server

Post by Snelvuur »

If you go to the admin section of the 241q, it shows examples for streaming aswell. Dont forget for some of the streaming it either requires the client to add some plugin to IE, or to have Java i think.

If your restrictions are high on vista, it wont install the plugin for instance.

Maybe the next part doesn't look that well but i'll try:


<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the URL of your camera
var BaseURL = "http://webcams.binkey.nl/";

// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = "352";
var DisplayHeight = "240";

// This is the path to the image generating file inside the camera itself
var File = "axis-cgi/mjpg/video.cgi?resolution=CIF&camera=1";
// No changes required below this point
var output = "";
if ((navigator.appName == "Microsoft Internet Explorer") &&
(navigator.platform != "MacPPC") && (navigator.platform != "Mac68k"))
{
// If Internet Explorer under Windows then use ActiveX
output = '<OBJECT ID="Player" width='
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CLASSID="CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044" ';
output += 'CODEBASE="';
output += BaseURL;
output += 'activex/AMC.cab#version=4,0,18,0">';
output += '<PARAM NAME="MediaURL" VALUE="';
output += BaseURL;
output += File + '">';
output += '<param name="MediaType" value="mjpeg-unicast">';
output += '<param name="ShowStatusBar" value="0">';
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<param name="StretchToFit" value="1">';
// Remove the '//' for the ptz settings below to use the code for click-in-image.
// output += '<param name="PTZControlURL" value="';
// output += BaseURL;
// output += '/axis-cgi/com/ptz.cgi?camera=1">';
// output += '<param name="UIMode" value="ptz-relative">'; // or "ptz-absolute"
output += '<BR><B>Axis Media Control</B><BR>';
output += 'The AXIS Media Control, which enables you ';
output += 'to view live image streams in Microsoft Internet';
output += ' Explorer, could not be registered on your computer.';
output += '<BR></OBJECT>';
} else {
// If not IE for Windows use the browser itself to display
theDate = new Date();
output = '<IMG SRC="';
output += BaseURL;
output += File;
output += '&dummy=' + theDate.getTime().toString(10);
output += '" HEIGHT="';
output += DisplayHeight;
output += '" WIDTH="';
output += DisplayWidth;
output += '" ALT="Camera Image">';
}
document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen"

// Remove the '//' below to use the code for Motion Detection.
// document.Player.UIMode = "MDConfig";
// document.Player.MotionConfigURL = "/axis-cgi/operator/param.cgi?ImageSource=0"
// document.Player.MotionDataURL = "/axis-cgi/motion/motiondata.cgi";
</SCRIPT>

MPEG-4 video
The AXIS Media Control only works in Windows Internet Explorer

Web browsers can include images from different sources onto the same page. This makes it very easy to add live video from your AXIS 241Q Video Server to your own web page. You can even save an HTML page on your local hard disk and use it to display live images from the AXIS 241Q.

To incorporate the image into your own web page, copy the source code shown below into the page. (It is sometimes necessary to first paste the code into e.g. Notepad, and then select and copy it again before pasting it into the web page. This depends on which editor you are using.)

<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the URL of your camera
var BaseURL = "http://webcams.binkey.nl/";

// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = "704";
var DisplayHeight = "480";

// This is the URL of the generated media.
// 1 corresponds to video source one. Change this number to view another video source.
var MediaURL = "rtsp://webcams.binkey.nl:554/mpeg4/1/media.amp";

var output = "";
output = '<OBJECT ID="Player" width='
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CLASSID="CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044" ';
output += 'CODEBASE="';
output += BaseURL;
output += 'activex/AMC.cab#version=4,0,18,0">';
output += '<PARAM NAME="MediaURL" VALUE="';
output += MediaURL + '">';
output += '<param name="MediaType" value="auto-sense">';
output += '<param name="ShowStatusBar" value="0">';
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<param name="StretchToFit" value="1">';
output += '<BR></OBJECT>';

document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen"

</SCRIPT>

MPEG-4 video in QuickTime
QuickTime does not support the current MPEG-4 setting.
Go to Setup->Video&Image->Advanced->MPEG-4 and set Video object type to 'Simple' for QuickTime to work.

Web browsers can include images from different sources onto the same page. This makes it very easy to add live video from your AXIS 241Q Video Server to your own web page. You can even save an HTML page on your local hard disk and use it to display live images from the AXIS 241Q.

To incorporate the image into your own web page, copy the source code shown below into the page.
When using QuickTime, this file must be placed in the same directory as the file containing the code below.

To incorporate the image into your own web page, copy the source code shown below into the page. (It is sometimes necessary to first paste the code into e.g. Notepad, and then select and copy it again before pasting it into the web page. This depends on which editor you are using.)

<SCRIPT LANGUAGE="JavaScript">

// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = 704;
var DisplayHeight = 480 + 16;

// This is the URL of the generated media.
// 1 corresponds to video source one. Change this number to view another video source.
var MediaURL = "rtsp://webcams.binkey.nl:554/mpeg4/1/media.amp";

var output = "";

output = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width=';
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
output += '<param name="src" value="AxisMoviePoster.mov">';
output += '<param name="autoplay" value="true">';
output += '<param name="controller" value="true">';
output += '<param name="qtsrc" value="';
output += MediaURL;
output += '">';
output += '<embed src="AxisMoviePoster.mov" width=';
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' qtsrc="';
output += MediaURL;
output += '" autoplay="true" controller="true" target="myself"';
output += ' PLUGINSPAGE="http://www.apple.com/quicktime/download/"></embed>';
output += '</OBJECT>';

document.write(output);

</SCRIPT>

// Erik (binkey.nl)
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Stand alone video server

Post by Digit »

The "if" doesn't belong there, that's for sure. But i hope you did change the BaseURL, as snelvuur showed you in his example, otherwise it will not work.
User avatar
Wima
Member
Member
Posts: 127
Joined: Sun Aug 16, 2009 11:05 am
Location: Netherlands

Stand alone video server

Post by Wima »

I found this one on the Axis site, it works fine with me

Code: Select all

<html>
<title>Live Video from AXIS Camera</title>
<body>
<h2 align="left">Video</h2>


<left>



<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the URL of your camera
//Example: var BaseURL = "http://172.21.1.122/";

var BaseURL = "http://xx.xx.x.x:xx/";

// The two following lines need to be changed if an an AXIS 241S(A)/241Q(A)/240Q/243SA is used:

var Camera = "n"; // If you use an AXIS 240Q/241S(A)/241Q(A)/243SA, comment away this line by inserting "//"
// var Camera = "n"; // Change n to the Video source used in the AXIS 240Q/ 241S(A)/241Q(A)/243SA and remove "//"

// Go to the camera used and remove the "//" in front of the ImageResolution to be used.
// Note that only one can be enabled at a time. 

// List of additional available resolutions is shown in the product's configuration.

// AXIS 207/210/210A/211/211A/212 PTZ/216FD/221/225FD
var ImageResolution = "320x240";var DisplayWidth = "280";var DisplayHeight = "200";
// var ImageResolution = "640x480";var DisplayWidth = "640";var DisplayHeight = "480";

// AXIS 213 PTZ/214 PTZ/231D(+)/232D(+)/240Q/241S(A)/241Q(A)/243SA PAL
// var ImageResolution = "352x288";var DisplayWidth = "352";var DisplayHeight = "288";
// var ImageResolution = "704x576";var DisplayWidth = "704";var DisplayHeight = "576";

// AXIS 213 PTZ/214 PTZ/231D(+)/232D(+)/240Q/241S(A)/241Q(A)/243SA NTSC
// var ImageResolution = "352x240";var DisplayWidth = "352";var DisplayHeight = "240";
// var ImageResolution = "704x480";var DisplayWidth = "704";var DisplayHeight = "480";

// This is the path to the image generating file inside the camera itself
var File = "axis-cgi/mjpg/video.cgi?resolution="+ImageResolution;
// No changes required below this point 
if (Camera != "") {File += "&camera=" + Camera;}
var output = "";
if ((navigator.appName == "Microsoft Internet Explorer") &&
(navigator.platform != "MacPPC") && (navigator.platform != "Mac68k"))
{
// If Internet Explorer under Windows then use ActiveX 
output = '<OBJECT ID="Player" width='
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CLASSID="CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044" ';
output += 'CODEBASE="';
output += BaseURL;
output += 'activex/AMC.cab">';
output += '<PARAM NAME="MediaURL" VALUE="';
output += BaseURL;
output += File + '">';
output += '<param name="MediaType" value="mjpeg-unicast">';
output += '<param name="ShowStatusBar" value="0">';
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<param name="StretchToFit" value="1">';
output += '<BR><B>Axis Media Control</B><BR>';
output += 'The AXIS Media Control, which enables you ';
output += 'to view live image streams in Microsoft Internet';
output += ' Explorer, could not be registered on your computer.';
output += '<BR></OBJECT>';
} else {
// If not IE for Windows use the browser itself to display
theDate = new Date();
output = '<IMG SRC="';
output += BaseURL;
output += File;
output += '&dummy=' + theDate.getTime().toString(10);
output += '" HEIGHT="';
output += DisplayHeight;
output += '" WIDTH="';
output += DisplayWidth;
output += '" ALT="Voordeur">';
}
document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen";

</SCRIPT>
</body>
</html> 
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>

Thanksfor thinking [:)]

-------------------------------
Even the genious ask questions.
thumper59
Starting Member
Starting Member
Posts: 1
Joined: Tue Jun 23, 2009 9:52 pm
Location: United States
Contact:

Stand alone video server

Post by thumper59 »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Bwired</i>
<br />Hi Henk,
Its about time you open your Domotica to the world [;)]
I had the privilige to look at your cam and the quality is great and zooming posibilties are very good!

For the forum information I use the AXIS 241Q http://www.axis.com/products/cam_241/index.htm standalone Videoserver which has four PAL/NTCS inputs and motion detection for each channel. The best option on the AXIS 241q howeever is the great API interface, the videoserver can be totally controlled by my Home automation system. If an event uccors like somebody is ringing the doorbell, I can easely take a picture or record a video off every channel. At the moment I have four camera's attacted to the AXIS 241Q
<ul><li>Sony EVI-D100 PTZ CCD Visca Camera 10 x optical zoom</li>
<li>Sony EVI-D30 PTZ CCD Visca Camera 12x optical zoom</li>
<li>Sony FCB-IX47P CCD Visca Camera 18x zoom </li>
<li>Sunkwang SK-D105 Dome camera with a 1/3 Sony CCD</li>
</ul>My Day and Night security camera is Mobotix MD10-Night http://www.mobotix.com/eng/products/m10 ... era_series This camera has its own webserver, motion detecting, a dual lens and also a complete API interface.

Pieter Knuvers
www.bwired.nl Online House in the netherlands. Domotica, Home Automation.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Post Reply

Return to “Webcams & Camera Stuff Forum”