Code Monkey home page Code Monkey logo

scrypted's Introduction

Scrypted

Scrypted is a high performance home video integration platform and NVR with smart detections. Instant, low latency, streaming to HomeKit, Google Home, and Alexa. Supports most cameras. Learn more.

Installation and Documentation

Installation and camera onboarding instructions can be found in the docs.

Community

Scrypted has active communities on Discord, Reddit, and Github. Check them out if you have questions!

Development

Debug Scrypted Plugins in VS Code

# this is an example for homekit.
# check out the code
git clone https://github.com/koush/scrypted
cd scrypted
# get the dependencies for the server and various plugins
./npm-install.sh
# open the homekit project in VS Code
code plugins/homekit

You can now launch (using the Start Debugging play button) the HomeKit Plugin in VS Code. Please be aware that you do not need to restart the Scrypted Server if you make changes to a plugin. Edit the plugin, launch, and the updated plugin will deploy on the running server.

If you do not want to set up VS Code, you can also run build and install the plugin directly from the command line:

# currently in the plugins/homekit directory.
npm run build && npm run scrypted-deploy 127.0.0.1

Plugin SDK Documentation

Want to write your own plugin? Full documentation is available here: https://developer.scrypted.app

Debug the Scrypted Server in VS Code

Debugging the server should not be necessary, as the server only provides the hosting and RPC mechanism for plugins. The following is for reference purpose. Most development can be done by debugging the relevant plugin.

# check out the code
git clone https://github.com/koush/scrypted
cd scrypted
# get the dependencies for the server and various plugins
./npm-install.sh
# open server project in VS Code
code server

You can now launch the Scrypted Server in VS Code.

scrypted's People

Contributors

1vivy avatar adrum avatar bjia56 avatar brianschrameck avatar burnsra avatar bzoel avatar drulmc avatar errorerrorerror avatar fiachantaw avatar georgesdib avatar gtalusan avatar igx89 avatar kevinwmerritt avatar koush avatar kvazibox avatar leedsalex avatar longzheng avatar marcptrs avatar nanosonde avatar nberardi avatar notsaifa avatar perfectly-preserved-pie avatar pleaseemail avatar raman325 avatar roarrk avatar rosemaryorchard avatar slyoldfox avatar thisisqasim avatar vandalon avatar xdissent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scrypted's Issues

Ring Plugin Reqest

Hey. Great work on this, its fantastic! Everything just works, I have moved everything over from homebridge and it was seamless!

One thing that I am missing that I can’t move from homebridge would be the ‘ring’ plugin. It would brilliant if you could add support for that. The homebridge ring plugin is great but I would prefer to have all my cameras showing on one dashboard and one method of feeding to homekit.

I have a few ring cameras and the doorbell. Is that something you could add in the future? Would it be easy to adapt the ring homebridge plugin to make it scrypted compatible?

Thanks!

Network error on login

Installed NPM on Mac and installed via terminal. I can access the page and set up initially went fine. When I closed the window, it caused the cameras to stop. When I attempted to log back it states "network error". Not sure if my best route is to start over completely or find a way to change the password... not exactly sure how to do either.

New install on Raspberry Pi "SyntaxError: Unexpected end of input"

Hello,
I just installed this on a Raspberry Pi, running Node v 16.03 on a fresh 32bit image from the Raspberrypi.com website dated from 2021-10-30.
I'm using a Raspberry Pi 3 Model B Rev 1.2

I installed locally using the the following steps....

sudo apt install curl && curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash -

sudo apt install ffmpeg libavahi-compat-libdnssd-dev nodejs gcc g++ make -y

npx -y scrypted serve

It keeps crashing and repeating the following after the initial npx -y scrypted serve command is done.
See below.....

pi@raspberrypi:~ $ npx -y scrypted serve
cwd /home/pi/.scrypted
Starting scrypted main...
running /usr/bin/node --expose-gc node_modules/@scrypted/server/dist/scrypted-main.js
/home/pi/.scrypted/node_modules/express/lib/view.js:84

SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/.scrypted/node_modules/express/lib/application.js:22:12)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
Service exited. Restarting momentarily.
Starting scrypted main...

Edit: I just checked something, does this require Ubuntu Server for Raspberry Pi or can I use Raspberry Pi OS Lite which is what I'm currently using?

failure takePicture Error: Request failed with status code 500

