Page 1 of 1

stream.php is unable to grab all of the image data

Posted: Tue Dec 29, 2009 11:41 pm
by azadrecords
dear all,

I have spent countless hours trying to get video stream in ZM-monitor but it seems my stream.php is not able to grab all of the image data. Here is the error I get. Any help would be greately appreciated.

Thanks
Azad

I am running on Ubuntu 9.04

[Tue Dec 29 20:23:16 2009] [error] [client 10.244.136.144] Got unexpected message size, got 5, expected 260, referer: http://10.244.136.69/index.php?view=watch&mid=3
[Tue Dec 29 20:23:16 2009] [error] [client 10.244.136.144] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 92,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'Got unexpected message size, got 5, expected 260',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 119,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://10.244.136.69/index.php?view=watch&mid=3

Re: stream.php is unable to grab all of the image data

Posted: Fri Nov 26, 2010 5:33 pm
by punch-card
Did you ever figure out your problem? I've got the same issue but running on RHEL 5.4?
azadrecords wrote:dear all,

I have spent countless hours trying to get video stream in ZM-monitor but it seems my stream.php is not able to grab all of the image data. Here is the error I get. Any help would be greately appreciated.

Thanks
Azad

I am running on Ubuntu 9.04

[Tue Dec 29 20:23:16 2009] [error] [client 10.244.136.144] Got unexpected message size, got 5, expected 260, referer: http://10.244.136.69/index.php?view=watch&mid=3
[Tue Dec 29 20:23:16 2009] [error] [client 10.244.136.144] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 92,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'Got unexpected message size, got 5, expected 260',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 119,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://10.244.136.69/index.php?view=watch&mid=3

Posted: Sat Jan 22, 2011 10:28 pm
by krystian
same thing here.

There's something wrong with the sock.
Who knows what though :/

The only thing I can see wrong is that I don't get FPS info.
It works fine when using java applet though.

Posted: Sun Jan 23, 2011 12:36 am
by punch-card
I finally got my copy to completely work, after making sure I got a good compile of ffmpeg, and make sure a whole heard the configure switches were set and several other things....

If you are doing RHEL, I post somethings I have tried.... I wish I could say which was the magic bullet, but alias not.

Posted: Mon Jan 24, 2011 8:49 am
by krystian
Could you list the things you have tried?

It could really help as this one is just something I can't pass :/

Thanks,
Krystian

Posted: Mon Jan 24, 2011 6:00 pm
by punch-card
Check the last posting in this tread, that was one of the things that I did to address shared library issue. My configure string is in the thread, of course that would need to be tweaked for you acct/pass, where you install ffmpeg, and several other things.
http://www.zoneminder.com/forums/viewto ... ght=#66849
I am assuming your either running Centos or RHEL, because otherwise this is probably of no value. I started out by using some of the centos build thread.

If this is the case, I will pull my history stack one night this week and see if I can generate a list of thing that were attempted. I took a while...