npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

scrypted-amcrest-ash21

v1.0.9

Published

Amcrest ASH21 PTZ Camera Plugin for Scrypted - Full PTZ control via DVRIP protocol

Readme

Scrypted Amcrest ASH21 PTZ Plugin

Full PTZ (Pan-Tilt-Zoom) control for Amcrest ASH21-B-V2 cameras in Scrypted using the DVRIP protocol.

Features

  • Full PTZ control (pan, tilt, zoom)
  • Works with Frigate NVR via built-in ONVIF server
  • Video streaming via Scrypted Rebroadcast
  • HomeKit compatible

Installation

Method 1: Scrypted UI (if working)

  1. Go to Scrypted web interface
  2. Click "Install Plugin"
  3. Search for scrypted-amcrest-ash21
  4. Click Install

Method 2: Manual Installation

If the UI install fails, use manual installation:

# SSH into your Scrypted server
ssh user@your-server

# Download and install the plugin
docker exec -it scrypted sh -c "
  cd /tmp && \
  npm pack scrypted-amcrest-ash21 && \
  mkdir -p /server/volume/plugins/scrypted-amcrest-ash21 && \
  tar -xzf scrypted-amcrest-ash21-*.tgz && \
  cp -r package/* /server/volume/plugins/scrypted-amcrest-ash21/ && \
  rm -rf package scrypted-amcrest-ash21-*.tgz
"

# Restart Scrypted
docker restart scrypted

Camera Setup

Important: The ASH21-B-V2 does not have a web interface. Initial setup requires the Amcrest Cloud app, then you can switch to local-only control.

Step 1: Initial Cloud Setup

  1. Connect the camera via ethernet or follow the camera's WiFi setup mode
  2. Download the Amcrest Cloud app (iOS/Android) - this is required for initial setup
  3. Create an account and add the camera through the cloud app
  4. Set local credentials - In the camera settings, set a username and password for local access (e.g., username: admin, password: your choice)
  5. Remove the camera from the Amcrest Cloud app (optional - for privacy/local-only control)

Step 2: Local App Setup

Once local credentials are configured, add the camera to a local app:

  • iOS/Android: Amcrest View Pro
  • Mac: Amcrest Surveillance Pro

Add the camera using:

  • IP Address: Find this from your router's DHCP list
  • Username/Password: The local credentials you set in Step 1
  • Port: 37777 (DVRIP)

Camera Settings (Optional)

Fine-tune these settings in the app for optimal performance:

  • Video Settings:
    • Main Stream: H.264, 1080P, 30fps
    • Sub Stream: H.264, VGA (640x480), 30fps (for detection)
  • I-Frame Interval: 1 second (30 frames) for lower latency

Plugin Configuration

  1. After installation, go to the plugin in Scrypted
  2. Add a camera by entering its IP address
  3. Configure the camera settings:
    • IP Address: Your camera's IP
    • Username: Local username you set during camera setup
    • Password: Local password you set during camera setup
    • RTSP Port: 554 (default)
    • DVRIP Port: 37777 (default, used for PTZ)
    • Enable ONVIF Server: Enable for Frigate PTZ integration
    • ONVIF Server Port: Unique port for each camera (e.g., 8483, 8484)
    • ONVIF Server IP: Your Scrypted server's IP address

Note: If adding multiple cameras, each must have a unique ONVIF port.

Frigate Integration

This plugin includes a built-in ONVIF server for PTZ control from Frigate.

Frigate Configuration

# frigate config.yml
cameras:
  amcrest_ash21:
    ffmpeg:
      inputs:
        - path: rtsp://SCRYPTED_IP:REBROADCAST_PORT/YOUR_STREAM_ID
          roles: [record]
        - path: rtsp://SCRYPTED_IP:REBROADCAST_PORT/YOUR_SUBSTREAM_ID
          roles: [detect]
    onvif:
      host: SCRYPTED_IP
      port: 8483
      user: admin
      password: ""

Get the RTSP URLs from the Scrypted Rebroadcast plugin for your camera.

Low Latency Live View (Optional)

For lower latency live view in Frigate, point go2rtc directly to the camera:

go2rtc:
  streams:
    amcrest_ash21:
      - rtsp://username:password@CAMERA_IP:554/cam/realmonitor?channel=1&subtype=0
      - rtsp://username:password@CAMERA_IP:554/cam/realmonitor?channel=1&subtype=1

Supported Cameras

  • Amcrest ASH21-B-V2
  • May work with other Amcrest/Dahua cameras using DVRIP protocol

License

MIT

Author

Joshua Blasbalg