I really want to get Scrypted working in my environment (so thanks a lot by the way!) but I noticed that I am not receiving alerts or having footage recorded. It did work once yesterday but have since stopped.

I do see this in the logs and can also provide more info if you tell me where to look.

    Nov 14 13:33:35 VM_ npx[979]: e HomeKit unhandledRejection Error: @scrypted/homekit:host: host:@scrypted/amcrest: Request failed with status code 500
    Nov 14 13:33:51 VM_ npx[979]: failure takePicture Error: Request failed with status code 500
    Nov 14 13:33:51 VM_ npx[979]:     at createError (/node_modules/axios/lib/core/createError.js:16:15)
    Nov 14 13:33:51 VM_ npx[979]:     at settle (/node_modules/axios/lib/core/settle.js:17:12)
    Nov 14 13:33:51 VM_ npx[979]:     at IncomingMessage.<anonymous> (/node_modules/axios/lib/adapters/http.js:269:11)
    Nov 14 13:33:51 VM_ npx[979]:     at IncomingMessage.emit (node:events:402:35)
    Nov 14 13:33:51 VM_ npx[979]:     at IncomingMessage.emit (node:domain:475:12)
    Nov 14 13:33:51 VM_ npx[979]:     at endReadableNT (node:internal/streams/readable:1343:12)
    Nov 14 13:33:51 VM_ npx[979]:     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
    Nov 14 13:33:51 VM_ npx[979]:   config: {
    Nov 14 13:33:51 VM_ npx[979]:     url: 'http://192.168.141.17:80/cgi-bin/snapshot.cgi',
    Nov 14 13:33:51 VM_ npx[979]:     method: 'get',
    Nov 14 13:33:51 VM_ npx[979]:     headers: {
    Nov 14 13:33:51 VM_ npx[979]:       Accept: 'application/json, text/plain, */*',
    Nov 14 13:33:51 VM_ npx[979]:       authorization: 'Digest username="admin", realm="Login to AMC0658A9030EBD927", nonce="202890372", uri="/cgi-bin/snapshot.cgi", qop="auth", algorithm="MD5", response="7ec1701b9bcbe0a06ad864b1f0556adc", nc="00000029", cnonce="304a3ac08291d10a7e46b08ded5f1d59d15f4b30b1e89ba5"',
    Nov 14 13:33:51 VM_ npx[979]:       'User-Agent': 'axios/0.21.4'

Failed installation: npm ERR! cb.apply is not a function

Hi, as per title my installation fails, at first as normal user and then with sudo. I'm on Ubuntu 20.04.3, Intel NUC i5. You can find details about error, versions and log in the output below:

`~$ node -v
v16.13.0
~$ npx -v
10.2.2
~$ npx scrypted serve
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ric/.npm/_logs/2021-11-14T16_05_14_240Z-debug.log
Installazione di [ 'scrypted@latest' ] fallita con codice 1
~$ cat /home/ric/.npm/_logs/2021-11-14T16_05_14_240Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/bin/node',
1 verbose cli '/usr/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'scrypted@latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli '/home/ric/.npm/_npx/6416',
1 verbose cli '--loglevel',
1 verbose cli 'error',
1 verbose cli '--json'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 6bf03c581657a826
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/scrypted 1630ms
8 http fetch GET 200 https://registry.npmjs.org/scrypted/-/scrypted-1.0.30.tgz 1123ms
9 silly pacote tag manifest for scrypted@latest fetched in 2789ms
10 verbose stack TypeError: cb.apply is not a function
10 verbose stack at /usr/lib/node_modules/npx/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
10 verbose stack at FSReqCallback.oncomplete (node:fs:199:5)
11 verbose cwd /home/ric
12 verbose Linux 5.11.0-40-generic
13 verbose argv "/usr/bin/node" "/usr/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js" "install" "scrypted@latest" "--global" "--prefix" "/home/ric/.npm/_npx/6416" "--loglevel" "error" "--json"
14 verbose node v16.13.0
15 verbose npm v5.1.0
16 error cb.apply is not a function
17 verbose exit [ 1, true ]
~$ sudo npx scrypted serve
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-14T16_07_33_344Z-debug.log
Installazione di [ 'scrypted@latest' ] fallita con codice 1`

I followed your instructions, I just skipped the node.js repository installation because I already have it installed and I update it via Homebridge.

Thank you.

Dahua VTO2211 video doorbels sound support

I use this Amcrest plugin with Dahua VTO2211 and it work fine. I can receive motion and button press events. But I have problem with audio when use Rebroadcast Plugin.
Without Rebroadcast Plugin - I have audio in live stream and in saved clips (HomeKit Secure Video)
With Rebroadcast with COPY in transcoding - no audio in stream, but it work in recorded clips
With Transcode - no audio in stream, normal in clips
with PCM audio - I have audio in stream and in saved clips. But this audio is wrong. the sound is distorted.

Audio codec in my camera is pcm_s16be

if sound work with HomeKit without Rebroadcat plugin, maybe it can work with it? or i do something wrong?

console log when use transcoded audio
[Rebroadcast Plugin]:     Stream #0:1: Audio: pcm_s16be, 16000 Hz, mono, s16, 256 kb/s
[Rebroadcast Plugin]: Stream mapping:
[Rebroadcast Plugin]:   Stream #0:0 -> #0:0 (copy)
[Rebroadcast Plugin]:   Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (libfdk_aac))
[Rebroadcast Plugin]:   Stream #0:0 -> #1:0 (copy)
[Rebroadcast Plugin]:   Stream #0:1 -> #1:1 (pcm_s16be (native) -> aac (libfdk_aac))
[Rebroadcast Plugin]: Press [q] to stop, [?] for help
[Rebroadcast Plugin]: Detected audio codec was not AAC. pcm_s16be
[Rebroadcast Plugin]: Output #0, mp4, to 'tcp://127.0.0.1:11133':
[Rebroadcast Plugin]:   Metadata:
[Rebroadcast Plugin]:     title           : Media Server
[Rebroadcast Plugin]:     encoder         : Lavf58.45.100
[Rebroadcast Plugin]:     Stream #0:0: Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/bt709, progressive), 1280x720, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
[Rebroadcast Plugin]:     Stream #0:1: Audio: aac (libfdk_aac) (LC) (mp4a / 0x6134706D), 16000 Hz, mono, s16, 34 kb/s
[Rebroadcast Plugin]:     Metadata:
[Rebroadcast Plugin]:       encoder         : Lavc58.91.100 libfdk_aac
[Rebroadcast Plugin]: Output #1, mpegts, to 'tcp://127.0.0.1:10400':

No video from Amcrest Camera

I've installed Scrypted in a Docker container, and I can log in just fine. Plugins for Amcrest, HomeKit, and prebuffer-mixin were installed.

After adding a camera to the Amcrest plugin, I get no image or video in Scrypted. The camera is on the network and reachable, and I can connect to it using the credentials that I've provided to Scrypted. I've also gotten it working successfully in Home Assistant, using both the Amcrest integration and Falcon.

This is the only error I see in the log:

6:32:26 AM | e | Amcrest Camera Controller | uncaughtException TypeError: Cannot read properties of undefined (reading '1')Amcrest Camera Controller

Let me know what else I can provide, and thanks for the help!

ONVIF: Allow using sub profile

Currently the ONVIF plugin always uses the main profile. In my case that's not ideal, since my main profile is 4 MP which is too much bandwidth/resolution for streaming (such as HomeKit). In my case the third profile (subtype=2) is 1 MP (1280x720) which works much better. It would be nice to have an easy way to select that other profile to use instead, causing both the stream and the snapshot to switch to that resolution. I can override the stream URL as a workaround, though that still keeps my snapshot image as 4MP.

Again, low priority, mostly a nice-to-have.

HomeKit: ffmpeg process leak

I have found a couple of ways to cause ffmpeg processes to be created and never killed -

  • Via homekit, open a stream in home app and quickly close the stream.

  • When the source times out in rebroadcast plugin, it retries with a new process, and doesn't kill old, and will create infinite processes

Homekit Secure Video very short recordings

Hey koush,

is the recording length of the homekit secure video adjustable?
My other cameras that work directly with homekit are recording much longer videos (10-15sec) than the ones that are running with scrypted(5sec).

Is that length adjustable through your very great project or is that fixed in homekit itself?

Camera Properties configuration?

Hi,
Is there a way to config the 'manufacture', 'serial number' and 'model' for a RTSP Camera instead of using the default contents?

Fails to start Docker container

I've set up the container on my Synology NAS with host network and a volume, following the instructions. However when I run the container I see this error:

standard_init_linux.go:230: exec user process caused: exec format error

ffmpeg error while loading shared libraries

I was make clean install on raspberry pi 4 with docker compose. When I'm starting to watch video from my camera on Home kit, I was see errors in logs:

[HIKVISION DS-2CD2132-I] /raspbian/usr/local/bin/ffmpeg: error while loading shared libraries: libmmal_core.so: cannot open shared object file: No such file or directory


[HIKVISION DS-2CD2132-I] ffmpeg exited

uncaughtException Error: killed
    at ChildProcess.b (/common/src/ffmpeg-rebroadcast.ts:101:34)
    at ChildProcess.emit (node:events:402:35)
    at ChildProcess.emit (node:domain:475:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

e Rebroadcast Plugin uncaughtException Error: killed

[RTSP/HomeKit] Can't configure decoder

No record in HomeKit, look like the decoder doesn't work

[HomeKit]: SoymilkCam streaming request { sessionID: '03ec0b49-043b-4248-a971-4557e8628bff', type: 'stop' }
[HomeKit]: streaming session killed
[HomeKit]: [rtsp @ 0x55d323554900] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
[HomeKit]: Consider increasing the value for the 'analyzeduration' and 'probesize' options
[HomeKit]: Guessed Channel Layout for Input Stream #0.1 : mono
[HomeKit]: Input #0, rtsp, from 'rtsp://1.1.1.1/av_stream/ch0':
[HomeKit]:   Metadata:
[HomeKit]:     title           : DYrtpsion
[HomeKit]:   Duration: N/A, start: 0.000000, bitrate: 64 kb/s
[HomeKit]:     Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
[HomeKit]:     Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[HomeKit]: Input #1, lavfi, from 'anullsrc=cl=1':
[HomeKit]:   Duration: N/A, bitrate: N/A
[HomeKit]:     Stream #1:0: Audio: pcm_u8, 44100 Hz, 1 channels (FL), u8, 352 kb/s
[HomeKit]: Output #0, rtp, to 'srtp://1.1.1.262539?rtcpport=62539&pkt_size=564':
[HomeKit]: Output file #0 does not contain any stream
[HomeKit]: video/audio detected, discarding further input
[HomeKit]: ffmpeg exited
[SoymilkCam] [h264_v4l2m2m @ 0x563630b0a700] Could not find a valid device

[h264_v4l2m2m @ 0x563630b0a700] can't configure decoder

[SoymilkCam] Stream mapping:

  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))

  Stream #0:1 -> #1:0 (pcm_alaw (native) -> aac (libfdk_aac))

