With a little help from the manufacturer I have now got a video stream from my
Aviosys 9310 IP server.
http://cam.xsiteit.nl/snaphot.htm
The goal is to display this stream on a website I am building. The idea is simillar to something like this: http://cam.xsiteit.nl/video/camera.html
(this stream is made out of stored snapshots during the day by ftp)
The problem now is to get the pictures out of the raw stream data with a script
and display them as a live stream.
Below the suggestions I got from the engineers to get the images from the raw stream.
To get the JEPG format, please use ASCII character .
And
JGPS = 0x4a 0x50 0x47 0x53 (start to get Jepg format picture)
JGPE= 0x4a 0x50 0x47 0x45 (end to get Jepg format picture)
DATA[4]=(JPEGFileSize >> 24) & 0xff;
DATA[5]=(JPEGFileSize >> 16) & 0xff;
DATA[6]=(JPEGFileSize >> & 0xff;
DATA[7]=JPEGFileSize & 0xff;
I'v got to the point where I can save the images to a local file on my server, but I am still nog able to create a live stream... below the example.
http://cam.xsiteit.nl/readstream.php
Regards,
Peter