Vigiora

Denne artikel findes endnu ikke på Dansk. Her er den på engelsk.

Three small camera settings: the sub-stream, the camera's clock, and what the live grid shows

Why some tiles on the Monitors page play video and others refresh a still every 5 seconds, why the time burned into a picture can be wrong while Vigiora's own times are right, and what to set on the camera to fix both.

· 6 min. læsning · Vis som Markdown

Del
A camera page with the live picture of a gated yard at night, the Auto, HD and SD switch and the camera's Info panel

Two questions come up on almost every new server. Why does this camera move on the Monitors page and that one doesn't? And why does the picture say 01-02-1970? Both are camera settings rather than Vigiora settings, both take five minutes, and both change how the system feels every day. This article explains what the live grid actually shows, how to give a camera a sub-stream, and how to put the camera's clock right.

What the live grid shows#

Each tile on the Monitors page is live, but not every tile is video:

  • A camera with a sub-stream plays real video in the tile, over WebRTC, from that smaller stream. It is low bitrate on purpose: twelve such tiles are lighter than one full-resolution stream.
  • A camera without a sub-stream shows a still picture refreshed every 5 seconds. Twelve full-resolution streams in small tiles would cost more bandwidth and CPU than an overview deserves. The full stream plays as soon as you open the camera.

So a tile that "doesn't move" isn't broken: the camera has no second stream, and Vigiora chose the cheap way to keep the overview current. The green dot and the REC badge tell you whether it is online and recording, exactly as for the video tiles; see Grid view.

There is one situation where a still can quietly go stale. A browser tab left in the background, or a window hidden behind another, has its timers slowed down or stopped by the browser, so the 5-second refresh stops too, and the tile keeps the last picture it got. Before 1.6.19 it did so silently. From version 1.6.19, a tile whose picture is older than about 20 seconds shows a small badge, Last picture 10 min ago, and refreshes the moment the tab comes back to the front. A tile that can't get a picture at all says Reconnecting….

Give the camera a sub-stream#

Nearly every IP camera has a second, smaller stream. It costs nothing, and Vigiora uses it for more than the grid: Auto and SD on the camera page, motion detection, and the Record low quality (sub-stream) option. What differs by brand is the address.

The Recording tab with Recording on, the sub-stream option, the retention list and the estimated disk usage
Record low quality (sub-stream): one of the places the second stream is used. Screenshot from a Vigiora demo server with sample data.
  1. Turn the sub-stream on in the camera

    In the camera's own web settings, usually under Video or Streaming, make sure the second stream (sub stream, stream 2, extra stream, fluent) is enabled. Set it to H.264, about 640×360, 10–15 fps. That is light to stream and good enough for motion detection.

  2. Know its address

    The documented paths are:

    BrandMain streamSub-stream
    Hikvision…/Streaming/Channels/101…/Streaming/Channels/102
    Dahua…/cam/realmonitor?channel=1&subtype=0…&subtype=1
    Reolink (typical)…/h264Preview_01_main…/h264Preview_01_sub
    TP-Link Tapo…/stream1…/stream2

    Hikvision and Dahua paths are standard; the Reolink ones vary by model and firmware. For anything else, the camera's manual or its web settings page under Network → RTSP has the address. See RTSP address examples and, for Tapo, the Tapo article.

  3. Let Vigiora find it, or tell it

    When you add a camera, the Settings step shows the Main stream and Sub stream Vigiora found. For Hikvision and Dahua addresses it tries the matching sub-stream by itself; for cameras found over ONVIF it uses the second profile the camera announces. If the sub-stream was off in the camera when you added it, turn it on and save the camera again. A camera connected through a Vigiora Client has a Sub-stream URL field on the Client's page. Over the API, PATCH /cameras/{id} takes sub_stream_url.

  4. Check the tile

    Back on the Monitors page, the tile now plays video, and on the camera page Auto uses the sub-stream. If not, see No sub-stream.

Put the camera's clock right#

The date and time burned into the top corner of the picture are drawn by the camera, from its own clock, before the video ever reaches Vigiora. Vigiora has no way to correct them. Two tell-tale signs:

  • A picture stamped 01-02-1970, or a date years ago, comes from a camera with no time source: it started counting from zero when it last lost power.
  • A picture that is a round number of hours off, 7 or 15 hours, comes from a camera with the right time and the wrong time zone, or with daylight saving set the wrong way.

Vigiora's own times are a different matter. The recording timeline, the alert times, the Guardian history, the Briefing and the Stamp on an exported snapshot all use the server's clock, which Linux, macOS and Windows keep right over the internet. So a wrong overlay misleads you only when you read the picture itself, or when you send someone a clip and they read the corner. That is enough reason to fix it.

  1. Enable NTP on the camera

    In the camera's web settings, under System → Time or similar, choose NTP (automatic time) instead of manual time. For the server address, use pool.ntp.org, or the address of your Vigiora server if the cameras have no internet access. Many cameras on a camera-only network can't reach the internet at all, which is exactly why they show 1970.

  2. Set the time zone

    Pick your time zone in the same screen, and turn daylight saving on or off as your region does. Save and reload the live picture: the overlay should now match the clock on your wall.

  3. Decide whether you want the overlay at all

    If you don't trust the camera's clock, turn its on-screen date and time off (under OSD or Overlay) and rely on Vigiora's times: the Stamp button in Playback adds the camera name and time to any snapshot you export. See Snapshots and clips.

Playback opens at the current time#

A related change in 1.6.19: opening Playback for today puts the cursor at the current time, at the end of the newest recording, with the latest frame paused there. Until now it opened on the first recording of the day, a whole night away from what just happened. Links that carry a time, from an alert or a chat answer, still open at that time, and another day still opens on its first recording. See Playback.

Frequently asked questions#

Does the sub-stream change what is recorded?#

Only if you ask it to. Recording uses the main stream unless you tick Record low quality (sub-stream) on the camera's Recording tab, which saves about 60–80% of disk and bandwidth at the cost of detail. See Recording and retention.

My camera's overlay is right but Vigiora's times are wrong#

Then the server's clock or time zone is wrong, which is rarer. Check the date, time and time zone of the computer that runs Vigiora, and that it synchronises time over the internet. Vigiora shows times in the browser's time zone, so a laptop set to another zone shows other hours.

Do the stills in the grid cost AI credits?#

No. The grid takes its pictures from the camera's stream on the server. AI credits are used by Core AI features such as Guardian descriptions and chat, never by live view or playback.

  1. Live view

    Auto, HD and SD, and what each one plays: Video quality.

  2. Troubleshooting cameras

    Wrong paths, missing sub-streams and Wi-Fi cameras: Troubleshooting cameras.

  3. Motion detection

    Why the sub-stream makes motion checks cheap: Motion detection.

Three settings, one evening: give every camera its sub-stream, point it at an NTP server, and set the time zone. The Monitors page will move and the pictures will tell the truth. If you don't have a server yet, download Vigiora and try it with the cameras you already own.

Del

Prøv det på dine egne kameraer

Vigiora Server er gratis med ubegrænset antal kameraer. AI på 2 kameraer er gratis i vores kampagne. Installer den på en Linux-maskine med én kommando.