[SoymilkCam] Error while opening decoder for input stream #0:0 : Invalid argument

[SoymilkCam] ffmpeg exited

Import RTSP Camera in HomeKit as Doorbell

I want to start by saying what you have accomplished with cracking the HomeKit Secure Video is amazing. I want to personally thank you for completing the missing piece for me to bring my Wyze Cameras in HomeKit with video recording.
I am the dev who created the Homebridge plugins for both SmartThings and Hubitat so I have a lot of experience with HomeKit.

I'm curious if it's possible to have your HomeKit plugin bring in devices marked as Doorbells into HomeKit as a doorbell?
I have a Wyze Doorbell I would like to bring into HK.
I suppose since we don't have access to the doorbell button event it might be pointless but I'm curious nonetheless.

Thanks again for your time!

Enable OpenCV for your RTSP camera causing 100% CPU usage - Raspberry Pi 4

Using docker on a Pi 4, or installing manually. When enabling OpenCV for motion detection for HKSV, the Pi's cpu spikes and stays at 100% usage.

Removing the Open CV plugin drops the CPU usage to a normal level (5/10%).

Is this expected behaviour or a bug? Other plugins used are HomeKit; RTSP Camera Controller; Rebroadcast Plugin; Scrypted Core

Nothing loaded when localhost was loaded

i Scrypted Core loading @scrypted/core
i Scrypted Core pid 66131
i Scrypted Core loaded @scrypted/core
converting text/x-local-uri text/x-local-uri
converting text/x-local-uri text/x-uri

Slow ONVIF snapshot performance

Hello! Really intrigued with your application and have been trying it out. One thing I noticed is that taking snapshots on my ONVIF camera (Dahua) is unusually slow: appears to take 2-10 seconds on average (running in a Docker container on a Synology DS220+, pulling a 4MP image). Looking over the code I noticed that the snapshot URI isn't cached, so every snapshot request appears to involve requesting both the snapshot URI and the image itself. I haven't had time to investigate actual request durations yet, but wanted to throw it out there as a potential (easy?) performance improvement to cache the snapshot URI.

An alternative solution could be a setting to override the snapshot URL, but for ONVIF that probably wouldn't be very useful for most people (since finding the right URL could be tricky).

Low priority -- if this annoys me enough and I decide to keep using this app, I may take this up as a good first PR as well :)

New Discord Link

When attempting to join the Discord via the link in the readme I get a message saying it’s expired. Is it possible to get a new invite link?

Constant crash with G3 Instant

Hi!

I just acquired a Cloud key gen 2 plus and a G3 Instant.

Everything is at the latest version, including iOS.

