[Elphel-support] compressor state
Scott Janz
scott.janz at nasa.gov
Tue Feb 2 14:24:41 PST 2010
Andrey Filippov wrote:
>
> On Tue, Feb 2, 2010 at 1:10 PM, Scott Janz <scott.janz at nasa.gov
> <mailto:scott.janz at nasa.gov>> wrote:
>
> Software version 8.0.4.3
>
> I don't need to turn off the compressor, I just need a reliable
> way of checking it to make sure it hasn't crashed and then if it
> has crashed, to restart it. The event I described was just such an
> event, I was running the camera and checking elphel_get_state()
> periodically and it was always returning "8". But when I checked
> the images that I store to the hard drive using snapfull.php, they
> were garbage because the compressor had stopped.
>
>
> Scott,
>
>
> The easiest way to check that everything is running OK is to read
> status XML file from imgsrv:
>
>
> http://<camera_ip>:8081/meta
>
> It reads data from the circular output buffer, so if the frame number
> increments - everything should be running OK.
>
> There are also ways how to check the same from withing php script in
> the camera, but imgsrv method seems to be the most independent of the
> other functions of the camera
>
Thanks for that suggestion, that should work fine.
> Why do you use snapfull.php - do you have different resolution video
> being streamed or recorded simultaneously? The purpose of that program
> is to interrupt video fro as little as possible to acquire different
> (usually maximal) resolution images. If you just need to record images
> you may use either camogm (to record video/images to the HDD/SSD
> attached to the camera) or imgsrv if you transfer images over the
> network, i.e.
>
> http://<camera_ip>:8081/bimg
>
> or
>
> http://<camera_ip>:8081/img
>
> "bimg" is preferrable if the network speed is limited and there is
> arisc that 19MB video buffer may be overrun while image is being
> transferred to the host - it will first save it in the camera, "img"
> trasfers directly from the 19MB circular buffer and so allows higher
> frame rate.
>
> Andrey
>
>
>
>
Let me describe our application. The camera is housed in an enclosure
along with other instruments that will be flying onboard the NASA Global
Hawk in March-April of this year. The instrument must operate
autonomously as we will not always have a data link available.
Currently I plan to stream the video at low resolution to a data
recorder on the aircraft (or to the ground if we have a link) and
capture full resolution images to the camera HD once every 10 seconds. I
do this using phpshell.php to launch a local instance of wget
http://localhost/snapfull.php If there is a "hiccup" and the camera
crashes, I need to program an automatic reset into the computer which is
controlling it (I am using Labview to send the http GET queries to the
camera)
thanks,
-scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20100202/b12fab3a/attachment-0002.html>
More information about the Support-list
mailing list