Giter VIP home page Giter VIP logo

homebridge-camera-swann's Introduction

SupImDos

๐Ÿ Python developer from ๐Ÿ“ Perth, WA

@dataclass
class SupImDos:
    name: str = "Hayden Richards"
    username: str = "SupImDos"
    age: int = 25
    location: str = "Perth, WA"

if __name__ == "__main__":
    me = SupImDos()

๐Ÿ”ญ Languages

  • Python

๐ŸŒฑ Learning

  • Rust
  • HTML / CSS / JavaScript / TypeScript

homebridge-camera-swann's People

Contributors

aaronpearce avatar agentmcbride avatar aremishevsky avatar ay avatar cflurin avatar cooperd avatar dannyvancura avatar dewgew avatar donavanbecker avatar francesco-kriegel avatar georgo avatar khaost avatar krebbi avatar milmber avatar nebzhb avatar normen avatar northernman54 avatar oznu avatar patelhiren avatar rotx avatar sphtkr avatar supimdos avatar tgerring avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-camera-swann's Issues

Possible hikvision compatibility? Live stream not loading..

I have a hikvision camera which has most of the same stream options as Swann.

If I use a similar config I can get the still image loading just fine but the stream keeps trying to load.

Log:

ffmpeg -rtsp_transport tcp -i rtsp://view:[email protected]:554/Streaming/Channels/101/ -map 0:0 -vcodec copy -an -f rawvideo -payload_type 99 -ssrc 5046142 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Ob1DPKtZgzBBUxPuNrnihxYePW30zEhIRHAwmK18 srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378 -loglevel debug
ffmpeg version 4.2.git-47773f7 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal
  libavutil      56. 40.100 / 56. 40.100
  libavcodec     58. 68.102 / 58. 68.102
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 75.100 /  7. 75.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input url with argument 'rtsp://view:[email protected]:554/Streaming/Channels/101/'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-payload_type' ... matched as AVOption 'payload_type' with argument '99'.
Reading option '-ssrc' ... matched as AVOption 'ssrc' with argument '5046142'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option '-srtp_out_suite' ...
 matched as AVOption 'srtp_out_suite' with argument 'AES_CM_128_HMAC_SHA1_80'.

Reading option '-srtp_out_params' ...
 matched as AVOption 'srtp_out_params' with argument 'Ob1DPKtZgzBBUxPuNrnihxYePW30zEhIRHAwmK18'.

Reading option 'srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378' ...
 matched as output url.

Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://view:[email protected]:554/Streaming/Channels/101/.
Successfully parsed a group of options.
Opening an input file: rtsp://view:[email protected]:554/Streaming/Channels/101/.

[tcp @ 0x281c550] 
No default whitelist set
[tcp @ 0x281c550] Original list of addresses:
[tcp @ 0x281c550] Address 192.168.1.107 port 554
[tcp @ 0x281c550] Interleaved list of addresses:
[tcp @ 0x281c550] Address 192.168.1.107 port 554

[tcp @ 0x281c550] Starting connection attempt to 192.168.1.107 port 554

[tcp @ 0x281c550] Successfully connected to 192.168.1.107 port 554

[rtsp @ 0x281a530] 
SDP:
v=0
o=- 1590335352879747 1590335352879747 IN IP6 ::
s=Media Presentation
e=NONE
b=AS:5050
t=0 0
a=control:rtsp://192.168.1.107:554/Streaming/Channels/101/
m=video 0 RTP/AVP 96
c=IN IP6 ::
b=AS:5000
a=recvonly
a=x-dimensions:1280,720
a=control:rtsp://192.168.1.107:554/Streaming/Channels/101/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z0IAH52oFAFum4CAgIE=,aM48gA==
a=Media_header:MEDIAINFO=494D4B48010200000400000100000000000000000000000000000000000000000000000000000000;
a=appversion:1.0


[rtsp @ 0x281a530] 
video codec set to: h264
[rtsp @ 0x281a530] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[rtsp @ 0x281a530] RTP Packetization Mode: 1
[rtsp @ 0x281a530] Extradata set to 0x281de38 (size: 26)