I added the camera to homekit to use with secure video and installed all the required plugins as described on the main page.

Im running scrypted on a raspberry pi 4.

Everthings works fine for about 2-3 hours and the process always crash and exit.

I want to help to get that resolved, just tell me what information/logs are needed!

Thanks!

Upgrade not available

I see some of the plugins have been upgraded in the last few days but I don't get the Upgrade button anymore at the Plugins page. My HomeKit plugin is at 0.0.80 but I see 0.0.95 is out. Has the upgrade process from main screen been phased out? What is the correct way to upgrade all system and components? Thanks.

Willing to help with Hikvision Camera

Just tried out the Hikvision plug-in and the video does not play. Screenshots works though even though I only had to enter the RTSP link so it must be working. Motion Alerts don't work also.

Both rtsp link and motion alerts (Hikvision integration) work on Home Assistant.

I can submit logs or other things if needed. Appreciate the work you've done.

Amcrest Doorbell Support?

First off, this project incredible. Using my Amcrest cameras with HomeKit secure video is fantastic.

I would hoping you could add support for doorbell, specially the Amcrest doorbells.

Keep up the great work!

Very high temperature on Rpi 4

The OpenCv plugin brings the temperature of my rpi4 to higher than 80°C. (Only 2 cameras added)

Is there any chance to add support for a USB edge TPU?
If the edge tpu would be used for motion detection there wouldn’t be any temperature issue with the pi.

Btw.: really great project!!!
Thank you so much for bringing the chance to add Homekit secure video to 3rd party cams!

Permission Denied

Hey, hello there.
I'm trying to instal this amazing app into my rpi, in wich I already have a few HB instances and Node red runing, but theres is an error that I need some help to solve.
As I'm not a pro, I can't figure out how to make it work.

Following the install steps I'm getting s "permission denied" error, even using sudo.
Node was successfuly updated to 16.13;
When trying to instal NPX, whith Sudo and Sudo su, the return is:

