altUI Video Display Issues x264

Hi

Some minor issues that perhaps others have noticed.

For one of my H264 cameras, for whatever reason, it takes up to 3 seconds to produce a jpg after an HTTP request. It seems that altUI polling is faster – that’s OK, but it results in a blank image showing up on my browser when nothing is returned from the camera. Would it be possible to detect this condition, and only update the image if a valid jpg is retrieved?

For all of my H264 cameras, I seem to be constrained to 1x1 aspect ratio. No matter what I do when editing the widget, I cannot get it to the native 16x9 format.

I’m attaching an example for reference.

Thanks!

[quote=“tedp, post:1, topic:195282”]Hi

Some minor issues that perhaps others have noticed.

For one of my H264 cameras, for whatever reason, it takes up to 3 seconds to produce a jpg after an HTTP request. It seems that altUI polling is faster – that’s OK, but it results in a blank image showing up on my browser when nothing is returned from the camera. Would it be possible to detect this condition, and only update the image if a valid jpg is retrieved?

For all of my H264 cameras, I seem to be constrained to 1x1 aspect ratio. No matter what I do when editing the widget, I cannot get it to the native 16x9 format.

I’m attaching an example for reference.

Thanks![/quote]

I have a few question for you:

what is the altui ID of that camera ?
can you go into Misc/ DEBUG then chose One Device(s state and type in that ALTUI ID in the box ( 0-nnn ) then share the result?
What is the value of your option “Show Video Thumbnail in Local mode”?
are you in local or remote mode ?

There are two cameras, one works better than the other:

The one that has problems (Amcrest)
AltUI ID: #0-48
{
“altuiid”: “0-48”,
“device_type”: “urn:schemas-upnp-org:device:DigitalSecurityCamera:1”,
“states”: [
{
“service”: “urn:micasaverde-com:serviceId:HaDevice1”,
“variable”: “LastUpdate”,
“value”: “0”,
“id”: 3
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “PreRollBuffer”,
“value”: “0”,
“id”: 2
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “Timeout”,
“value”: “10”,
“id”: 1
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “URL”,
“value”: “/cgi-bin/snapshot.cgi?channel=1”,
“id”: 0
}
]
}

The “Show Video Thumbnail in Local mode” is checked. I mostly use it in remote mode, but when I’m at the house, the same problem happens/

Thanks
-Ted

[quote=“tedp, post:3, topic:195282”]There are two cameras, one works better than the other:

The one that has problems (Amcrest)ID: #0-48
{
“altuiid”: “0-48”,
“device_type”: “urn:schemas-upnp-org:device:DigitalSecurityCamera:1”,
“states”: [
{
“service”: “urn:micasaverde-com:serviceId:HaDevice1”,
“variable”: “LastUpdate”,
“value”: “0”,
“id”: 3
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “PreRollBuffer”,
“value”: “0”,
“id”: 2
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “Timeout”,
“value”: “10”,
“id”: 1
},
{
“service”: “urn:micasaverde-com:serviceId:Camera1”,
“variable”: “URL”,
“value”: “/cgi-bin/snapshot.cgi?channel=1”,
“id”: 0
}
]
}

The “Show Video Thumbnail in Local mode” is checked. I mostly use it in remote mode, but when I’m at the house, the same problem happens/

Thanks
-Ted[/quote]
I do not see any DirectStreamingURL variable, that could be a problem
can you share the variables for the one that works ?

You are correct – If I remember correctly, nothing worked with the DirectStreamingURL. The Amcrest does NOT provide an http stream (rtsp only for video, http only for a single jpg framegrab). I tried using the http framegrab url in the DirectStreamingURL (/cgi-bin/snapshot.cgi?channel=1), but that completely broke things. It was a pain to remove the DirectStreamingURL – I’ll put it back if you think it will help things.

Thanks
-Ted

[quote=“tedp, post:5, topic:195282”]You are correct – If I remember correctly, nothing worked with the DirectStreamingURL. The Amcrest does NOT provide an http stream (rtsp only for video, http only for a single jpg framegrab). I tried using the http framegrab url in the DirectStreamingURL (/cgi-bin/snapshot.cgi?channel=1), but that completely broke things. It was a pain to remove the DirectStreamingURL – I’ll put it back if you think it will help things.

Thanks
-Ted[/quote]

it is only useful if there is a direct camera url which can be used to get a video stream. so sounds like you can only have the image snapshot mode. as far as avoiding the blank when the request fails, I am not sure, will look a bit around that but not sure there is an easy way