Hi,
I am trying to run the docker image you created but it keeps crashing.
Here is how I created my container
docker run -d -e DEBUG=1 -v ./config.yaml:/onvif.yaml --cap-add NET_ADMIN --network host --restart=no --name rtsp-to-onvif kulasolutions/rtsp-to-onvif:latest
Here is my config.yaml file
onvif:
- name: cam1
dev: ens18
target:
hostname: 192.168.2.249
ports:
rtsp: 554
snapshot: 80
highQuality:
rtsp: /h264Preview_01_main
snapshot: /cgi-bin/api.cgi?cmd=Snap&channel=0
width: 2560
height: 1920
framerate: 30
bitrate: 3072
quality: 4
ports:
server: 8081
rtsp: 8554
snapshot: 8080
The network adapter on the debian pc running docker is ens18
root@cantius:~/rtsp-to-onvif# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether bc:24:11:36:30:bc brd ff:ff:ff:ff:ff:ff
altname enp0s18
inet 192.168.2.134/24 brd 192.168.2.255 scope global dynamic ens18
valid_lft 68649sec preferred_lft 68649sec
inet6 fe80::be24:11ff:fe36:30bc/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:e3:4f:54:27 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:e3ff:fe4f:5427/64 scope link
valid_lft forever preferred_lft forever
Here are the debug logs
Cannot find device "ens18"
Cannot find device "rtsp2onvif_0"
19:59:55.021 ERROR NET_SCAN: No interface with MAC 1a:11:b0:fd:31:d5
19:59:55.021 INFO NET_CONF: ADD - rtsp2onvif_0 MAC: 1A:11:B0:FD:31:D5
19:59:55.027 DEBUG Command failed: ip link add rtsp2onvif_0 link ens18 address 1A:11:B0:FD:31:D5 type macvlan mode bridge
Cannot find device "ens18"
19:59:55.027 INFO NET_CONF: DHCP - rtsp2onvif_0
19:59:55.040 DEBUG Command failed: dhclient rtsp2onvif_0
Cannot find device "rtsp2onvif_0"
19:59:55.040 ERROR NET_SCAN: No interface with MAC 1a:11:b0:fd:31:d5
19:59:55.040 ERROR Failed to find IP address for MAC address 1A:11:B0:FD:31:D5
(node:1) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:1) [DEP0047] DeprecationWarning: The `util.isDate` API is deprecated. Please use `arg instanceof Date` instead.
What am I missing?
Thanks for your help.
Hi,
I am trying to run the docker image you created but it keeps crashing.
Here is how I created my container
Here is my config.yaml file
The network adapter on the debian pc running docker is ens18
Here are the debug logs
What am I missing?
Thanks for your help.