:~ $ npm install -g npx
npm ERR! code EACCES
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/lib/node_modules/npx
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/npx'
npm ERR!  [Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/npx'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/lib/node_modules/npx'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2021-11-05T16_27_07_215Z-debug.log

And when trying to isntall scrypted the messsage is:

sh: 1: scrypted: Permission denied

How can I solve this and get scrypted running ?
Thanks in advance.

UniFi Cameras Fail to Load Stream

UniFi Cameras in HomeKit fail to stream video but do record to HomeKit Secure Video for playback

    Last message repeated 1 times
[h264 @ 0x7fc67580c800] decode_slice_header error
[h264 @ 0x7fc67580c800] no frame!
[h264 @ 0x7fc67580c800] non-existing PPS 0 referenced

    Last message repeated 1 times
[h264 @ 0x7fc67580c800] decode_slice_header error
[h264 @ 0x7fc67580c800] no frame!

Input #0, mpegts, from 'tcp://127.0.0.1:23900':
  Duration: N/A, start: 238.642544, bitrate: N/A
  Program 1 
    Metadata:
      service_name    : 
74ACB9013710_0
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 64 kb/s

Output #0, rtp, to 'srtp://10.0.0.200:56319?rtcpport=56319&pkt_size=564':
  Metadata:
    encoder         : Lavf58.45.100

video/audio detected, discarding further input
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 58.45.100
m=video 56319 RTP/AVP 99
c=IN IP4 10.0.0.200
a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=1; sprop-parameter-sets=`sanitized`; profile-level-id=4D4033
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:`sanitized`
m=audio 61438 RTP/AVP 110
c=IN IP4 10.0.0.200
b=AS:24
a=rtpmap:110 MPEG4-GENERIC/24000/1
a=fmtp:110 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=F8EC2126A000
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:`sanitized`


streaming request { sessionID: '`sanitized`', type: 'stop' }

Docker Support for Raspberry Pi

Docker image does not work on arm64 (i.e. Raspberry Pi).

scrypted | standard_init_linux.go:228: exec user process caused: exec format error

Is it possible to publish this for arm64 as well as amd64 et al?

Can’t access camera stream from outside my wifi

Hi,

I’m really happy that I stumbled upon scrypted! I’m using it with two UniFi cameras and the rebroadcast plugin and I’m amazed by how fast playback starts once I open a camera stream in my home app. This setup is working much better than the UniFi-protect plugin for homebridge which I used before.
One question though: I can’t open the stream when I’m not in my wifi. Are there any ports I need to forward or any other settings I have to consider?

Thanks!

Docker-Compose

I made this docker-compose file if you wish to share it in your README, IDK how to pull-request it

edited to add a z-wave USB stick into the container via devices:

version: '3.5'

services:
    scrypted:
        image: koush/scrypted
        container_name: scrypted
        restart: unless-stopped
        ports:
            - 9443:9443
        environment:
            - TZ=America/Seattle
        devices:
            - /dev/ttyACM0
        volumes:
            - LOCAL_STORAGE/scrypted:/server/volume

Unifi Streams/Recordings Won't Load

Still images update every 10s, top right of each camera "block" shoes the red recording dot, activity notifications coming through, BUT when I open a camera to view stream and/or recordings, it just gets stuck loading and eventually says camera isn't responding. Any ideas?

Google Device Access plugin: Missing Token

When setting up the Google Device Access plugin the login process seems to proceed as it should. But near the end it looks as though the browser is directed possibly an improper address for scripted, at https://home.scrypted.app/_punch/authed..., where a black white page with simply "not registered" is displayed.

I see in the plugin documentation it mentions "If using a remote server, edit .vscode/settings.json to specify the IP Address of the Scrypted server." But this is all running on one computer.

Error setting recording option

When I try to set the recording option for my second Amcrest camera, I receive an error There was an error updating the setting for this camera, please try again later.

The logs shows the following:

    Nov 14 02:46:28 VM_ npx[6023]: Service exited. Restarting momentarily.
    Nov 14 02:46:34 VM_ npx[6109]: Failed to listen on port 10081. It may be in use.
    Nov 14 02:46:34 VM_ npx[6109]: Use the environment variable SCRYPTED_DEBUG_PORT to change the port.
    Nov 14 02:46:34 VM_ npx[6109]: Error: listen EADDRINUSE: address already in use :::10081
    Nov 14 02:46:34 VM_ npx[6109]:     at Server.setupListenHandle [as _listen2] (node:net:1334:16)
    Nov 14 02:46:34 VM_ npx[6109]:     at listenInCluster (node:net:1382:12)
    Nov 14 02:46:34 VM_ npx[6109]:     at Server.listen (node:net:1469:7)
    Nov 14 02:46:34 VM_ npx[6109]:     at listenServerPort (/home/USER/.scrypted/node_modules/@scrypted/server/src/scrypted-main.ts:43:12)
    Nov 14 02:46:34 VM_ npx[6109]:     at Object.<anonymous> (/home/USER/.scrypted/node_modules/@scrypted/server/src/scrypted-main.ts:100:5)
    Nov 14 02:46:34 VM_ npx[6109]:     at Module._compile (node:internal/modules/cjs/loader:1101:14)
    Nov 14 02:46:34 VM_ npx[6109]:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    Nov 14 02:46:34 VM_ npx[6109]:     at Module.load (node:internal/modules/cjs/loader:981:32)
    Nov 14 02:46:34 VM_ npx[6109]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    Nov 14 02:46:34 VM_ npx[6109]:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    Nov 14 02:46:34 VM_ npx[4844]: Service exited. Restarting momentarily.

Update Scrypted on Diet Pi

Installed Scrypted on Diet PI (as a VM on Windows Hyper-V). Runs incredibly smooth, HomeKit cameras respond way better than in Hombridge and HSK is just an amazing job. My question is, how do I update Scrypted or the plugins once there are new versions or upgrades? I see no reference to that in the read me...

Also, any chance you can do a plugin to turn Apple TV on or off as a switch in HomeKit?

Thanks!

synology-ss webhook

Hi,
I tried to use synology-ss plugin and all the cam on my synology ss were imported.
However, I tried to switch the 'Linked motion sensor' between 'Build-in motion sensor' and the sensor with the same name as the cam but no motion was triggered for both sensor. I can see the surveillance station can detect the motion on the surveillance station web interface.
Are there anything else need to be set up in the surveillance station or scrypted?
Best.

rtsp does not work

Hi

rtsp does not work , I point the link rtsp://:@192.168.3.109:554/cam/realmonitor?channel=12&subtype=0
( this link works fine in hoobs Camera Ui )

But in scrypted - no video ( black screen ) , no errors .

изображение

Please advise what I do wrong?
Thanks

RTSP video stopped working overnight

Hi Koush, after the problems I outlined, last evening I decided to simply stop troubleshooting and to setup it all over again, removing all the images, containers, volumes and compose data.

Well, it didn't work at first. Like I said, just thumbnail update Avery like 10 seconds but no streaming at all (only in Scrypted itself). No error shoot at the console. I tried to re-enable IGMP snooping and mDNS broadcasting on my UDM, but this just made all of my HK stuff unreachable, so I turned them back off.

Then I put one more time the host IP address (v4) in the HomeKit plugin/Network mask like you said and restart just the plugin and it suddenly was working very well, both live and recordings streaming.

This morning without touching it is not working again, neither live nor recordings streaming.

Please let me know what info you need to troubleshoot. Thank you

cant install without getting these errors

src/plugin/plugin-host.ts:24:13 - error TS2503: Cannot find namespace 'cluster'.

24 worker: cluster.Worker;
~~~~~~~

src/plugin/plugin-host.ts:192:47 - error TS7006: Parameter 'data' implicitly has an 'any' type.

192 this.worker.process.stdout.on('data', data => {
~~~~

src/plugin/plugin-host.ts:195:47 - error TS7006: Parameter 'data' implicitly has an 'any' type.

195 this.worker.process.stderr.on('data', data => process.stderr.write(data));
~~~~

src/plugin/plugin-host.ts:202:39 - error TS7006: Parameter 'code' implicitly has an 'any' type.

202 this.worker.on('exit', async (code, signal) => {
~~~~

src/plugin/plugin-host.ts:202:45 - error TS7006: Parameter 'signal' implicitly has an 'any' type.

202 this.worker.on('exit', async (code, signal) => {
~~~~~~

src/plugin/plugin-host.ts:206:33 - error TS7006: Parameter 'e' implicitly has an 'any' type.

206 this.worker.on('error', e => {
~

src/plugin/plugin-host.ts:210:35 - error TS7006: Parameter 'message' implicitly has an 'any' type.

210 this.worker.on('message', message => this.peer.handleMessage(message));
~~~~~~~

src/plugin/plugin-host.ts:214:54 - error TS7006: Parameter 'e' implicitly has an 'any' type.

214 this.worker.send(message, undefined, e => {
~

Found 8 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: tsc --outDir dist
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/cc/.npm/_logs/2021-09-09T17_03_38_089Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] serve: npm run build && node dist/scrypted-main.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

I 🤎 SCRYPTED [not bug, just extend support request]

Hi @koush,
first of all: this is a fantastic, very useful job, which I loved.
I landed here because I tried to activate Homekit Secure Video and after installing "scrypted", I confess that I now use it for some automation.

Unfortunately I can't use HKSV because I have Hikvision cameras and the "@scrypted/rtsp" plugin doesn't support it.
Do you think it is possible for "@scrypted/rtsp" to support HKSV?

Thanks again for "scrypted"!

Zigbee?

I'm looking at the plugins folder and don't see any references to Zigbee. Is this something you may add? I have a ton of Zigbee devices. I'm currently using Zigbee2MQTT, does Scrypted have an easy way to integrate via MQTT?

Can't add Scrypted Home Automation to Google Home

When going to the Google Home app → Setup Device → Works with Google → Scrypted Home Automation , I then login with my Google credentials, and get a notification that "Scrypted Home Automation is linked" followed by "Something went wrong. Try again.".

I have confirmed that I am logged in to the Scrypted Cloud (API) plugin using my same Google credentials. I am on the latest docker version as well as the latest plugin version for both Google Home and Scrypted Cloud (as well as Core).

CleanShot 2021-09-23 at 16 46 21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.