Introduction
Now, before we get going, let me guess something about you. You’ve probably spent way too many evenings trying to connect smart home gadgets that swear they’re “compatible” even though they clearly haven’t spoken to each other since the Obama administration. Apple wants its own cameras, your IP cams want their own apps, your NVR thinks it’s the boss, and meanwhile you just want something that records without acting like a diva.
I’ve been in that exact spot. You finally get one thing working, then another part of your setup throws a tantrum. Then you fix that, and something else breaks. At some point you start wondering if this whole “smart home” thing is actually a polite way of saying “your problem now.”
But here’s the rare moment in tech where good news actually exists. You can keep your NVR for nonstop recording, bring your cameras into HomeKit Secure Video, and run the whole operation with a little Raspberry Pi running Scrypted. It costs less than a dinner out and works way better than it should.
This rewrite keeps the structure and size of your original, but now it reads like someone talking to you at a backyard cookout instead of a corporate press release.
The Promise of HomeKit Secure Video (HSV)
You’ve probably noticed that Apple folks love their privacy. If Apple could encrypt a sandwich, they’d do it. But to their credit, HSV does things the right way. Your camera sends video to your Home hub, which might be an Apple TV or one of those little HomePod speakers that listens to your mumbling at 2 AM. That hub does all the motion analysis locally so nothing sensitive heads into the cloud unless something actually happens.
Then the meaningful clips get uploaded, wrapped in encryption so tight even Apple says they can’t peek at it. I’m not going to test that theory, because I like not being on a government list, but I’ll take their word for it.
You check everything in the Home app, share access with family if you trust them, and you don’t have to juggle ten logins from ten different camera brands. HSV is clean, simple, and surprisingly private for something made by a trillion dollar company.
The Challenge: Bridging Traditional NVRs and Diverse Cameras to HSV

