Skip to content
infestdeadPublic

About

Live viewer for your own RTSP camera, built for watching a sleeping baby: movement highlight, sound line, visual alarms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ACam

A live viewer for your own IP camera, or for a spare phone used as one, built for watching a sleeping baby.

Most camera apps show you the picture and stop there. ACam adds what you actually want to know at a glance from across the room: is anything moving, is there any sound, and is this picture really live?

  • Movement highlight. Pixels that are slowly changing are tinted, so the rise and fall of a sleeping child's chest shows up even when it is far too small to notice in the picture. Zoom in on the cot and the detector works at a finer scale there.
  • Sound line. A scrolling line of the sound level, measured against the room's own background noise, so a quiet night and a noisy afternoon both read as "flat until something happens". Works with the speaker muted.
  • Movement line. A second line on the same graph shows how much of the picture is moving, so you can see a stir build up and set the alarm level against it.
  • Visual alarms. The edges of the screen pulse red when sound or movement passes a level you set, and an icon shows which alarm went off. Each alarm has its own switch and its own sensitivity, and its limit is drawn on the graph while you adjust it.
  • Liveness you can trust. A clock that only advances while frames are actually arriving, and a red badge the moment they stop. A frozen picture never looks like a calm one.
  • Low latency, pinch to zoom, several cameras.
  • A spare phone as the camera. For travelling: one phone stands in the room, the other watches. See Camera mode.

No account, no cloud, no analytics. The app talks to your camera and to nothing else.

ACam is not a safety or medical device. It does not measure breathing and must not be relied on to detect that a child is unwell or in danger. The movement highlight is a visualisation; it can miss things and it can show things that are not there.

Flashing light. The alarms pulse a red glow around the edge of the screen. If anyone who may see the screen is sensitive to flashing light, switch the alarms off (tap their labels in the drop-down).

Install

Download ACam.apk on the phone and open it. Android will ask once for permission to install apps from your browser or file manager; allow it and tap Install. Updates are installed the same way, over the top, and keep your cameras and settings.

The APK is signed with this certificate (SHA-256), should you want to check it: 96e216581f880683c9fb2a184344accc891e014e960d0462064605f6c91714a4

What you need

  • Android 7.0 or newer.
  • A camera or recorder that offers an RTSP stream (rtsp://… or rtsps://…) reachable from the phone: UniFi Protect, Reolink, Tapo, Amcrest, Dahua, Hikvision and most others. Or a second Android phone running ACam in camera mode.
  • H.264 or H.265 video. Sound is tested with AAC audio only.

Setting up

  1. Open the app; it asks for a camera straight away.
  2. Give it a name and paste the stream address. Where to find the address depends on the maker; search for "your camera RTSP URL".
  3. Tap the camera's name at the top left to switch cameras, add another, or edit one.

The buttons along the top: speaker, sound line, movement highlight, and the sliders that set how sensitive the highlight and the two alarms are. On every slider, right is more sensitive; the white dot marks the default.

Camera mode

Any Android phone with ACam can be the camera for another one.

  1. On the phone that will be the camera: open ACam's Add camera form (it opens by itself on first start; otherwise tap the camera name, then Add camera), tap Use this phone as a camera instead…, then Start. Allow the camera and microphone.
  2. On the phone you watch from: tap Add camera. A phone in camera mode on the same Wi-Fi is listed at the top; tap it and enter the code shown on the camera phone. Otherwise type one of the addresses the camera phone shows.
  3. Stand the camera phone where it can see the cot, plugged in. Either way up works; the picture turns with it. Its screen can be switched off.

The camera phone only runs its camera while someone is watching. Both phones need to reach each other: the same Wi-Fi, one phone's hotspot, or a VPN such as Tailscale on both (that works over mobile data, upstairs and downstairs, but every hour of watching uses roughly half a gigabyte on each phone). Many hotel and guest Wi-Fi networks keep devices apart; use a hotspot or the VPN there.

From the watching phone, the light-bulb button (only shown for a phone camera) switches between the back and the selfie camera and turns on a light: the torch, with a choice of strength where the phone supports it (Android 15 or newer), or with the selfie camera the camera phone's own screen. The screen light only works while ACam's camera page is left open on that phone; the page keeps the screen on and goes black by itself while no light is wanted.

A phone has no night vision. In a dark room, leave a dim light on, or use the torch or screen light at a low setting.

Privacy and security

  • Camera addresses, which usually contain a password or secret token, are stored only in the app's private storage on the phone. They are excluded from keyboard suggestions.
  • Encrypted streams (rtsps://). Cameras nearly always use a self-signed certificate, so the usual web-style check would reject them all. ACam instead remembers the certificate a camera shows the first time you connect ("trust on first use"). If the camera later shows a different one, ACam stops before sending the address and asks you. That is expected after a camera update or reset; if you did nothing of the kind, be suspicious. Certificates that pass the normal public check for their host name are accepted as they are.
  • Unencrypted streams (rtsp://) send the picture, the sound and the password in the clear. Use them only on a network you trust, or over a VPN.
  • Camera mode asks for its eight-character code with digest authentication, so the code itself is not sent, and slows down guessing. The picture and sound are not encrypted: use it on a network you trust, or over a VPN. Make a new code on the camera page locks out every phone that had the old one.
  • The first connection to an rtsps:// camera is the one moment trust-on-first-use cannot protect: make it on your home network.

Known limits

  • The alarms are visual only and work while the app is on screen. There is no sound or vibration alarm and nothing runs in the background yet.
  • Developed against UniFi cameras. Other makes will work to the extent their streams are standard; please open an issue with the camera model if yours does not.
  • Sound has only been tested with AAC. If a camera offers several audio formats, AAC is the one requested.
  • Streams are played over RTSP-over-TCP only.
  • Camera mode sends H.264 at 720p, 15 frames a second. Some phones stop long-running camera apps to save battery; if the stream ends by itself, exempt ACam from battery optimisation.
  • The screen light needs the camera page open on the camera phone: Android does not let an app switch the screen on from the background.

Building

./gradlew assembleDebug        # needs JDK 17 or newer and the Android SDK

The APK lands in app/build/outputs/apk/debug/. Debug builds install as a separate app ("ACam debug"), next to a released one. For a signed release build, put ACAM_STORE_FILE, ACAM_STORE_PASSWORD, ACAM_KEY_ALIAS and ACAM_KEY_PASSWORD in ~/.gradle/gradle.properties and run ./gradlew assembleRelease.

The viewer is one activity in MainActivity.java, with no layout XML and one dependency (AndroidX Media3) for playback. Camera mode is CameraActivity and CameraService, with its own small RTSP server (CamServer) and capture (CamCapture) on the platform's camera and encoders, so no further dependencies.

Licence

ACam is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It comes with no warranty.

Copyright © 2026 infestdead.

About

Live viewer for your own RTSP camera, built for watching a sleeping baby: movement highlight, sound line, visual alarms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages