Sony SNC-M3W ?

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
morfe
Posts: 7
Joined: Sun Jun 26, 2005 5:18 pm

Sony SNC-M3W ?

Post by morfe »

Hello,

Does this camera work with zm?

regards,
morfe
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The one thing that concerns me would be in the spec it says it requires Microsoft Internet Explorer® version 5.5 or 6.0 Which could mean that it needs activeX and would not be compatible.
hfwang
Posts: 6
Joined: Wed Feb 23, 2005 9:10 am

Post by hfwang »

Hi, does anybody have a bit more info on this please? I am trying the Sony SNC-M3W but have no luck thus far....

Looking at their webinterface (the source code) It seems the source path would be /img/mjpeg.cgi

Anybody any luck?

TIA

ps. Firefox will NOT work to see the webinterface....
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you 'wget' anything using that path from another machine?

Phil
hfwang
Posts: 6
Joined: Wed Feb 23, 2005 9:10 am

Post by hfwang »

zoneminder wrote:Can you 'wget' anything using that path from another machine?
Nope :-( I tried ethereal to see what it can catch, but it all is the normal http stuff. I guess they have hidden it in the java scripts.


Here is the source of the webpage that access the camera:
(sorry for long post)
-------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

<meta name="description" content="SONY EU v060">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">


<title>SONY Network Camera SNC-M3W</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="ig_n.css">




<script language="JavaScript" type="text/javascript" src="stdlib.js"></script>
<script language="JavaScript" type="text/javascript" src="message.js"></script>
<script language="JavaScript" type="text/javascript">
<!-- Start Script

var vmode = "mpeg"; // mpeg, jpeg
var PanTilt = "on"; // on, off
var UIcolor = "1" ; // 1= lightblue, 2 = blue, 3 = metal
var FrameRate = "30";
var UIlanguage = "1";

var lightblueBG = "#d2d4d9" ;
var blueBG = "#38599d" ;
var metalBG = "#666666" ;
var BGC = (UIcolor == "1")? lightblueBG : (UIcolor == "2")? blueBG : metalBG;

var imageSrcArray = new Array(
"lightblue/viewer_lightblue_setting_normal.gif",
"lightblue/viewer_lightblue_setting_highlight.gif",
"lightblue/viewer_lightblue_home_normal.gif",
"lightblue/viewer_lightblue_home_highlight.gif");

var setN = 0;
var setH = 1;
var homeN = 2;
var homeH = 3;

var no_images = imageSrcArray.length;
var imageArray = new Array(no_images);
for (var i=0; i < no_images; i++)
{
imageArray = new Image();
imageArray.src = imageSrcArray;
}

function setImage(imgObj, srcIndex)
{
if (document.images)
imgObj.src = imageArray[srcIndex].src;
}


// ================================= Player ===========================
function isIE(){
if(navigator.appName.indexOf("Microsoft") != -1)
return true;
else return false;
// test navigator.platform for Win32
// if(navigator.platform.indexOf("Win32") != -1)
}


var run_flag = false;
var intervalID = null;

function doPlay()
{
var serverAddress = "http://" + self.location.host ;
if( vmode == "jpeg" )
serverAddress += "/img/mjpeg.cgi";
else
serverAddress += "/img/video.asf";
if (document.SncView.SetSource(serverAddress, vmode, PanTilt, FrameRate, UIcolor, UIlanguage))
{
document.SncView.StartPlay(0,'');
run_flag = true;
}
}


function doStop()
{
if(isIE() && document.all)
if(document.all('SncView'))
{
// clearInterval(intervalID);
document.all('SncView').StopPlay();
}
}

function openSettingWin()
{
setWindowVar = window.open("/adm/file.cgi?next_file=setting.htm", "adminWin", setWinoptions);
}


// End Script -->
</script>


</head>

<body class="lightbluebg" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" onLoad="showMsg();doPlay()" onunload="if(run_flag==true) doStop()">

<form name="dummy" method="post" action="" onSubmit="return false;">
<table border=0 cellspacing="0" cellpadding="0" width="100%" ID="toprowDiv" bgcolor="#d2d4d9">
<tr>
<td nowrap width="220"><img src="lightblue/viewer_lightblue_SNC-M3W.gif" width="200" height="48" alt="" border="0"></td>

<td nowrap><a href="javascript:openSettingWin()"><img src="lightblue/viewer_lightblue_setting_normal.gif" width="38" height="31" alt="Setting" border="0" align="middle" onMouseOver="setImage(this,setH)" onMouseOut="setImage(this,setN)"></a>
<a href="javascript:openSettingWin()" class="lightblueCS">Setting</a>
&nbsp; &nbsp; &nbsp;
<a href="main.cgi?next_file=index.htm">
<img src="lightblue/viewer_lightblue_home_normal.gif" width="38" height="31" alt="" border="0" align="middle" onMouseOver="setImage(this,homeH)" onMouseOut="setImage(this,homeN)"></a>
<a href="main.cgi?next_file=index.htm" class="lightblueCS">Home</a></td>

<td nowrap align="right"> &nbsp; </td>
</tr>
</table>


<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td>
<object classid="clsid:8D7AFAB7-42D6-4671-A53E-CD355673F026"
CODEBASE="SonySncMView.cab#Version=1,0,2,0" id="SncView" WIDTH="870" HEIGHT="600">
<param name="_Version" value="65536">
<param name="_ExtentX" value="11774">
<param name="_ExtentY" value="6562">
<param name="_StockProps" value="0">
</object></td>
</tr>
</table>




<br> &nbsp;

<input type="hidden" name="message" value="">
<input type="hidden" name="todo" value="connect">

</form>

</body>
</html>
---------------------------------
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

have you tried:
http://<camera ip>/img/mjpeg.cgi
and see what you get?
Regards,
Cordel
hfwang
Posts: 6
Joined: Wed Feb 23, 2005 9:10 am

Post by hfwang »

cordel wrote:have you tried:
http://<camera ip>/img/mjpeg.cgi
and see what you get?
Regards,
Cordel
Yes I did, and that is what surprises me:

[root@fileserver /]# wget 192.168.5.192/img/mjpeg.cgi
--12:51:56-- http://192.168.5.192/img/mjpeg.cgi
=> `mjpeg.cgi'
Connecting to 192.168.5.192:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
12:51:56 ERROR 400: Bad Request.

My request for more info has arrived at Sony Japan. Maybe they are willing to share...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I notice from the script that this line

Code: Select all

 if (document.SncView.SetSource(serverAddress, vmode, PanTilt, FrameRate, UIcolor, UIlanguage)) 
implies that you will have to add one or more other parameters to the url. It may be the lack of these that it's complaining about. You should be able to find sensible values by rummaging around in the scripts. The other javascript files can just be downloaded just by using the full path to the script file if you need to look in them.

Phil
hfwang
Posts: 6
Joined: Wed Feb 23, 2005 9:10 am

Post by hfwang »

Ok, i received the CGI manual from sony. Unfortunately it is not working _yet_ if anybody is interested in receiving this manual, please leave your e-mail addresss.

-------
http://ip_adr/image[?speed=<value>]
http://ip_adr/image[?interval=<value>]
http://ip_adr/mjpeg[?speed=<value>]
http://ip_adr/mjpeg[?interval=<value>]
-------

When I put http://192.168.5.192/mjpeg?speed=20 I in a browser I get a prompt for saving or select programm (unkown filetype). When saving the file rapidly grows to several megabytes and keeps continuing, so it seems a stream. However I can not play the file back in any way or with any player.



TIA
lourens
Posts: 3
Joined: Mon Oct 03, 2005 5:43 pm

Post by lourens »

Anybody has allready any luck with this camrea?
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post by gneuf »

hfwang! Send me the docs! Here's where I'm at:

I eavesdropped on the active-x control conversation with the camera, and I have a complete list of what can be set and how, as well as the camera motion http commands.

I played around with the capture mechanism using various theories about the stream, and a lot of MJPEG research.

After finally decoding some segments of the stream, the main problem seemed to be that the camera would send non-image data interspersed with the video. I suspect it's the *audio*.

So, I modified the code to discard the wierd data chunks, and it gets about 3 seconds of video stream data before it croaks. I haven't looked at the captured stream to try and figure that one out yet - I got tired of waiting for the PTZ2N control code to write itself... :)

I'd *love* it if the docs decribe the stream it sends in JPG (mjpeg) mode - or at least be able to initialize the camera so it sends it's MPEG4 stream for capture and analysis. I've had to guess the .jpg parameters in order to figure out the MJPEG stream - even that might help me nail it.
Norbi
Posts: 2
Joined: Mon Apr 03, 2006 2:37 pm

Post by Norbi »

Hi all

I just got 2 Sony SNC-M3W cameras. Now all I need is a decent software that can record and move these cams on a predefined path at given time intervals. Did any of you guys have any luck configuring ZM to work jet?
Can I also please have the manual? (email: *removed*)
Gneuf: do you mind sharing with me the list of the controls? I am especially interested in the http motion commands, because if I can't find anything, I might end up writing a small app to move the camera around and use an other software to record.

thanks.
Last edited by Norbi on Tue Aug 05, 2008 6:12 pm, edited 1 time in total.
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post by gneuf »

The modified zmc code to enable streaming from the SNC-M3W can be found in the following post - look for the "here" link early on in the post:

http://www.zoneminder.com/forums/viewtopic.php?t=5878

I have a preliminary control script working. I've placed it here for you.

Remember, I said "preliminary". :) I'm trying to write it using some strange Perl techniques, so don't be surprised if it's a bit hard to fathom...
Norbi
Posts: 2
Joined: Mon Apr 03, 2006 2:37 pm

Post by Norbi »

Thanks for the script. It had all the info that I was looking for. Unfourtunately the client I am doing this for want it on a MS windows (No Linux) :( ), so probably what I will end up doing is write small app in VB with GUI where he can set up the travel path of the cameras and just use the software that came with the cameras to record.

or I might try to run linux & ZM on a virtual server... hmm...

anyway, thanks again.

N.
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post by gneuf »

Cheers, and good luck with your project!
Post Reply