Set up the home recorder
Last updated:
In short
The Nominal.TV recorder is a small program you run on an always-on machine at home, such as a NAS. Your TVs schedule recordings from the guide, the recorder saves them to that machine's disks, and every TV in the house can play them back. It runs in Docker, stays on your home network, and records only the channels you give it.
What it is, and what it is not
- It records live channels from your own provider while the TVs can be off, and keeps the recordings on storage you control: a disk inside the machine it runs on, a USB disk plugged into that machine, or a NAS share.
- It does not record to a USB drive plugged into the TV. Recordings always live on the recorder's machine and play on the TVs over your home network.
- It records only what your provider and the law where you live allow you to record. Check your subscription terms first. Many providers limit how many streams one account may open at once; a recording uses one of them.
- It does not bypass DRM, encryption or account limits. It copies the stream as the provider sends it. Encrypted or protected channels cannot be recorded.
- It provides no channels. Like the app, it works only with a service you already have. See Content and copyright.
- Recordings are for your own household. Do not share or publish them.
What you need
- An always-on machine on your home network: a NAS (TrueNAS SCALE, Synology with Container Manager), a mini PC or a small Linux server. A 64-bit Intel, AMD or ARM processor; a wired network connection is best.
- Storage on that machine: an internal disk, a USB disk attached to it, or a NAS share mounted on it. A recorded hour takes roughly 1 to 4 GB, depending on the channel.
- Docker with Docker Compose (built into TrueNAS SCALE apps and Synology Container Manager).
- Your playlist: the M3U playlist file of your provider, the same one your TVs use.
- Internet access for that machine, as for any update: the recorder uses it to get its own HTTPS address for Hisense TVs (see HTTPS). Nothing from outside can connect to it.
Install it
The recorder is published as a Docker image, ghcr.io/rexipan/nominal-recorder, for 64-bit Intel and AMD (amd64) and ARM (arm64) machines; Docker picks the right one. It runs as an unprivileged user and keeps everything in two folders:
/data: its settings, your channel list, the paired TVs and the schedule. It holds your stream addresses, so keep it private./recordings: the recordings.
This is the Docker Compose file. The steps for each system below use it.
services:
recorder:
image: ghcr.io/rexipan/nominal-recorder:1
container_name: nominal-recorder
restart: unless-stopped
network_mode: host
user: "1000:1000"
environment:
NOMINAL_DATA_DIR: /data
NOMINAL_RECORDINGS_DIR: /recordings
volumes:
- ./data:/data
- ./recordings:/recordings
stop_grace_period: 15s
network_mode: hostlets LG TVs find the recorder by themselves (a broadcast on UDP port 38787) and lets the recorder see which device is asking. It uses ports 8787 (HTTP), 8788 (HTTPS) and 38787 (UDP) on the machine.usermust be the user and group that own the two folders. On Linux,idshows yours.- On its first start the recorder writes a starter settings file,
data/sources.json, with no channels yet. It lets only the Nominal.TV TV apps connect (see Who can connect).
TrueNAS SCALE (24.10 or later)
- In Datasets, create two datasets, for example
tank/apps/nominal-recorderfor the data andtank/media/recordingsfor the recordings. In each dataset's permissions, give theappsuser (user and group 568) read and write access. - Open Apps, then Discover Apps, then the menu next to Custom App, then Install via YAML.
- Name the app
nominal-recorderand paste the Compose file above with these changes:user: "568:568", and the volumes/mnt/tank/apps/nominal-recorder:/dataand/mnt/tank/media/recordings:/recordings(use your own pool and dataset names). - Save. The app starts and shows as running. Its log should say "listening on port 8787".
Synology (DSM 7.2 with Container Manager)
- Install Container Manager from the Package Center.
- In File Station, create the folders
docker/nominal-recorder/dataanddocker/nominal-recorder/recordings(a different shared folder for the recordings is fine too). - Find the user and group numbers of the DSM account that owns these folders: enable SSH in Control Panel, Terminal, sign in and run
id. On many systems the answer isuid=1026andgid=100. - In Container Manager, open Project, then Create. Set the path to
/volume1/docker/nominal-recorder, choose "Create docker-compose.yml", paste the Compose file above and changeuserto your numbers, for example"1026:100". - Finish the wizard. The project starts the recorder.
A Linux machine
- Install Docker Engine with the Compose plugin, following Docker's instructions for your distribution.
- Create a folder for the recorder and its two subfolders:
To keep recordings on another disk, mount it (for example atsudo mkdir -p /opt/nominal-recorder/data /opt/nominal-recorder/recordings sudo chown -R 1000:1000 /opt/nominal-recorder/mnt/recordings) and use that path in the Compose file instead of./recordings. - Save the Compose file above as
/opt/nominal-recorder/docker-compose.yml, then start it:cd /opt/nominal-recorder sudo docker compose up -d sudo docker compose logs recorder
Check that it runs: on a computer on the same network, open http://<address of the machine>:8787/health. The answer starts with {"ok":true.
Add your channels
The recorder records only channels in its own list, and it never takes a stream address from a TV. The TV asks for a channel by its name, so the list must come from the same playlist your TVs use.
- Save your provider's M3U playlist as
playlist.m3uin the recorder's data folder. If your TV uses an Xtream or cBilling login, ask your provider for the M3U playlist of the same account. - Import it. The command reads the file, replaces the channel list in
sources.jsonand keeps your other settings. It prints only how many channels it found.
Use the same user numbers and data folder as in your Compose file (on TrueNAS, run it in System, Shell).sudo docker run --rm --user 1000:1000 \ -v /opt/nominal-recorder/data:/data \ ghcr.io/rexipan/nominal-recorder:1 import /data/playlist.m3u - Restart the recorder (
sudo docker compose restart recorder, or Stop and Start in the TrueNAS or Synology app screen). - Delete
playlist.m3u: it contains your login.
Import again whenever your provider changes its channels. Channels whose address contains a user name and password are skipped. If two channels have exactly the same name, the TV cannot tell them apart and will not record them.
The other settings in sources.json:
| Setting | Meaning |
|---|---|
allowedOrigins | The websites whose pages may use the recorder. Keep "https://nominal.tv". See Who can connect. |
nullOriginClaim | Who may join without a website: "user-agent" (only LG TVs, as nullOriginUserAgent, "Web0S", says; the starter setting), "allow" or "deny". See Who can connect. |
pairingMode | "lan" (any device on your home network may join) or "list" (only the devices you list). See Connect a TV. |
maxConcurrent | How many recordings may run at once (1 to 16). Never more than your provider allows; leave room for watching. |
deviceName | The name TVs show when they find the recorder. |
sources | The channel list, written by the import. |
The recorder reads sources.json when it starts, so restart it after any change.
HTTPS for Hisense TVs
Why. On Hisense TVs, Nominal.TV is a web app loaded from https://nominal.tv. A secure page may not call plain http:// addresses, so the TV can reach the recorder only over HTTPS, with a certificate the TV trusts. A self-signed certificate does not work. LG TVs run the app from the TV itself and can use plain http:// on your home network, although HTTPS is better there too.
The recorder does this by itself. On its first start it gets its own address, a name such as happy-breakfast.nominaltv.dev, and a free certificate for it from Let's Encrypt:
- Start the recorder (see Install it).
- Read its address in the log (
sudo docker compose logs recorder, or the app's log screen in TrueNAS or Synology). Within a minute or two it says:Your recorder's address: https://happy-breakfast.nominaltv.dev:8788 - Add that address on your TV (see Connect a TV).
To check it, open the address with /health added on a phone or computer at home: the page must open without a certificate warning, and it shows the same address.
How it works. The name points to the recorder's address on your home network, such as 192.168.1.20, so it leads somewhere only inside your home: nobody outside can reach the recorder through it. The recorder proves to Let's Encrypt that the name is its own through the Nominal.TV naming service, which puts a one-time code in DNS for it. The certificate's private key is made on the recorder and never leaves it. The recorder renews the certificate by itself about a month before it expires, and moves the name when its address on your network changes. Giving the machine a fixed address in your router is still a good idea.
- What the naming service keeps: the name, the home-network address it points to, a fingerprint of the recorder's secret (not the secret), and when the name was made and last used. Nothing about you. A name unused for 90 days is given up. To give it up yourself, run the image with
release-nameinstead ofimport /data/playlist.m3u. - Let's Encrypt. Getting the certificate accepts the Let's Encrypt Subscriber Agreement. No e-mail address or other personal detail is sent.
- The wrong address? The log line "Recorder name registered" shows the address the name points to. The recorder finds it with host networking (
network_mode: host); without it, or if it picks the wrong network, addNOMINAL_LAN_ADDRESS: "192.168.1.20"(your machine's address) underenvironmentin the Compose file and restart. - Only addresses of home networks are accepted (those starting with 10., 172.16. to 172.31., or 192.168.). A name can never point to anything on the internet.
If your home network blocks names that point to home addresses, see Troubleshooting.
Using your own domain instead
If you already have a domain, you can use a name in it and a certificate of your own. Set "naming": false in sources.json (and, if the recorder already has an automatic name, give it up with release-name). A certificate in data/tls is always used before the automatic one.
- A name. Choose a name in a domain you control, for example
recorder.example.com, and point it (a DNS "A" record) to the recorder's address on your home network, for example192.168.1.20. You can add the record at your DNS provider (it reveals only a private address that nobody outside your home can reach) or in your router's own DNS. Give the recorder's machine a fixed address in your router so the record stays right. - A certificate. Get a free certificate for the name from Let's Encrypt with DNS validation, which proves you own the domain through your DNS provider and needs no open ports. Tools that can do this include acme.sh, certbot with a DNS plugin, and the ACME certificates in TrueNAS SCALE (Credentials, Certificates). For example, with acme.sh and a DNS provider whose API it supports:
acme.sh renews the certificate by itself and copies the new files into place.acme.sh --issue --dns dns_cf -d recorder.example.com acme.sh --install-cert -d recorder.example.com \ --fullchain-file /opt/nominal-recorder/data/tls/fullchain.pem \ --key-file /opt/nominal-recorder/data/tls/privkey.pem \ --reloadcmd "chown 1000:1000 /opt/nominal-recorder/data/tls/*.pem" - The recorder's HTTPS. Put the certificate chain and its private key in the data folder as
tls/fullchain.pemandtls/privkey.pem, readable by the recorder's user, and restart the recorder. It then also answers HTTPS on port 8788 (its log says so), and it picks up a renewed certificate within a minute. On TrueNAS, a daily cron job (System, Advanced, Cron Jobs) can copy the certificate TrueNAS renews into that folder.
The address for your TVs is then https://recorder.example.com:8788. To check it, open https://recorder.example.com:8788/health on a phone or computer at home: the page must open without a certificate warning.
Using a reverse proxy instead. If you already run a reverse proxy at home with certificates (such as Caddy, Traefik or Nginx Proxy Manager), it can forward an HTTPS name to http://<recorder address>:8787. Keep the proxy reachable from your home network only. Behind a proxy the recorder sees every TV as the proxy's address, so the "list" pairing mode cannot tell TVs apart; use "lan". LG TVs still find the recorder directly.
Who can connect
A web page can try to call any address on your home network. Out of the box, the recorder answers only the Nominal.TV TV apps:
- Hisense: the app is the web page
https://nominal.tv. The recorder answers pages only from the websites inallowedOrigins, and refuses every other website with "origin_denied". - LG: the app runs from the TV itself, so its requests come from no website. With
"nullOriginClaim": "user-agent", such a request may join only when the browser says it is an LG TV (it containsWeb0S, set innullOriginUserAgent). A web page cannot change what the browser says.
The starter settings already contain this:
"allowedOrigins": ["https://nominal.tv"],
"nullOriginClaim": "user-agent",
"nullOriginUserAgent": "Web0S",
This keeps out web pages opened on the computers and phones in your home. It is not a lock against everything: a page opened in an LG TV's own web browser, or a program on your network, can still join. To decide exactly which TVs may join, use the "list" pairing mode (see Connect a TV). Do not add other websites to allowedOrigins.
If a TV is refused. When a TV of yours that should connect shows "The recorder didn't accept this TV" (for example a TV that does not say Web0S), loosen the check: set "nullOriginClaim": "allow" in sources.json and restart the recorder. Then any page without a website on your home network may join, including pages opened in a browser. "deny" goes the other way: only the Hisense app can join. The setting NOMINAL_NULL_ORIGIN_CLAIM under environment in the Compose file, if present, overrides the file.
Connect a TV
- On the TV, open Nominal.TV, then Settings, Sources, Recorder.
- On an LG TV, choose Find automatically. If the recorder is not found, type its address, such as
http://192.168.1.20:8787or your HTTPS address, and choose Connect. - On a Hisense TV, type the HTTPS address from the recorder's log, such as
https://happy-breakfast.nominaltv.dev:8788(or your own name), and choose Connect. - The TV shows "Recorder connected". Choose a programme in the guide and press the red button to record it; press it again to cancel. Finished recordings play on every connected TV.
Pairing. In the default mode, "lan", finding the recorder on your home network is the permission to use it: a TV joins when it connects, without a code. Other devices on your home network can join too, within the limits described in Who can connect. For a stricter setup, set "pairingMode": "list" and list who may join:
"pairingAddresses": ["192.168.1.31"]: TV addresses (reserve them in your router so they do not change);"pairingMacs": ["a8:23:fe:00:00:01"]: TV network hardware addresses, found in the TV's network settings (needs host networking; this is a convenience check, not strong protection).
To make every TV connect again, for example after giving away a TV, run the image with revoke instead of import /data/playlist.m3u, then connect your TVs again.
Where recordings are kept
Each recording is a file in the recordings folder, named with a long random ID:
| File | What it is |
|---|---|
<id>.ts | A finished recording, an MPEG transport stream that plays in VLC and most players. |
<id>.partial.ts | A recording that stopped early (stream ended, disk full, recorder restarted). It is kept and can be played. |
a .json file with the same ID | The title, channel, description and times of the recording. |
Recordings are never deleted automatically. Delete them from the TV, or delete both files of a recording in the folder. When less than 100 MB is free, a running recording stops and is kept as partial, and new ones fail until there is space. The data folder also holds the recorder's database (paired TVs and the schedule); back it up together with sources.json if you like.
Updating
Settings, paired TVs, the schedule and recordings stay in your folders, so an update only replaces the program. The tag :1 always gets the newest version 1; use a full version such as :1.0.0 to stay on one release.
- Linux:
cd /opt/nominal-recorder && sudo docker compose pull && sudo docker compose up -d - TrueNAS SCALE: open the app, choose Edit and save it again to pull the image, or use Update when TrueNAS offers one.
- Synology: in Container Manager, stop the project, open Image, update
ghcr.io/rexipan/nominal-recorder, then start the project again.
Avoid updating while a recording runs: a recording interrupted by a restart is kept as partial.
Troubleshooting
The recorder does not start
The log (sudo docker compose logs recorder, or the app's log screen) says "Could not start DVR: check the private configuration and storage permissions". Check that sources.json is valid JSON and that the user in the Compose file owns both folders.
The TV says "No recorder found on the home network"
Automatic search works on LG TVs on the same network as the recorder. It does not cross guest networks or separate VLANs, and it needs host networking and UDP port 38787 open on the recorder's machine. Type the address instead.
"No recorder answered at this address"
Open the address with /health added on a phone at home. If it does not open, check the address, the port (8787 for HTTP, 8788 for HTTPS) and that the recorder is running. If it opens only by IP address, see the next question. A certificate warning means the certificate does not match the name or has expired.
The recorder's name does not work at home
Some routers and home DNS filters block public names that point to home addresses ("DNS rebinding protection"). The page with /health then does not open by name, although http://<address>:8787/health does. Allow nominaltv.dev (or your own domain) as an exception:
- FRITZ!Box: Home Network, Network, Network Settings, then under DNS rebind protection add
nominaltv.devto the host name exceptions, and apply. - Pi-hole, dnsmasq, OpenWrt: allow the domain with the dnsmasq option
rebind-domain-ok=/nominaltv.dev/(on OpenWrt: Network, DHCP and DNS, Filter, addnominaltv.devto the domain whitelist of the rebind protection). On Pi-hole this applies only when rebind protection was turned on; Pi-hole's own blocklists do not block the name. - pfSense or OPNsense (Unbound): add
private-domain: "nominaltv.dev"to the resolver's custom options, or turn off the DNS rebinding check for it. - An ISP router without such a setting: set the TVs (and the recorder's machine) to use another DNS server, such as 1.1.1.1, in their network settings, or use your own domain with a record in the router's own DNS.
The log says "Could not get a certificate"
The recorder needs internet access to nominal.tv and Let's Encrypt. It tries again by itself, after an hour and then less often (at most once a day); restarting it tries at once. Until it has a certificate, Hisense TVs cannot connect; LG TVs can use http://<address>:8787 meanwhile. Many new recorders in one week can delay a certificate by a few days; it then arrives without anything to do.
"The recorder didn't accept this TV"
With "pairingMode": "list", add the TV's address or network hardware address and restart. On a Hisense TV, check that allowedOrigins contains https://nominal.tv. On another TV, see Who can connect: "nullOriginClaim": "allow" lets it join.
"This channel is not available on the recorder"
The TV's channel name is not in the recorder's list. Import the playlist your TV uses, then restart the recorder.
A recording is partial or failed
Most often the provider refused a second stream (you were watching another channel, or another device was), the stream dropped, or the disk is full. Lower maxConcurrent to what your provider allows, and check free space and the log.
Security
- Keep the recorder on your home network. Never forward ports 8787, 8788 or 38787 from your router, and do not publish it through a tunnel or a public proxy. It is not built to face the internet.
- In the
"lan"pairing mode, every device on your home network may use the recorder. Put guests on a guest network, or use the"list"mode. - Out of the box, only the TV apps can join: web pages on your computers and phones are refused (see Who can connect). A page opened in an LG TV's web browser, or a program on your network, can still join. If you set
"nullOriginClaim"to"allow"or"deny", check that your TVs still connect. sources.jsonand your playlist contain your provider login. Keep the data folder private, never share it, and delete the playlist after the import.- Over plain HTTP, a TV's pass to the recorder crosses your home network unencrypted. Prefer HTTPS when you can; the automatic address works on LG TVs too.
- The recorder's name under
nominaltv.devis public, like an entry in a phone book: it shows the recorder's home-network address, which nobody outside your home can reach. Its secret and certificate keys are in the data folder: keep it private. - Keep the recorder updated. To report a security problem, see Security.
Questions: support@nominal.tv. Never send your playlist, your sources.json or your provider login. The Terms of use apply to the recorder and its names as part of Nominal.TV. The recorder is source-available, not open source: you may use it free with Nominal.TV and read its code, but not copy, redistribute or resell it (section 7 of the Terms, and the LICENSE file in the image).