Page 1 of 1

feeding http streaming(mpeg) in ZM

Posted: Thu Mar 17, 2005 9:33 am
by amit
I have configure one machine with bttv card, and camera attached with it.
Now i am streaming the data from the camera using http streaming...

like http://(hostname):8081

Can any one tell me about this usage...or whether this can be done with ZM..

The stream can be received from other machine, I have tested it but now i would like to use it with ZM to record events..
________
vaporizer

Posted: Thu Mar 17, 2005 9:41 am
by cordel
Check this thread. I think it has what you are looking for.
http://www.zoneminder.com/forums/viewtopic.php?t=4150
Cheers,
Cordel

Posted: Thu Mar 17, 2005 12:25 pm
by amit
I have tried setting but i don't see anything in the window...

i have installed Zm on 3 machine with camera on 2 machine attached with bttv card..
which is working on the same machine..
but i want there output to be input for third ZM
i have got my separate LAN...with IP's 192.168.2.10,11 and 12..
I want 2 of them 2 work as client..
In third ZM i have added 2 monitors..
with details like:
Hostname :192.168.2.12
port:80
path: /cgi-bin/zms?mode=jpeg&monitor=1&scale=100&maxfps=5..

I even tried with user and pass option in string..
I have one user 'ashish' with password 'ashish'
i appended this with path string..

but i don't see anything in third ZM it shows 0 fps ..
Please tell me the configuration at the earliest

Thanks in advance..
________
R16

Posted: Thu Mar 17, 2005 10:16 pm
by cordel
then the settings you wnat are in the above string

Put in your host name 192.168.2.10
the port apache is rumming on 80
your remote host path will depend on your installation. For RPM version
/cgi-bin/zm/zms?mode=jpeg&monitor=2&scale=100&maxfps=2&user=amituser&pass=amitpassword
or could be
/cgi-bin/zms?mode=jpeg&monitor=2&scale=100&maxfps=2&user=amituser&pass=amitpassword
then you have to set Remote image colours and image size.
If you have colotize jpeg set on the remote machines the you should set 24 bit color even if the camera is B/W.
Image size must match the setting on the remote.
Hope that helps.
Cordel

Posted: Fri Mar 18, 2005 4:08 am
by amit
if i directly probide this link in browser I can see the stream without any user or password

http://192.168.2.12/cgi-bin/zm/zms?mode ... 0&maxfps=5
but when these settings are configured in ZM and i try to open the monitor for view i does not show anything and rate if 0fps,
there were some permission related error in log
I changed permissions and now there is no error in log I will provide the log to you..

one more thing..

I am trying to transcode the v4l stream which is raw, and convert it into mpeg whch is being streamed to http://192.168.2.12:8081....
can i use this with ZM...?
I am able to receive it form other machines.

Please help me out of this problem...
I don't have network camera and i'm trying to work with my v4l capture card cameras to work with ZM,
________
free vaporizer

Posted: Fri Mar 18, 2005 4:59 am
by cordel
If you have authintication turned on you must provide a username and password else if it is off (not checked) you do not need to provide them.
0fps is a good indication that you are not getting through or one of your settings is incorrect.
Also any time you change any of this setting for the cameras on either machine you need to restart zm on the machine you changed (especialy for device and colour pallet changes).
If you have ZM_COLOUR_JPEG_FILES checked on the remote machine then you need to set Remote Image Colours to 24 bit colour on the server.
The images being streamed need to be in mjpeg or jpeg formats as it will not capture mpeg at this time.
What are your camera settings for the remote and what settings do you have for the server.
Here is my settings.
Remote:
/dev/video0 (1)
Palette Grey
Capture Width 320
Capture Heght 240

Server:
remote host name- 192.168.1.240
port 80
Remote Host Path-/cgi-bin/zm/zms?mode=jpeg&monitor=2&scale=100&maxfps=2&user=******&pass=*****
Remote Image colours- 24 bit colour
Capture Width- 320
Capture Height- 240

as you can see I have authintication turned on and have the user name and password in the path. Also I have the remotes ZM_COLOUR_JPEG_FILES checked so even though it's a B/W image the remote has made it into a colour image and is so set on the server.

Posted: Fri Mar 18, 2005 5:46 am
by amit
I am trying to provide the path for local camere in remote camera but even that is not detected by ZM,
i.e
local machine IP 192.168.2.12
camera settings are /dev/video0, channel=1, Pallete=RGB565, width=320,height=240,
remote camera setting
host =192.168.2.12
port=80
path=as visible by checking the properties of local camera..
RGB24

with no authentication in ZM on both sides..
and I have configured the ZM as mentioned by You..
________
starcraft 2 replays

Posted: Fri Mar 18, 2005 6:39 am
by cordel
So your path is set too
/cgi-bin/zm/zms?mode=jpeg&monitor=2&scale=100&maxfps=5
???
Are there any errors showing up in any of your logs.

Posted: Fri Mar 18, 2005 7:14 am
by amit
yes this is the path I have set..
And there are no error in log files...

What kind of error are you expecting..?

It is working for local camera...?but why not the same setting be used for remote camera...?

can you help me in 2 point i mentioned where i am using trscode and reading raw stream, and streaming through http on a particular ports..

Thanks for taking care about my topic...
Please give me ideas if you are expecting any errors..
I will paste the log file if you want to have a look ...
________
SH150i

Posted: Fri Mar 18, 2005 7:38 am
by cordel
amit wrote: can you help me in 2 point i mentioned where i am using trscode and reading raw stream, and streaming through http on a particular ports..
Zoneminder can only capture streams of mjpeg. It can also of course capture jpeg frames. Any other format will not work to my knowledge at this time.

Posted: Fri Mar 18, 2005 7:55 am
by amit
I can't tell how happy i am ...
for the past few days i was trying with zms
this time i configured with nph-zms as my server ..
and i am to see the stream as well as record event.s...
no authentication...
othe configuration remaining the same..

now i will try to use transcode...

Thanks cordel for your constant replies and suggestions....and will look for that in the future too..

Posted: Fri Mar 18, 2005 7:59 am
by cordel
No proplem, Although it sounds like you got it your self.