[rtsp @ 0x281a530] setting jitter buffer size to 0
[rtsp @ 0x281a530] hello state=0

[h264 @ 0x281d920] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x281d920] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x281d920] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x281d920] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x281d920] unknown SEI type 229
[h264 @ 0x281d920] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x281d920] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x281d920] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x281d920] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x281d920] unknown SEI type 229
[h264 @ 0x281d920] Format yuvj420p chosen by get_format().
[h264 @ 0x281d920] Reinit context to 1280x720, pix_fmt: yuvj420p

[5/24/2020, 15:49:29] [Camera-Swann] Snapshot from: Camera @ 480:270
ffmpeg -rtsp_transport tcp -i rtsp://view:[email protected]:554/Streaming/Channels/101/ -t 1 -vf scale=480:270 -f image2 -
[5/24/2020, 15:49:29] [Camera-Swann] {"sessionID":"b5bf9b59-b5dc-4c40-b75c-cd84b08e93bb","type":"stop"}
[rtsp @ 0x281a530] interrupted
[rtsp @ 0x281a530] decoding for stream 0 failed

Input #0, rtsp, from 'rtsp://view:[email protected]:554/Streaming/Channels/101/':
  Metadata:
    title           : Media Presentation

  Duration: N/A, bitrate: N/A

    Stream #0:0, 1, 1/90000: Video: h264 (Baseline), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1280x720, 0/1, 90k tbr, 90k tbn, 180k tbc
Successfully opened the file.
Parsing a group of options: output url srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378.
Applying option map (set input stream mapping) with argument 0:0.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
Applying option an (disable audio) with argument 1.
Applying option f (force format) with argument rawvideo.
Applying option f (force format) with argument rtp.

Successfully parsed a group of options.
Opening an output file: srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378.
[srtp @ 0x28384e0] No default whitelist set

[rtp @ 0x286bba0] No default whitelist set
[udp @ 0x283afb0] No default whitelist set

[udp @ 0x283b110] No default whitelist set

Successfully opened the file.

Output #0, rtp, to 'srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378':
  Metadata:
    title           : Media Presentation
    encoder         : Lavf58.38.100
    Stream #0:0
, 0, 1/90000: Video: h264 (Baseline), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1280x720 (0x0), 0/1, q=2-31, 90k tbr, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help

