Hello,
I’m trying to download a recording from a specific camera. I can only use the Protocol Integration, developing in Python.
From what I’ve seen in the documentation the ImageServer protocol has commands to get individual images (Goto, Next). I already used them with success. Then I’ll have to create a movie file with the received images.
Is there a way to tell the server to create a movie file and then download it?
Please advise which is the best way to handle this.
Download recording would be called exporting in Milestone terminology.
There is one option to use protocol methods and have the capaility of exporting. In the Mobile Server you can make exports. In the Mobile clients and in the Webclient you can see how you can create and download exports in AVI format. You can utilize this using the Mobile Server protocol. You will have to make sure a Mobile Server is deployed together with the rest of the VMS but I believe this is also a popular choice.
The Mobile Server protocol samples does not include a show of the export functionality, but it is documented how to use in the MIP Documentation.
Thank you for your answer,
I was looking into the TcpVideoViewer sample, trying to get recorded images using Goto and Next requests from the ImageServer protocol. I can download separate images but I’ll need to compose them in a movie.
Do you think this is worth trying or you suggest better using the MobileServer protocol which requires a Mobile Server?
I have to point out that I also used the ImageServer protocol to get live streaming which worked well.
Maybe it is a decision that should be based on you expertise and what you feel comfortable with..
To add to the options..
Using the Image Server protocol it is posible to ask for raw video, if you have the experience to easily process the data that might be H.264 (or MPEG or JPEG depending on the camera and setup) and convert that to a movie file, this might be the choice. (See MIP Documentation: The GenericByteData format)
Three options:
Image Server protocol get JPEG, make a movie based on it.
Image Server protocol get raw data, make a movie based on it.
Mobile Server protocol get a finished AVI file ready for use.
@Simon Reed From your post, you have a python script to get image from Image server successfully. Currently I am trying to using python to get image from Image Server. But I am new in this area and have some troubles. Appreciated if you could send me the sample python codes on how you did it? My email address is luzhangyi319@gmail.com. Thanks very much.