v1.33.14 No longer able to stream to embedded page

Forum for questions and support relating to 1.33.x development only.
Locked
jonfear
Posts: 4
Joined: Sat Jul 13, 2013 11:36 am

v1.33.14 No longer able to stream to embedded page

Post by jonfear »

Hi folks

Almost certainly me being think but...

Have been running v1.32.9 for sometime now and have enabled a stream of one monitor to my weather web site. This workied really well and was locked down with user/pass, the code being well hidden.

Upgraded to v1.33.14 tonight and unable to stream. It looks like ti should work but just does not. Has anything specific changed between the versions?

The line I was using was: http://serverip/zm/index.php?view=watch ... ****&pass=***

Thoughts?

Jon
User avatar
iconnor
Posts: 3284
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.33.14 No longer able to stream to embedded page

Post by iconnor »

You seem to be mixing urls for different things.

http://serverip/zm/index.php?view=watch ... ****&pass=

should give you a website page with an embedded mjpeg live stream

http://serverip/zm/cgi-bin/zms?mid=10&user=***&pass=***

would give you the jpg stream. So you would use this in an image tag src=
Other options available here are buffers= which lets you specify how many frames you can rewind. scale= scales the image. width= and height= specify the desired image dimensions. mode=single would give you just a single snapshot. There are lots more but I'm tired of typing.
jonfear
Posts: 4
Joined: Sat Jul 13, 2013 11:36 am

Re: v1.33.14 No longer able to stream to embedded page

Post by jonfear »

Many thanks for the pointers...unfortunately it does not seem to help. I suspect that there is something missing on my fresh install at the server end rather than web end...

Unfortunately even if you looked at the web site, you would get few clues as to what was happening...

I guess I need to figure out how the system works from the ground upwards although any clues what might be missing would be appreciated...

Best wishes

Jon

ps the web page is www.wslwx.co.uk, the webcam stream worked fine with 1.32.9 which was under Ubuntu, now on Deb 10 with 1.33.14.

EDIT 20:40bst:

I have gone with the cgi-bin option as it worked previously...

OK some more confusing results. From the Apache error.log: Premature end of script headers: zms, referer: http://wslwx.co.uk/index.php
Oct 7 20:36:23 cctv zms_e0[7561]: ERR [zms_e0] [Neither a monitor or event was specified.]

Looking around, these appear to be the hardest faults to find. I have checked the cgi-bin path is declared correctly in the apache config file. Any other thoughts or clues will be welcomed...with open arms!

Jon
User avatar
iconnor
Posts: 3284
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.33.14 No longer able to stream to embedded page

Post by iconnor »

Sorry, led you astray earlier. When using zms, the parameter to specify monitor is monitor, not mid. So

http://serverip/zm/cgi-bin/zms?monitor= ... =***&pass=***
jonfear
Posts: 4
Joined: Sat Jul 13, 2013 11:36 am

Re: v1.33.14 No longer able to stream to embedded page

Post by jonfear »

Bingo!

Thank you for your help. That has saved a lot of head scratching!

Jon
Locked