frame=    0 fps=0.0 q=-1.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (rtsp://view:[email protected]:554/Streaming/Channels/101/):
  Input stream #0:0 (video): 0 packets read (0 bytes); 
  Total: 0 packets (0 bytes) demuxed
Output file #0 (srtp://192.168.1.129:49916?rtcpport=49916&localrtcpport=49916&pkt_size=1378):
  Output stream #0:0 (video): 0 packets muxed (0 bytes); 
  Total: 0 packets (0 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x283b1c0] Statistics: 0 seeks, 0 writeouts

Exiting normally, received signal 15.

[5/24/2020, 15:49:30] [Camera-Swann] Stopped streaming

Config:

{
            "platform": "Camera-Swann",
            "cameras": [
                {
                    "name": "Camera",
                    "videoConfig": {
                        "mainStream": "-rtsp_transport tcp -i rtsp://view:[email protected]:554/Streaming/Channels/101/",
                        "subStream": "-rtsp_transport tcp -i rtsp://[email protected]:554/Streaming/Channels/102/",
                        "maxStreams": 1,
                        "bitrateThreshold": 299,
                        "videoPacketSize": 1378,
                        "audioPacketSize": 188,
                        "mapvideo": "0:0",
                        "mapaudio": "0:1",
                        "audio": false,
                        "debug": true
                    }
                }
            ]
}

mainstream

help with homebridge setup

Describe Your Problem:
Im not getting motion notifications.
I would expect this to give me push notifications when motion is detected

Show the Homebridge logs here.
Remove any sensative information.

Homebridge Config:

``
{
"cameras": [
{
"name": "front yard",
"manufacturer": "swann",
"model": "nvr",
"motion": true,
"videoConfig": {
"mainStream": "-i rtsp://admin:[email protected]/ch01/1",
"subStream": "-i rtsp://admin:[email protected]/ch01/1",
"audio": true
}
}
],
"_bridge": {
"username": "0E:46:53:DE:A5:84",
"port": 41883
},
"platform": "Camera-Swann"
}



Need some help configuring

Describe The Bug:
I followed json guidelines and don't get an error but nothing shows up in home

To Reproduce:

Expected behavior:
I was hopeing the camers would jsut show up in my Homekit app

Logs:

Show the Homebridge logs here.
The log only shows the following:

Swann DVR is running on port 39059.

Homebridge Config:

This is how i built my Json i suspect i have the rtsp command wrong as i don't really understand it, does it need the [] and i dont understand the substream vs main or the CH) part of the command

[
{
"name": "Swann DVR",
"manufacturer": "swannview",
"model": "HDR8-8200",
"serialNumber": "0820130504AAWR093701234WCVU",
"firmwareRevision": "V2.2.2 Build 130424",
"videoConfig": {
"mainStream": "-rtsp_transport tcp-i rtsp://[admin]:[12345]@[10.0.0.117]:[85]/ch0[8]/0",
"subStream": "-rtsp_transport tcp -i rtsp://[admin]:[12345]@[10.0.0.117]:[85]/ch0[2]/1",
"maxStreams": 8,
"bitrateThreshold": 299,
"videoPacketSize": 1378,
"audioPacketSize": 188,
"mapvideo": "0:v",
"mapaudio": "0:a",
"audio": true,
"debug": false
}
}
]

Screenshots:

Environment:

  • Node.js Version:
  • NPM Version:
  • Homebridge Version:
  • Homebridge Camera FFmpeg Version:
  • Homebridge Config UI X Plugin Version:
  • Operating System:

FFMPEG Configuration

Describe Your Problem:

I am trying to configure my Swann NVR within HomeBridge however each of the cameras returns an error. It appears FFMPEG is exiting with error code -4058 but i cant find any reference to what this might be anywhere.
I have confirmed the stream works via VLC without an issue. I have also installed FFMPEG in the C: drive as per the install instructions.

I have tried excluding the username (HomeBridge) and password (HomeKit) from the url but it returns the same result indicating it is not an authentication issue.

Any ideas?

Logs:

[12/12/2020, 2:00:56 pm] [Camera-Swann] Homekit requested: 299Kbps. Starting main stream from: Front Door
ffmpeg -re -i rtsp://HomeBridge:[email protected]:554/ch01/0 -map 0:0 -vcodec copy -an -f rawvideo -payload_type 99 -ssrc 12788106 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params njXbWL6bTFy0C8WSJ1rhFlm/u8Vs1vACaz5MgpCj srtp://192.168.1.220:58288?rtcpport=58288&localrtcpport=58288&pkt_size=1378 -loglevel debug
[12/12/2020, 2:00:56 pm] [Camera-Swann] An error occured while making stream request
[12/12/2020, 2:00:56 pm] [Camera-Swann] Error: spawn ffmpeg ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn ffmpeg',
  path: 'ffmpeg',
  spawnargs: [
    '-re',
    '-i',
    'rtsp://HomeBridge:[email protected]:554/ch01/0',
    '-map',
    '0:0',
    '-vcodec',
    'copy',
    '-an',
    '-f',
    'rawvideo',
    '-payload_type',
    '99',
    '-ssrc',
    '12788106',
    '-f',
    'rtp',
    '-srtp_out_suite',
    'AES_CM_128_HMAC_SHA1_80',
    '-srtp_out_params',
    'njXbWL6bTFy0C8WSJ1rhFlm/u8Vs1vACaz5MgpCj',
    'srtp://192.168.1.220:58288?rtcpport=58288&localrtcpport=58288&pkt_size=1378',
    '-loglevel',
    'debug'
  ]
}
[12/12/2020, 2:00:56 pm] [Camera-Swann] **ERROR: FFmpeg exited with code -4058**

Homebridge Config:

{
            "cameras": [
                {
                    "name": "Front Door",
                    "manufacturer": "Swann",
                    "motion": false,
                    "videoConfig": {
                        "mainStream": "-re -i rtsp://HomeBridge:[email protected]:554/ch01/0",
                        "subStream": "-re -i rtsp://HomeBridge:[email protected]:554/ch01/1",
                        "debug": false
                    }
                }
            ],
            "platform": "Camera-Swann"
        },

json

{
    "bridge": {
        "name": "Homebridge 8DA8",
        "username": "0E:55:66:A0:8D:A8",
        "port": 51000,
        "pin": "220-01-626"
    },
    "accessories": [

        _{
            "cameras": [
                {
                    "name": "Front Door",
                    "manufacturer": "Swann",
                    "motion": false,
                    "videoConfig": {
                        "mainStream": "-re -i rtsp://HomeBridge:[email protected]:554/ch01/0",
                        "subStream": "-re -i rtsp://HomeBridge:[email protected]:554/ch01/1",
                        "debug": false
                    }
                }
            ],
            "platform": "Camera-Swann"
        },_
        {
            "refreshToken": "********************",
            "onlyDeviceTypes": [
                "doorbell_v3"
            ],
            "platform": "Ring"
        }
    ]
}


Screenshots:

Environment:

  • Node.js Version: 14.15.1
  • NPM Version: 6.14.8
  • Homebridge Version: <1.1.6>
  • Homebridge Camera FFmpeg Version: Homebridge-camera-swann v1.0.4
  • Homebridge Config UI X Plugin Version:homebridge-config-ui-x v4.36.0
  • Operating System: Windows 10

Streaming issue

Describe Your Problem:
Streaming of a camera just shows the "loading" symbol forever, even though the homebridge logs suggest the stream is being sent. The tile in the home app is however updated every 10 seconds.

Logs:


[5/14/2020, 12:47:36 PM] [Camera-Swann] Snapshot from: Test Cam @ 480:270
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/0 -t 1 -vf scale=480:270 -f image2 -
[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 31267 M=1
[rtp @ 0x555b920517c0] NAL size 31267 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 22390 M=1
[rtp @ 0x555b920517c0] NAL size 22390 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 51154 M=1
[rtp @ 0x555b920517c0] NAL size 51154 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 28582 M=1
[rtp @ 0x555b920517c0] NAL size 28582 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 29941 M=1
[rtp @ 0x555b920517c0] NAL size 29941 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 30405 M=1
[rtp @ 0x555b920517c0] NAL size 30405 > 1352

frame=   30 fps=0.0 q=-1.0 size=    1462kB time=00:00:01.93 bitrate=6190.4kbits/s speed=3.71x
[NULL @ 0x555b9203a540] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x555b9203a540] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x555b9203a540] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x555b9203a540] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0

[NULL @ 0x555b9203a540] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x555b9203a540] Decoding VPS
[NULL @ 0x555b9203a540] Main profile bitstream
[NULL @ 0x555b9203a540] Decoding SPS
[NULL @ 0x555b9203a540] Main profile bitstream
[NULL @ 0x555b9203a540] Decoding VUI
[NULL @ 0x555b9203a540] Decoding PPS

[NULL @ 0x555b9203a540] Decoding SEI
[NULL @ 0x555b9203a540] Skipped PREFIX SEI 229

[rtp @ 0x555b920517c0] Sending NAL 0 of len 23 M=0
[rtp @ 0x555b920517c0] Sending NAL 2 of len 35 M=0
[rtp @ 0x555b920517c0] Sending NAL 4 of len 7 M=0
[rtp @ 0x555b920517c0] Sending NAL e of len 9 M=0

[rtp @ 0x555b920517c0] Sending NAL 6 of len 575670 M=1

[rtp @ 0x555b920517c0] NAL size 575670 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 31061 M=1
[rtp @ 0x555b920517c0] NAL size 31061 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[rtp @ 0x555b920517c0]
Sending NAL 2 of len 48430 M=1
[rtp @ 0x555b920517c0] NAL size 48430 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 22380 M=1
[rtp @ 0x555b920517c0] NAL size 22380 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 42580 M=1
[rtp @ 0x555b920517c0] NAL size 42580 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0