Obviously the annoying part is compatibility. Apple only approves a small handful of cameras for HSV. Meanwhile, you probably already own a bunch of perfectly good IP cameras you got because they had better resolution, better features, or because they didn’t cost the same as two weeks of groceries.
Your NVR is fantastic for full time recording, but HSV doesn’t do full time recording at all. HSV records events. The NVR records everything including bugs, shadows, dust particles, and whatever else wanders past the lens. The two systems don’t speak the same language, and until recently the best solution looked like “pick one and be sad about the other.”
This setup changes that and lets all the parts finally stop arguing.
Why This Guide Matters: The Scrypted plus Raspberry Pi plus NVR Solution
All right, here’s where things finally stop behaving like a family group chat. Scrypted running on a Raspberry Pi sits in the middle of everything and convinces your cameras, your NVR, and Apple’s smart home system to get along for once in their lives.
Scrypted pulls the video streams right from your NVR or cameras, cleans them up, reshapes them into something HomeKit understands, and sends them off to your Home hub like it was supposed to work this way from day one. You keep your full time NVR recording, HomeKit gets useful motion clips, and you get a system that doesn’t make you want to lie down on the floor and rethink your hobbies.
Once people try this combo, they usually do that slow nod of “Oh, this actually works.” It’s weird when tech behaves. Almost suspicious.
HomeKit Secure Video (HSV) Explained
Now, I know you already kind of understand how HSV works, but let’s slow it down a little. HSV is Apple’s way of giving you cloud based clips without sending your entire life story to the internet. Your Home hub handles the heavy processing on your local network. That means the video of you sleepily bringing in the grocery bags at 9 PM isn’t going anywhere unless there’s actual motion worth analyzing.
You need an iCloud plus plan, but the clips don’t count toward your normal storage. That’s Apple being generous, which feels nice because it doesn’t happen often. The global smart camera market is some crazy number like fifty something billion dollars in the next decade. Different reports guess different numbers, and I’m not about to argue with any of them. The point is there are tons of cameras out there, but HSV plays nice with almost none of them unless you use something like Scrypted.
HSV is clean, polished, predictable, and perfect for people who don’t want random tech companies poking around in their footage.
What is Scrypted and Why It’s the Game Changer
Think of Scrypted like the one coworker who actually knows how to fix the office printer. It shows up, looks at the problem, mutters something under its breath, then suddenly everything works.
Scrypted takes whatever video stream your cameras put out, decodes it, re-encodes it, and sends a version to HomeKit that looks native. It’s insanely fast and stable compared to other DIY approaches. I’ve tried those “just run it in Homebridge” methods and half the time they act like they’re being held together with duct tape and wishful thinking.
Scrypted supports multiple ecosystems, but for this setup it’s your translator, peacekeeper, therapist, and video pipeline all rolled into one. And since it’s open source, you don’t have to worry about some random subscription popping up later like an unwanted surprise on your credit card bill.
The Raspberry Pi: Your Dedicated Smart Security Server
Now, a Raspberry Pi is basically the blue collar worker of the tech world. Small, cheap, runs all day without complaining, and only asks for a decent power supply and a little ventilation. You give it those two things and it’ll run your Scrypted setup while sipping electricity like it’s trying to save for retirement.
A Pi 4 or Pi 5 is the sweet spot here. Anything older might look at your high resolution camera streams and just give up without even trying. I’ve seen Pi 3s tapped out faster than me after climbing one flight of stairs. Do yourself a favor and go with something modern if you want multiple streams running without the Pi breaking into a sweat.
Network Video Recorders (NVRs): The Backbone of Local Surveillance
Your NVR is the quiet workhorse in this whole operation. It records everything. Even the boring stuff. Even the “why is that leaf moving like it owes somebody money” stuff. And it stores it all locally so you’re not depending on whatever mood the cloud service is in that day.
Manufacturers love to say the NVR market will be worth something like 11 or 12 billion dollars in a decade. Could be 10, could be 14. I don’t know. These reports always toss around big numbers like they’re talking about calories on a weekend cheat day.
But here’s what really matters. Your NVR gives you full-time footage, high resolution recording, and control over your data. When HomeKit misses an event, your NVR still has your back. When your internet goes out, the NVR doesn’t care. It just keeps recording like a stubborn old man who refuses to retire.
Why Scrypted on Raspberry Pi with an NVR is the Ultimate Solution
Now we bring it all together. The Raspberry Pi gives you the horsepower and flexibility. The NVR gives you nonstop recording. HomeKit Secure Video gives you smart events and privacy. Scrypted bridges them like a union foreman who’s tired of everyone arguing and just wants the job done.
You end up with a system that’s more private than cloud cameras, cheaper than buying all new HomeKit hardware, and far more reliable than most plug and play “smart” solutions. You get full footage on your NVR and crisp, encrypted event clips in HSV. It’s the best of both worlds without the usual compromises that make you say things you’re not proud of.
You’ve basically built a surveillance setup that does everything the big companies claim their products can do, except yours actually delivers.
Centralized Local Storage Space and Management with Your NVR
Now, one thing you and I both know is you bought that NVR for a reason. It records everything without asking for permission or needing a cloud subscription that costs more each year than your car insurance. With this setup, your NVR stays in charge of full time recording. Nothing changes there. It keeps capturing every moment, from the important stuff to that stray cat who thinks your porch is public property.
You still use your NVR’s interface to manage resolutions, bitrates, and all the nerdy stuff. HomeKit doesn’t care about any of that. It just wants clean event clips. This two layer setup means you get the convenience of HomeKit while keeping the NVR as your full archive. You get redundancy without needing a degree in electrical engineering.
I’m sure a lot of you are thinking, “But will this break something?” Honestly, no. The NVR stays blissfully unaware that HomeKit even exists, which is probably for the best.
Bringing Virtually Any IP Camera to HomeKit Secure Video
Now here’s the part where you probably sit up a little straighter. You can take pretty much any modern IP camera and feed it into HomeKit Secure Video. Reolink, Amcrest, Hikvision, Unifi, all the usual suspects. As long as it spits out RTSP or talks ONVIF, Scrypted has a plugin for it like some kind of universal remote for video feeds.
This means you no longer need to buy Apple approved cameras, which is nice because those things are priced like they come with free gold inside. Instead, you use your existing cameras that actually have decent features like higher resolution, wider field of view, or color night vision that doesn’t look like it was filmed with a potato.
You save a ton of money, keep your better hardware, and still get all the fancy HomeKit stuff like notifications and encrypted clips.
Enhancing HSV with Advanced AI and Plugins
All right, here’s the part that’s honestly impressive. Scrypted isn’t just a bridge. It also has plugins that beef up your camera intelligence before HomeKit even gets involved.
You can add AI detection for people, cars, packages, or whatever else developers dream up. You can turn certain motion sensors into binary triggers for automations. And if you use Home Assistant, you can tie the whole circus together into one big automation system. Suddenly your cameras can tell your lights to turn on, your speaker to bark like a dog, or your porch light to flash whenever someone strolls through your yard like they own the place.
If Apple’s motion detection is good, Scrypted’s can be really good. Combining both is like having two co workers double check each other, except neither one complains about doing extra work.
Cost Effectiveness and Scalability of a DIY Setup
Now let’s talk money, because that is usually where people start sweating. Going with official HomeKit cameras for your whole property can cost so much you start wondering if you accidentally bought a small used car. With this setup, you reuse what you already own. Your IP cameras stay. Your NVR stays. All you add is a Raspberry Pi and some open source software that doesn’t nag you about subscriptions.
It’s one of those rare situations where the DIY method is not only cheaper, but better. You get higher quality cameras, full time recording, encrypted smart clips, and a system that grows as you need it. Want to add another camera in a month? Go ahead. Want five new cameras a year from now? Not a problem. You’re not locked into some “ecosystem,” which is tech-speak for “give us more money.”
I’m sure a few of you are thinking, “Is this too good to be true?” Not really. It’s just not marketed heavily because camera companies don’t exactly benefit from you reusing equipment you already paid for.
Hardware and Software Prerequisites for Your Setup
Let’s move into what you actually need to build this thing. This is the part where you gather your tools and supplies so you don’t end up halfway through the setup yelling, “Where is that cable I JUST HAD IN MY HAND?”
The good news is the requirements aren’t crazy. Everything here is normal, affordable, and doesn’t require you to raid an electronics lab.
Required Hardware
Here’s the shopping list (Amazon Links included):
- A Raspberry Pi 4 or Raspberry Pi 5
These models have the horsepower you need. You can technically use something older, but you’ll regret it. Trust me. I’ve made that mistake and watched a Pi 3 struggle harder than me carrying groceries in one trip. - A reliable power supply
The official one is best. Cheap power bricks are how you end up with random crashes that make you question your life choices. - A good microSD card or an SSD
High endurance if you go with microSD. SSD is ideal. Your Pi will thank you. - Your existing IP cameras or NVR
Anything that supports RTSP or ONVIF. If you don’t know whether yours does, don’t worry, you’ll find out real quick during setup. - Ethernet cables
WiFi works if you enjoy buffering. I prefer cables because they do their job quietly without excuses. - An Apple Home Hub
Could be an Apple TV or a HomePod mini. Without one, HSV won’t work. It’s like trying to run a car without the key.
That’s it. Nothing too exotic. Just solid, dependable gear that doesn’t complain.
Software and Accounts
Let’s cover the digital side of things. Nothing here is weird or complicated, which is refreshing for once.
You will need:
- Raspberry Pi OS Lite
The Lite version is better since you don’t need a full desktop running. You’re building a server, not checking email on it. - Docker and Docker Compose
These keep Scrypted running cleanly and make updates painless. Think of Docker as the tool that prevents your Pi from turning into a messy pile of half installed packages. - An iCloud plus plan
HSV won’t work without it. The plan determines how many HSV cameras you can add. It’s not my favorite requirement, but it’s Apple, so here we are. - A computer for initial setup
You just need it to flash the OS to your microSD or SSD. Nothing fancy. Even an old laptop will work, as long as it still gets power and doesn’t scream when it boots.
Nothing here is expensive, nothing here requires deep Linux knowledge, and nothing here asks you to sacrifice a goat under a full moon like some smart home setups.
Setting Up Your Raspberry Pi Server
OK, let’s roll up our sleeves and start prepping the Raspberry Pi. This is the part where you pretend you’re a system administrator even though you’re standing in your kitchen with the Pi balanced on a placemat.
The setup steps look technical on paper, but in real life they’re pretty manageable. You just follow them one at a time, and try not to unplug the wrong cable while you’re doing it. I, personally, have a long list of regrets with that exact mistake, but let’s not get into therapy today.
Flashing Raspberry Pi OS to microSD Card or SSD
Here’s the walkthrough you’ll stick to so you don’t accidentally wipe your main hard drive. Yes, I’ve done it. No, I don’t want to talk about it.
- Download Raspberry Pi Imager from the official site.
- Insert your microSD card or connect your SSD. Make sure it’s the right drive. Triple check. Trust me.
- Choose your Pi model, Raspberry Pi OS Lite (64 bit), and the target storage device.
- Click the little gear icon to preconfigure the Pi. This part saves you time later. Set the hostname, enable SSH, set your username and password, and add WiFi credentials if you have no choice but to use wireless.
- Click Write, then wait patiently while the Imager does its thing. Resist the urge to check your phone obsessively. It will finish faster if you ignore it. Probably.
Once that’s done, you’ve got a clean OS image ready to boot the Pi.
Updating and Securing Your Raspberry Pi
All right, now that your Pi has an operating system, it’s time to make sure it’s not running outdated packages from the Stone Age. This part is simple, even if Linux usually gives off “I hope you know what you’re doing” energy.
- Put the storage back into your Pi, power it on, and connect it to your network with Ethernet. Yes, Ethernet. WiFi works in theory, but so do diets. In practice, it’s just easier to use a cable.
- Find the Pi’s IP address from your router. Every router hides this info in some random menu, so if you have to click around a bit, don’t feel bad. We’ve all done it.
- SSH into the Pi using a terminal:
ssh your_username@your_pi_ip_address - Run the standard update and upgrade commands:
sudo apt update && sudo apt upgrade -y
Let it churn for a bit. This is the Pi’s version of having a cup of coffee in the morning. After that, change the default password if you didn’t already. No one wants their smart home gear protected by “raspberry.”
Once this step is done, your Pi is clean, secured enough for home use, and ready for real work.
Installing Docker and Docker Compose
Now we install Docker, which is the part of the setup where you suddenly feel like a real IT professional even though you’re wearing sweatpants.
- Use the official Docker install script:
curl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.sh - Add your user to the Docker group so you don’t need to type sudo for every little thing:
sudo usermod -aG docker your_username
You’ll have to log out and log back in for that to take effect. And yes, forgetting to do that is a rite of passage.
- Install the Docker Compose plugin:
sudo apt-get install docker-compose-plugin -y
And that’s it. Docker is now ready. It’s surprisingly painless, which is worrying because tech rarely behaves this nicely. Just enjoy it. Don’t ask questions.
Installing and Initializing Scrypted on Raspberry Pi
Now comes the part where the Pi turns into something useful. We’re going to get Scrypted running inside Docker so it stays clean, updated, and stable.
Scrypted handles the video processing, plugin management, and all the heavy lifting that makes HomeKit play nicely with your cameras. Once it’s running, you’ll wonder why it wasn’t built directly into the cameras in the first place.
Downloading and Running Scrypted via Docker Compose
All right, now we actually put Scrypted onto the Pi. This part sounds intimidating, but it’s mostly copy, paste, and pretending you understand YAML.
- Make a new directory for Scrypted and move into it:
mkdir scrypted && cd scrypted - Create a docker compose file:
nano docker-compose.yml - Paste this configuration inside. Don’t worry, it’s supposed to look like a recipe written by a robot.
version: '3.7'
services:
scrypted:
image: koush/scrypted:latest
container_name: scrypted
restart: unless-stopped
ports:
- "10443:10443"
- "11080:11080"
volumes:
- ./volume:/server/volume
environment:
- TZ=America/New_York
(Obviously, change the timezone to yours unless you want your camera logs to look like you’re living on the wrong coast.)
- Save and exit nano.
If you’ve never used nano before, it’sCtrl+X, thenY, thenEnter. Yes, it’s weird. Nano has been weird since the dawn of time.
- Start Scrypted:
docker compose up -d
That’s it. You just installed the brain of your hybrid camera system. Easy enough that you might start feeling confident, so don’t worry, the networking part will humble you later.
Accessing the Scrypted Web Interface
Now that Scrypted is up, we get to open the interface. This is the part where your browser tries to scare you with security warnings, but it’s fine. Scrypted uses a self signed certificate by default, which basically means, “I promise this is safe, please ignore the red warning screen.”
You’ll go to:https://your_pi_ip_address:10443
Your browser will freak out. Click the advanced button and tell it to calm down. You’re visiting your own Pi, not the dark web.
Once inside, Scrypted will ask you to make an admin account. Pick something strong so you don’t accidentally let the neighbor kid hack your cameras for fun.
Enabling a Global SSL Certificate for Secure Access
If you want proper HTTPS access without your browser yelling at you every time, Scrypted can handle that too.
Inside Scrypted, go to:
Settings > Scrypted Server Settings
Turn on Cloud Link. This gives you a globally signed SSL certificate and a clean external URL you can use when away from home.
This keeps things secure and saves you from trying to remember your Pi’s IP address like it’s your locker combination from high school.
Integrating Your NVR and Cameras with Scrypted
All right, now we finally get to the part where you bring your actual surveillance gear into the mix. This is the moment where all the stuff you already own stops acting like separate teenagers in different bedrooms and starts behaving like a team.
Scrypted can talk to your cameras or your NVR directly, depending on what gear you have. Either way, the goal is simple. Get the streams into Scrypted so it can clean them up and hand them over to HomeKit in a format Apple actually tolerates.
Most folks are surprised how smooth this part is. If only half the smart home industry worked this well, we’d all sleep better.
Adding Your NVR as a Scrypted Source
To start, you’ll go to the Plugins section in Scrypted. That’s where all the magic lives. Search for the plugin that fits your hardware. The ONVIF Camera plugin works on almost everything, but brands like Reolink, Unifi, and Amcrest have dedicated plugins that save you a few headaches.
Once you install the plugin, you’ll see a new section in the menu. Click it, and it’ll walk you through adding your NVR or individual cameras. You’ll need the device’s IP address plus the username and password you set when you first installed the system. If you forgot the password, congratulations, you get to go on a mini adventure resetting credentials.
If you’re using ONVIF, Scrypted might automatically detect your cameras. It’s oddly satisfying when it works, kind of like finding money in a coat pocket you haven’t worn since last winter.
Discovering and Adding Cameras from Your NVR
After the plugin sees your NVR, it usually discovers all your connected cameras. You add them one by one, give them real names instead of “Camera 1,” and open the settings to view their available streams.
Most IP cameras offer at least two streams: the main stream for high resolution recording, and a sub stream for lighter tasks. You’ll use both. Feed the main stream to your NVR for full quality recordings, and use the sub stream for faster motion detection or low latency viewing.
You get better performance, lower load on your Raspberry Pi, and a setup that feels way smoother than anything the manufacturers ship out of the box.
Optimizing Video Codec Settings for HomeKit
All right, let’s talk about codecs, which is a fancy way of saying, “How your camera squeezes video into something HomeKit will accept without throwing a fit.”
HomeKit wants H.264. It doesn’t matter that H.265 is newer and uses less bandwidth. Apple looks at H.265 like an old dog looks at a Roomba. Confused and irritated.
So in each camera’s settings inside Scrypted:
- Open the camera device.
- Go to the Streams section.
- Make sure at least one stream uses H.264 encoding. If it’s on H.265, switch it. Your Pi will thank you too, because decoding H.265 on a small device is like asking your grandpa to run sprints.
- Turn on Rebroadcasting. This lets Scrypted clean up the stream, convert it properly, and send HomeKit a version that loads quickly instead of buffering like it’s using a dial up modem.
- Install the HomeKit Plugin. This is the part that actually bridges everything into your Home app.
Once you scan the pairing code with your iPhone, the cameras show up in Home like they were meant to be there all along. Apple doesn’t need to know how the sausage was made.
FAQ
Can I really use my NVR and HomeKit Secure Video at the same time?
Short answer, yes. Longer answer, yes and you should. Your NVR keeps recording nonstop like the dependable old guy at your job who never takes a day off. HomeKit only cares about motion clips, which is fine, because HomeKit doing 24 hour recording would cook your iCloud plan faster than popcorn.
Do I need a specific brand of IP camera for this setup?
Nope. As long as your camera speaks RTSP or ONVIF, Scrypted will probably understand it. Reolink, Amcrest, Hikvision, Unifi, all of them are fine. If your camera can stream video and isn’t from 2009, you’re good.
Is a Raspberry Pi 3 powerful enough for this?
If you have one camera running at 720p and a dream, maybe. For real use? Get a Pi 4 or 5. A Pi 3 will beg for mercy the moment you add a second camera.
Will HomeKit Secure Video still work if my internet goes out?
Yes and no. You’ll still see live video and local detection because your Home hub does the thinking, not the cloud. But uploading recorded clips to iCloud won’t happen until your internet comes back from its lunch break.
Do I need to know Linux to pull this off?
Not really. You type commands, copy paste some stuff, and hope you didn’t misspell anything important. It’s kind of like cooking: follow the recipe and you’ll be fine, even if you have no idea what half the ingredients do.
Will this setup mess with my existing NVR?
No. Your NVR doesn’t even know HomeKit exists. It just keeps recording like it always has. Scrypted simply reads the streams, it doesn’t poke settings or take over anything.
Is Scrypted secure?
As secure as the Pi and network you run it on. You’re not opening your front door here, but you still need good passwords and basic sense. Turning on Cloud Link gives you a legit SSL certificate so everything looks clean and locked down.
Can I scale this setup later?
Yes. You can add more cameras, add more plugins, upgrade the Pi, whatever you want. Nothing locks you in. It’s the opposite of buying into a walled garden.
Conclusion
All right, if you made it this far, you’ve basically built one of the smartest, most flexible home security setups possible without selling a kidney or throwing out all your old cameras.
You keep your NVR for nonstop recording so nothing slips through the cracks. You get HomeKit Secure Video for smart alerts, encrypted cloud clips, and clean viewing inside the Home app. You reuse your cameras instead of buying overpriced ones that have fewer features. And the Raspberry Pi runs the whole thing quietly like a dependable coworker who never calls out sick.
You now have a setup that respects your privacy, saves you a ton of money, and doesn’t lock you into one company’s ecosystem. It just works. Well, at least as well as anything in the smart home world ever works.
At this point, you’ve basically future proofed your whole security system. Add more cameras whenever you want. Expand the setup later. Try new plugins. Break nothing in the process. It’s a rare win in the world of DIY tech.

