jpg streaming not working with 1.19.0
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
I symlinked the directories to where they were supposed to go and that got rid of the errors in the apache log
But still no streaming.
It could be a mis-install as it was an upgrade rather than a clean install.
How do I COMPLETELY remove all trace of zm to start again?
If I remove /usr/local/bin/* /usr/lib/cgi-bin/* /var/www/* /var/lib/mysql/zm* will that be everything?
TIA Peter
But still no streaming.
It could be a mis-install as it was an upgrade rather than a clean install.
How do I COMPLETELY remove all trace of zm to start again?
If I remove /usr/local/bin/* /usr/lib/cgi-bin/* /var/www/* /var/lib/mysql/zm* will that be everything?
TIA Peter
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: jpg streaming not working with 1.19.0
I'm not sure about removing /usr/local/bin/* unless there's nothing else in a subdirectory of it. Also rather than delete /var/lib/mysql/zm* just do 'mysql mysql' and 'drop database zm;'. The only places zm installs to are the bin area (e.g /usr/local/bin), your web directory and the cgi-bin directory.
Phil,
Phil,
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
OK - I completely removed and rebuilt, dropping the database as you suggested.
There still seems to be some state left from last time though, for example the setting for CAN-STREAM
and the path to nph-zms were both there as before.
I also had some 'missing file' messages in the apache log, this time refering to my old camera name.
[Mon Mar 22 15:52:33 2004] [error] [client 127.0.0.1] File does not exist: /var/www/zm/events/Main-entrance/258/016-capture.jpg
^^^^^^^^^^^
(I've changed the camera to 'Front-door' this time
[Mon Mar 22 15:52:37 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:03 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:10 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:18 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:11:12 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
Is there anything else I can remove?!
TIA Peter
There still seems to be some state left from last time though, for example the setting for CAN-STREAM
and the path to nph-zms were both there as before.
I also had some 'missing file' messages in the apache log, this time refering to my old camera name.
[Mon Mar 22 15:52:33 2004] [error] [client 127.0.0.1] File does not exist: /var/www/zm/events/Main-entrance/258/016-capture.jpg
^^^^^^^^^^^
(I've changed the camera to 'Front-door' this time
[Mon Mar 22 15:52:37 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:03 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:10 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:01:18 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
[Mon Mar 22 16:11:12 2004] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin/nph-zms
Is there anything else I can remove?!
TIA Peter
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
OK - I think I've found where the 'state' was lurking. I think when I did a zmconfig.pl -noi it took the state out of the zm db and put it into zmconfig.txt - is that right?
So I think the thing I need to understand is why the image is
localhost/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=15
even though I have cambozola checked, and also why it doesn't work anyway like it did with 1.18
Next step I'll re-install 1.18 and see if it fixes it
I'll report back!
Au revoir, Peter
So I think the thing I need to understand is why the image is
localhost/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=15
even though I have cambozola checked, and also why it doesn't work anyway like it did with 1.18
Next step I'll re-install 1.18 and see if it fixes it
I'll report back!
Au revoir, Peter
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
Nope! Same problem with 1.18 Aaargh! It was working before.
For now I've re-installed 1.19 and left it with CAN-STREAM as NO so that at least it works with stills.
The frustrating thing is there are no errors being reported to any logs now.
I think what I'll do next is remove everything, even the source directories and start again from the tar ball.
Hey ho!
Peter
For now I've re-installed 1.19 and left it with CAN-STREAM as NO so that at least it works with stills.
The frustrating thing is there are no errors being reported to any logs now.
I think what I'll do next is remove everything, even the source directories and start again from the tar ball.
Hey ho!
Peter
Re: jpg streaming not working with 1.19.0
I've been having the same problem since upgrading to 1.19.0
Using Mozilla 1.6/Redhat 9/Kernel 2.6.1, I get no image when trying to view any type of jpeg stream. As Peter stated above, there doesn't appear to be any ZMS process running. It doesn't even look like it's trying to invoke ZMS. However, the only message I have in my Apache error log is:
jpegtopnm: WRITING PPM FILE
Using IE/Win2k/Cambozola, everything works great.
Using Mozilla 1.6/Redhat 9/Kernel 2.6.1, I get no image when trying to view any type of jpeg stream. As Peter stated above, there doesn't appear to be any ZMS process running. It doesn't even look like it's trying to invoke ZMS. However, the only message I have in my Apache error log is:
jpegtopnm: WRITING PPM FILE
Using IE/Win2k/Cambozola, everything works great.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: jpg streaming not working with 1.19.0
I think <i>jpegtopnm: WRITING PPM FILE</i> only would be generated if you are viewing thumbnails or event stills. SoI don't think it's anything to do with the problem. Have you tried running zms manually from the command line, you have to set the QUERY_STRING environment variable to the query string passed but at least that would indicate if it's starting and then exiting immediately.
Phil,
Phil,
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
Re: jpg streaming not working with 1.19.0
Yep. The <i>jpegtopnm: WRITING PPM FILE</i> messages do seem to tie in with requests like <i>"GET /zone/events/X/9999/009-thumb.jpg HTTP/1.1"</i> from a stills display.
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
Re: jpg streaming not working with 1.19.0
The live stream seems to log one <i>"GET /cgi-bin/nph-zms?mode=jpeg&monitor=7&scale=100&maxfps=15 HTTP/1.1"</i> event (with status 200 and a "-" for the data length) followed by multiple events like <i>"GET /zone/index.php?view=watchstatus&mid=7&last_status=0 HTTP/1.1"</i> on the webserver, and nothing else. No evidence of a zms (or nph-zms) process running.
The event replay seems to log one <i>"GET /cgi-bin/nph-zms?mode=jpeg&event=3982&scale=100&rate=100&maxfps=15 HTTP/1.1"</i> event with status 200 and a "-" for the data length. Again, no evidence of a running zms process.
Looks to me as if zms (or nph-zms) dies, but there's no error message in the Apache or ZM log files, and only <i>zms[999]: INF [Debug Level = 0, Debug Log = ]</i> in the syslog. Is there a way to get zms to log debug info somewhere?
The event replay seems to log one <i>"GET /cgi-bin/nph-zms?mode=jpeg&event=3982&scale=100&rate=100&maxfps=15 HTTP/1.1"</i> event with status 200 and a "-" for the data length. Again, no evidence of a running zms process.
Looks to me as if zms (or nph-zms) dies, but there's no error message in the Apache or ZM log files, and only <i>zms[999]: INF [Debug Level = 0, Debug Log = ]</i> in the syslog. Is there a way to get zms to log debug info somewhere?
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
Phil,
To save trekking backwards and forwards to the live system, I've brought the events directory home with me with a dozen or so recorded events - is there a way to insert these events into a blank system to test the streaming here?
Thanks, Peter
To save trekking backwards and forwards to the live system, I've brought the events directory home with me with a dozen or so recorded events - is there a way to insert these events into a blank system to test the streaming here?
Thanks, Peter
Re: jpg streaming not working with 1.19.0
Switching to nph-zms fixed jpeg streaming live streams here. However jpeg streaming recorded events does not work. The browser is clearly recieving data but displays only a broken image icon. A right click and selecting "view image" displays this error message:
The image “http://192.168.2.11/cgi-bin/nph-zms?mod ... &maxfps=15” cannot be displayed, because it contains errors.
Also Im getting a number of events that the duration is 0.00 seconds 21 frames, one alarm frame. I can view the stills but cambozola will not stream them. It works fine on the longer events, any over 21 frames. When trying to view the "0 duration" events Apache logs this error message:
[Mon Mar 22 19:44:49 2004] [error] [client 127.0.0.1] Premature end of script headers: zms
Best regards,
Ross
The image “http://192.168.2.11/cgi-bin/nph-zms?mod ... &maxfps=15” cannot be displayed, because it contains errors.
Also Im getting a number of events that the duration is 0.00 seconds 21 frames, one alarm frame. I can view the stills but cambozola will not stream them. It works fine on the longer events, any over 21 frames. When trying to view the "0 duration" events Apache logs this error message:
[Mon Mar 22 19:44:49 2004] [error] [client 127.0.0.1] Premature end of script headers: zms
Best regards,
Ross
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: jpg streaming not working with 1.19.0
Peter, unfortunately you can't just stream the images as the canonical details about an event are kept in the database.
Ross, I'll look into your error. When you say <i>jpeg streaming recorded events does not work</i> does that only apply to single alarm frame events as your second paragraph implies or all of them? If you log into your system and do
<i>export QUERY_STRING="mode=jpeg&event=153&scale=100&rate=100&maxfps=15"</i>
and then just type
<i>nph-zms > zms.out</i>
what do you get, also try it with just zms.
Phil,
Ross, I'll look into your error. When you say <i>jpeg streaming recorded events does not work</i> does that only apply to single alarm frame events as your second paragraph implies or all of them? If you log into your system and do
<i>export QUERY_STRING="mode=jpeg&event=153&scale=100&rate=100&maxfps=15"</i>
and then just type
<i>nph-zms > zms.out</i>
what do you get, also try it with just zms.
Phil,
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: jpg streaming not working with 1.19.0
Ross,
Just reproduced it here, so don't worry.
Phil,
Just reproduced it here, so don't worry.
Phil,
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: jpg streaming not working with 1.19.0
New 1.19.1 up with a couple of zms fixes, md5sum is 169048f467e40dc5b2fa68d05d75d0bb
Phil,
Phil,
- peterthevicar
- Posts: 42
- Joined: Tue Jan 06, 2004 11:07 pm
Re: jpg streaming not working with 1.19.0
Hi Phil,
Some good news, bad news and some questions
Good news:
1) Completely removing everything, even the source directory and re-installing 1.18.1 from the tar ball got me back to a system which streams jpg for live and recorded events
2) Copying the MySQL database and the /var/www tree to my laptop allows me to view the recorded events on my laptop (but only as stills)
Bad news:
1) A similar grand-scale complete re-install for v 1.19.0 doesn't manage to stream
Questions:
1) Should I be able to see streamed video on my laptop from the recorded events I've copied over?
I have all the database entries and all the /var/www tree is there anything else zms would need?
2) Is there anything in the new 1.19.1pre which might fix the streaming problem in 1.19.0?
3) You mentioned running zms directly with the QUERY_STRING set, what should I see if it's working?
Thanks, Peter
Some good news, bad news and some questions
Good news:
1) Completely removing everything, even the source directory and re-installing 1.18.1 from the tar ball got me back to a system which streams jpg for live and recorded events
2) Copying the MySQL database and the /var/www tree to my laptop allows me to view the recorded events on my laptop (but only as stills)
Bad news:
1) A similar grand-scale complete re-install for v 1.19.0 doesn't manage to stream
Questions:
1) Should I be able to see streamed video on my laptop from the recorded events I've copied over?
I have all the database entries and all the /var/www tree is there anything else zms would need?
2) Is there anything in the new 1.19.1pre which might fix the streaming problem in 1.19.0?
3) You mentioned running zms directly with the QUERY_STRING set, what should I see if it's working?
Thanks, Peter