[rtp @ 0x555b920517c0] Sending NAL 2 of len 52714 M=1
[rtp @ 0x555b920517c0] NAL size 52714 > 1352

[NULL @ 0x555b9203a540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[rtp @ 0x555b920517c0]
Sending NAL 2 of len 30711 M=1
[rtp @ 0x555b920517c0] NAL size 30711 > 1352

[libfdk_aac @ 0x555b92056740] Trying to remove 224 more samples than there are in the queue

frame=   37 fps= 35 q=-1.0 Lsize=    2256kB time=00:00:02.51 bitrate=7362.3kbits/s speed=2.36x
video:2231kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.774995%
Input file #0 (rtsp://admin:[email protected]:554/ch01/0):
  Input stream #0:0 (video): 37 packets read (2284418 bytes);
  Input stream #0:1 (audio): 42 packets read (20160 bytes); 42 frames decoded (20160 samples);
  Total: 79 packets (2304578 bytes) demuxed
Output file #0 (srtp://192.168.0.132:53772?rtcpport=53772&localrtcpport=53772&pkt_size=1378):
  Output stream #0:0 (video): 37 packets muxed (2284418 bytes);
  Total: 37 packets (2284418 bytes) muxed
Output file #1 (srtp://192.168.0.132:51152?rtcpport=51152&localrtcpport=51152&pkt_size=188):
  Output stream #1:0 (audio): 78 frames encoded (39936 samples)
; 79 packets muxed (7725 bytes);
  Total: 79 packets (7725 bytes) muxed
42 frames successfully decoded, 0 decoding errors

[AVIOContext @ 0x555b9214bb80] Statistics: 0 seeks, 1712 writeouts

[AVIOContext @ 0x555b9216d6c0] Statistics: 0 seeks, 80 writeouts

Exiting normally, received signal 15.

[5/14/2020, 12:47:36 PM] [Camera-Swann] Stopped streaming
[5/14/2020, 12:47:46 PM] [Camera-Swann] Snapshot from: Test Cam @ 480:270
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/0 -t 1 -vf scale=480:270 -f image2 -
[5/14/2020, 12:47:58 PM] [Camera-Swann] Snapshot from: Test Cam @ 480:270
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/0 -t 1 -vf scale=480:270 -f image2 -
[5/14/2020, 12:48:10 PM] [Camera-Swann] Snapshot from: Test Cam @ 480:270
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/0 -t 1 -vf scale=480:270 -f image2 -

Homebridge Config:

 "platforms": [
        {
            "cameras": [
                {
                    "name": "Test Cam",
                    "manufacturer": "Swann",
                    "model": "NVR-123",
                    "serialNumber": "1234",
                    "firmwareRevision": "V8.1.0",
                    "videoConfig": {
                        "mainStream": "-rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/0",
                        "subStream": "-rtsp_transport tcp -i rtsp://admin:[email protected]:554/ch01/1",
                        "maxStreams": 1,
                        "bitrateThreshold": 299,
                        "videoPacketSize": 1378,
                        "audioPacketSize": 188,
                        "mapvideo": "0:v",
                        "mapaudio": "0:a",
                        "audio": true,
                        "debug": true
                    }
                }
            ],
            "platform": "Camera-Swann"
        }
    ]

Environment:
onzu docker container

Set up

Describe Your Problem:
Hi, I hope you can help. Currently use XMEYE to view camera, honestly cannot remember how I set this up. But from the app settings it appears only a serial number and user&pass. How would I add this on the config file?

Logs:

Show the Homebridge logs here.
Remove any sensative information.

Homebridge Config:

Show your homebridge config.json here. 
Remove any sensitive information, such as your homebridge-gsh / google-smarthome token.

Screenshots:

Environment:

  • Node.js Version:
  • NPM Version:
  • Homebridge Version:
  • Homebridge Camera FFmpeg Version:
  • Homebridge Config UI X Plugin Version:
  • Operating System:

re Swann not showing up in HomeKit Oliver

hi

I'm trying to add the cameras rtsp stream which I done I have test with vlc so I know it works.

what does Interface Name mean. also its not showing up in the log or HomeKit

many thanks Oliver

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.