Giter Site home page Giter Site logo

roleoroleo / onvif_simple_server Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 7.0 353 KB

Light implementation of an onvif server intended for use in resource-constrained devices

License: GNU General Public License v3.0

Makefile 0.53% C 98.23% Shell 1.24%
c light onvif server simple

onvif_simple_server's People

Contributors

gtxaspec avatar roleoroleo avatar

Stargazers

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

Watchers

 avatar  avatar

onvif_simple_server's Issues

How to set env

Host: Ubuntu 20.04LTS

Run:
sudo ./onvif_simple_server -c onvif_simple_server.conf -d 5

Log: /var/log/onvif_simple_server.log
2024-06-28 11:31:39 INFO onvif_simple_server.c:275: Starting program.
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:52: Dump environment variables
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:53: AUTH_TYPE: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:54: CONTENT_LENGTH: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:55: CONTENT_TYPE: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:56: DOCUMENT_ROOT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:57: GATEWAY_INTERFACE: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:58: HTTP_ACCEPT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:59: HTTP_COOKIE: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:60: HTTP_FROM: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:61: HTTP_REFERER: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:62: HTTP_USER_AGENT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:63: PATH_INFO: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:64: PATH_TRANSLATED: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:65: QUERY_STRING: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:66: REMOTE_ADDR: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:67: REMOTE_HOST: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:68: REMOTE_PORT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:69: REMOTE_IDENT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:70: REMOTE_USER: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:71: REQUEST_METHOD: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:72: REQUEST_URI: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:73: SCRIPT_FILENAME: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:74: SCRIPT_NAME: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:75: SERVER_NAME: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:76: SERVER_PORT: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:77: SERVER_PROTOCOL: (null)
2024-06-28 11:31:39 DEBUG onvif_simple_server.c:78: SERVER_SOFTWARE: (null)

2024-06-28 11:31:39 INFO onvif_simple_server.c:279: Processing configuration file onvif_simple_server.conf...
2024-06-28 11:31:39 DEBUG conf.c:118: model: Model
2024-06-28 11:31:39 DEBUG conf.c:118: manufacturer: FPTTelecom
2024-06-28 11:31:39 DEBUG conf.c:118: firmware_ver: 0.0.1
2024-06-28 11:31:39 DEBUG conf.c:118: hardware_id: HWID
2024-06-28 11:31:39 DEBUG conf.c:118: serial_num: SN1234567890
2024-06-28 11:31:39 DEBUG conf.c:118: ifs: ens32
2024-06-28 11:31:39 DEBUG conf.c:118: port: 8080
2024-06-28 11:31:39 DEBUG conf.c:118: scope: onvif://www.onvif.org/Profile/Streaming
2024-06-28 11:31:39 DEBUG conf.c:118: adv_fault_if_unknown: 0
2024-06-28 11:31:39 DEBUG conf.c:118: adv_synology_nvr: 0
2024-06-28 11:31:39 DEBUG conf.c:118: name: Profile_0
2024-06-28 11:31:39 DEBUG conf.c:118: width: 1920
2024-06-28 11:31:39 DEBUG conf.c:118: height: 1080
2024-06-28 11:31:39 DEBUG conf.c:118: url: rtsp://%s/ch0_0.h264
2024-06-28 11:31:39 DEBUG conf.c:118: snapurl: http://%s/cgi-bin/snapshot.sh
2024-06-28 11:31:39 DEBUG conf.c:118: type: H264
2024-06-28 11:31:39 DEBUG conf.c:118: decoder: G711
2024-06-28 11:31:39 DEBUG conf.c:118: name: Profile_1
2024-06-28 11:31:39 DEBUG conf.c:118: width: 640
2024-06-28 11:31:39 DEBUG conf.c:118: height: 360
2024-06-28 11:31:39 DEBUG conf.c:118: url: rtsp://%s/ch0_1.h264
2024-06-28 11:31:39 DEBUG conf.c:118: snapurl: http://%s/cgi-bin/snapshot.sh
2024-06-28 11:31:39 DEBUG conf.c:118: type: H264
2024-06-28 11:31:39 DEBUG conf.c:118: decoder: NONE
2024-06-28 11:31:39 DEBUG conf.c:118: ptz: 0
2024-06-28 11:31:39 WARN conf.c:326: Unrecognized option: ptz=0
2024-06-28 11:31:39 DEBUG conf.c:118: events: 0
2024-06-28 11:31:39 INFO onvif_simple_server.c:292: Completed.
2024-06-28 11:31:39 FATAL onvif_simple_server.c:299: HTTP method not supported

Segfault when using debug level 2..5

Hi

thanks for working on a simple onvif server. I've been thinking about a template based approach for a while, but never found time to really start the project. May I ask how did you create the xml soap message templates?

heres the issue:

After first build, I noticed segfault when enabling -d 2 to 5. It doesn't segfault with -d 0 and 1

onvif_simple_se[453568]: segfault at c0 ip 00007f0c67475078 sp 00007ffd22156df0 error 4 in libc.so.6[7f0c67428000+195000] likely on CPU 7 (core 1, socket 0)

I would enable instrumentation but I'm not a C developer, please suggest me how to provide better debug info

Using tomcrypt or mbedtls

Good afternoon !
Thank you very much for your project, it is very interesting.
Please tell me why you chose tomcrypt library and not mbedtls ?
The second library is more widespread and used in many places.
Maybe you have plans to switch to it in the future ?
Thank you.

start onvif_simple_server

Hello!
thank you for your work. Did I understand correctly that to start the onvif server it is enough to create a config in the etc folder with replacing the interface name and IP address and execute ./onvif_simple_server?

possible "Authentication" issue from Genetec Security Center

Hello there.

Thanks for your attention on the other issue I reported. I misunderstood that the browser would be making a get request and onvif would behave different and the 500 error is actually not at all important, but its nice you make it look pretty now.

I'm able to connect and everything looks great using ONVIF Device Manager, and a little type python zeep testing tool I made, however when I try to connect using Genetec Security Center (a commercial VMS) selecting ONVIF I continue to get an authentication error "bad login".
onvif-tcpflow.zip

Attached is a screenshot of the interface I'm seeing. The Security Center product has a basic and all mode, with all it gives an error, and basic I get an bad logon.

I'm running the server on http://162.249.44.5:8080 using the example .conf file.

I've attached the ouput from tcpflow of communication using the option basic. To me the authenication request looks normal and I don't see any signifigant difference between that and what ONVIF Device Manager is doing.

Any ideas or suggestions here? Or some other way I can test?

Thanks so much for your time and help.

Screenshot 2024-05-25 at 4 47 16 PM

cat /var/log/onvif_simple_server.log
2024-05-25 18:35:03 INFO onvif_simple_server.c:275: Starting program.
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:52: Dump environment variables
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:53: AUTH_TYPE: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:54: CONTENT_LENGTH: 987
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:55: CONTENT_TYPE: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces"
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:56: DOCUMENT_ROOT: /opt/onvifSimpleServer/www
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:57: GATEWAY_INTERFACE: CGI/1.1
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:58: HTTP_ACCEPT: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:59: HTTP_COOKIE: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:60: HTTP_FROM: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:61: HTTP_REFERER: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:62: HTTP_USER_AGENT: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:63: PATH_INFO: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:64: PATH_TRANSLATED: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:65: QUERY_STRING:
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:66: REMOTE_ADDR: 147.135.115.243
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:67: REMOTE_HOST: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:68: REMOTE_PORT: 14549
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:69: REMOTE_IDENT: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:70: REMOTE_USER: (null)
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:71: REQUEST_METHOD: POST
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:72: REQUEST_URI: /onvif/device_service
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:73: SCRIPT_FILENAME: /opt/onvifSimpleServer/www/onvif/device_service
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:74: SCRIPT_NAME: /onvif/device_service
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:75: SERVER_NAME: 162.249.44.5
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:76: SERVER_PORT: 8080
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:77: SERVER_PROTOCOL: HTTP/1.1
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:78: SERVER_SOFTWARE: lighttpd/1.4.73

2024-05-25 18:35:03 INFO onvif_simple_server.c:279: Processing configuration file /etc/onvif_simple_server.conf...
2024-05-25 18:35:03 DEBUG conf.c:117: model: Model
2024-05-25 18:35:03 DEBUG conf.c:117: manufacturer: Manufacturer
2024-05-25 18:35:03 DEBUG conf.c:117: firmware_ver: 0.0.1
2024-05-25 18:35:03 DEBUG conf.c:117: hardware_id: HWID
2024-05-25 18:35:03 DEBUG conf.c:117: serial_num: SN1234567890
2024-05-25 18:35:03 DEBUG conf.c:117: ifs: eth0
2024-05-25 18:35:03 DEBUG conf.c:117: port: 8080
2024-05-25 18:35:03 DEBUG conf.c:117: scope: onvif://www.onvif.org/Profile/Streaming
2024-05-25 18:35:03 DEBUG conf.c:117: user: admin
2024-05-25 18:35:03 DEBUG conf.c:117: password: admin
2024-05-25 18:35:03 DEBUG conf.c:117: adv_fault_if_unknown: 1
2024-05-25 18:35:03 DEBUG conf.c:117: adv_synology_nvr: 0
2024-05-25 18:35:03 DEBUG conf.c:117: name: Profile_0
2024-05-25 18:35:03 DEBUG conf.c:117: width: 1920
2024-05-25 18:35:03 DEBUG conf.c:117: height: 1080
2024-05-25 18:35:03 DEBUG conf.c:117: url: rtsp://%s/ch0_0.h264
2024-05-25 18:35:03 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-25 18:35:03 DEBUG conf.c:117: type: H264
2024-05-25 18:35:03 DEBUG conf.c:117: decoder: G711
2024-05-25 18:35:03 DEBUG conf.c:117: name: Profile_1
2024-05-25 18:35:03 DEBUG conf.c:117: width: 640
2024-05-25 18:35:03 DEBUG conf.c:117: height: 360
2024-05-25 18:35:03 DEBUG conf.c:117: url: rtsp://%s/ch0_1.h264
2024-05-25 18:35:03 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-25 18:35:03 DEBUG conf.c:117: type: H264
2024-05-25 18:35:03 DEBUG conf.c:117: decoder: NONE
2024-05-25 18:35:03 DEBUG conf.c:117: ptz: 1
2024-05-25 18:35:03 DEBUG conf.c:117: get_position: /usr/local/bin/get_position
2024-05-25 18:35:03 DEBUG conf.c:117: is_moving: /usr/local/bin/is_moving
2024-05-25 18:35:03 DEBUG conf.c:117: move_left: /usr/local/bin/ptz_move-m left
2024-05-25 18:35:03 DEBUG conf.c:117: move_right: /usr/local/bin/ptz_move-m right
2024-05-25 18:35:03 DEBUG conf.c:117: move_up: /usr/local/bin/ptz_move-m up
2024-05-25 18:35:03 DEBUG conf.c:117: move_down: /usr/local/bin/ptz_move-m down
2024-05-25 18:35:03 DEBUG conf.c:117: move_stop: /usr/local/bin/ptz_move-m stop
2024-05-25 18:35:03 DEBUG conf.c:117: move_preset: /usr/local/bin/ptz_move-p %d
2024-05-25 18:35:03 DEBUG conf.c:117: set_preset: /usr/local/bin/ptz_presets.sh -a add_preset -m %s
2024-05-25 18:35:03 DEBUG conf.c:117: set_home_position: /usr/local/bin/ptz_presets.sh -a set_home_position
2024-05-25 18:35:03 DEBUG conf.c:117: remove_preset: /usr/local/bin/ptz_presets.sh -a del_preset -n %d
2024-05-25 18:35:03 DEBUG conf.c:117: jump_to_abs: /usr/local/bin/ptz_move-j %f,%f
2024-05-25 18:35:03 DEBUG conf.c:117: jump_to_rel: /usr/local/bin/ptz_move-J %f,%f
2024-05-25 18:35:03 DEBUG conf.c:117: get_presets: /usr/local/bin/ptz_presets.sh -a get_presets
2024-05-25 18:35:03 DEBUG conf.c:117: events: 3
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:VideoSource/MotionAlarm
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/motion_alarm
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:RuleEngine/MyRuleDetector/PeopleDetect
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/human_detection
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:RuleEngine/MyRuleDetector/VehicleDetect
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/vehicle_detection
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:RuleEngine/MyRuleDetector/DogCatDetect
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/animal_detection
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:RuleEngine/MyRuleDetector/BabyCryingDetect
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/baby_crying
2024-05-25 18:35:03 DEBUG conf.c:117: topic: tns1:AudioAnalytics/Audio/DetectedSound
2024-05-25 18:35:03 DEBUG conf.c:117: source_name: VideoSourceConfigurationToken
2024-05-25 18:35:03 DEBUG conf.c:117: source_value: VideoSourceToken
2024-05-25 18:35:03 DEBUG conf.c:117: input_file: /tmp/onvif_notify_server/sound_detection
2024-05-25 18:35:03 INFO onvif_simple_server.c:292: Completed.
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:310: Input:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header><wsse:UsernameToken wsu:Id="30cd23df-19e0-4582-9ca8-dd7056d4e02e" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">wsse:Usernameadmin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Eq3Di625til6wv9R7OVqb1Pg60s=</wsse:Password>wsse:NoncedrfT4Mq8wAR2x8jsnDBbUw==</wsse:Nonce>wsu:Created2024-05-25T22:35:02Z</wsu:Created></wsse:UsernameToken></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"></s:Body></s:Envelope>
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:311: Url: device_service
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:325: Method: GetNetworkInterfaces
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:341: Security: username = admin
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:347: Security: password = ********
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:353: Security: nonce = drfT4Mq8wAR2x8jsnDBbUw==
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:360: Security: created = 2024-05-25T22:35:02Z
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:374: Calculated digest: Eq3Di625til6wv9R7OVqb1Pg60s=
2024-05-25 18:35:03 DEBUG onvif_simple_server.c:375: Received digest: Eq3Di625til6wv9R7OVqb1Pg60s=
2024-05-25 18:35:03 INFO onvif_simple_server.c:392: Authentication ok
2024-05-25 18:35:03 DEBUG utils.c:269: Interface:
2024-05-25 18:35:03 DEBUG utils.c:270: Address: <162.249.44.5>
2024-05-25 18:35:03 DEBUG utils.c:271: Netmask: <255.255.255.0>

2024-05-21 01:25:49 FATAL onvif_simple_server.c:304: Memory error

Hello, I've got things setup correct it looks like, however I run into a memory error and 500 no matter the URL.

Any idea what I might be able to do to fix this issue?

Thank you very much in advance!

http://192.168.1.20:8080/onvif/device_service

2024-05-21 01:25:49 DEBUG conf.c:117: type: H264
2024-05-21 01:25:49 DEBUG conf.c:117: decoder: NONE
2024-05-21 01:25:49 DEBUG conf.c:117: ptz: 1
2024-05-21 01:25:49 DEBUG conf.c:117: get_position: /usr/local/bin/get_position
2024-05-21 01:25:49 DEBUG conf.c:117: is_moving: /usr/local/bin/is_moving
2024-05-21 01:25:49 DEBUG conf.c:117: move_left: /usr/local/bin/ptz_move-m left
2024-05-21 01:25:49 DEBUG conf.c:117: move_right: /usr/local/bin/ptz_move-m right
2024-05-21 01:25:49 DEBUG conf.c:117: move_up: /usr/local/bin/ptz_move-m up
2024-05-21 01:25:49 DEBUG conf.c:117: move_down: /usr/local/bin/ptz_move-m down
2024-05-21 01:25:49 DEBUG conf.c:117: move_stop: /usr/local/bin/ptz_move-m stop
2024-05-21 01:25:49 DEBUG conf.c:117: move_preset: /usr/local/bin/ptz_move-p %d
2024-05-21 01:25:49 DEBUG conf.c:117: set_preset: /usr/local/bin/ptz_presets.sh -a add_preset -m %s
2024-05-21 01:25:49 DEBUG conf.c:117: set_home_position: /usr/local/bin/ptz_presets.sh -a set_home_position
2024-05-21 01:25:49 DEBUG conf.c:117: remove_preset: /usr/local/bin/ptz_presets.sh -a del_preset -n %d
2024-05-21 01:25:49 DEBUG conf.c:117: jump_to_abs: /usr/local/bin/ptz_move-j %f,%f
2024-05-21 01:25:49 DEBUG conf.c:117: jump_to_rel: /usr/local/bin/ptz_move-J %f,%f
2024-05-21 01:25:49 DEBUG conf.c:117: get_presets: /usr/local/bin/ptz_presets.sh -a get_presets
2024-05-21 01:25:49 INFO onvif_simple_server.c:292: Completed.
2024-05-21 01:25:49 FATAL onvif_simple_server.c:304: Memory error

2024-05-21 01:28:18 INFO onvif_simple_server.c:279: Processing configuration file /etc/onvif_simple_server.conf...
2024-05-21 01:28:18 DEBUG conf.c:117: model: Dev
2024-05-21 01:28:18 DEBUG conf.c:117: manufacturer: TEST
2024-05-21 01:28:18 DEBUG conf.c:117: firmware_ver: 1.0
2024-05-21 01:28:18 DEBUG conf.c:117: hardware_id: HA2912
2024-05-21 01:28:18 DEBUG conf.c:117: serial_num: SN12347890
2024-05-21 01:28:18 DEBUG conf.c:117: ifs: eth0
2024-05-21 01:28:18 DEBUG conf.c:117: port: 8080
2024-05-21 01:28:18 DEBUG conf.c:117: scope: onvif://www.onvif.org/Profile/Streaming
2024-05-21 01:28:18 DEBUG conf.c:117: adv_fault_if_unknown: 0
2024-05-21 01:28:18 DEBUG conf.c:117: adv_synology_nvr: 0
2024-05-21 01:28:18 DEBUG conf.c:117: name: Profile_0
2024-05-21 01:28:18 DEBUG conf.c:117: width: 1920
2024-05-21 01:28:18 DEBUG conf.c:117: height: 1080
2024-05-21 01:28:18 DEBUG conf.c:117: url: rtsp://%s/ch0_0.h264
2024-05-21 01:28:18 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-21 01:28:18 DEBUG conf.c:117: type: H264
2024-05-21 01:28:18 DEBUG conf.c:117: decoder: G711
2024-05-21 01:28:18 DEBUG conf.c:117: name: Profile_1
2024-05-21 01:28:18 DEBUG conf.c:117: width: 640
2024-05-21 01:28:18 DEBUG conf.c:117: height: 360
2024-05-21 01:28:18 DEBUG conf.c:117: url: rtsp://%s/ch0_1.h264
2024-05-21 01:28:18 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-21 01:28:18 DEBUG conf.c:117: type: H264
2024-05-21 01:28:18 DEBUG conf.c:117: decoder: NONE
2024-05-21 01:28:18 INFO onvif_simple_server.c:292: Completed.
2024-05-21 01:28:18 FATAL onvif_simple_server.c:304: Memory error

server.document-root = "/usr/local/onvif_simple_server/www/"
server.port = 8080

cgi.max_cgi_size = 64M
server.modules-dir = "/usr/local/onvif_simple_server/lib"
server.modules = ( "mod_cgi" )
cgi.assign = ( "_service" => "" )

server.errorlog = "/usr/local/onvif_simple_server/logs/error.log"
accesslog.filename = "/usr/local/onvif_simple_server/logs/access.log"

cat /usr/local/onvif_simple_server/logs/error.log
2024-05-21 00:54:45: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 00:54:45: (configfile.c.1399) WARNING: unknown config-key: server.modules-dir (ignored)
2024-05-21 00:54:45: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 00:59:31: (mod_cgi.c.1337) CGI pid 10195 died with signal 6
2024-05-21 01:02:50: (mod_cgi.c.1337) CGI pid 10252 died with signal 6
2024-05-21 01:10:34: (server.c.2332) server stopped by UID = 0 PID = 10249
2024-05-21 01:11:12: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 01:11:12: (configfile.c.1399) WARNING: unknown config-key: cgi.max_cgi_size (ignored)
2024-05-21 01:11:12: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 01:11:17: (mod_cgi.c.1337) CGI pid 10429 died with signal 6
2024-05-21 01:11:55: (server.c.2332) server stopped by UID = 0 PID = 10249
2024-05-21 01:12:00: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 01:12:00: (configfile.c.1399) WARNING: unknown config-key: cgi.max_cgi_size (ignored)
2024-05-21 01:12:00: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 01:12:03: (mod_cgi.c.1337) CGI pid 10464 died with signal 6
2024-05-21 01:15:23: (mod_cgi.c.1337) CGI pid 10581 died with signal 6
2024-05-21 01:15:46: (mod_cgi.c.1337) CGI pid 10593 died with signal 6
2024-05-21 01:18:22: (mod_cgi.c.1337) CGI pid 10708 died with signal 11
2024-05-21 01:18:22: (mod_cgi.c.1337) CGI pid 10709 died with signal 11
2024-05-21 01:18:23: (mod_cgi.c.1337) CGI pid 10711 died with signal 11
2024-05-21 01:20:28: (mod_cgi.c.1337) CGI pid 10835 died with signal 6
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10865 died with signal 11
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10866 died with signal 11
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10868 died with signal 11
2024-05-21 01:25:43: (mod_cgi.c.1337) CGI pid 11120 died with signal 11
2024-05-21 01:25:43: (mod_cgi.c.1337) CGI pid 11121 died with signal 11
2024-05-21 01:25:44: (mod_cgi.c.1337) CGI pid 11123 died with signal 11
2024-05-21 01:25:49: (mod_cgi.c.1337) CGI pid 11125 died with signal 6
2024-05-21 01:27:35: (mod_cgi.c.1337) CGI pid 11204 died with signal 6
2024-05-21 01:28:18: (mod_cgi.c.1337) CGI pid 11239 died with signal 6

CGI pid XX died with signal 11

hi! When you launch the software on the camera (goke7205v300), the following happens (see screenshot).
for the test I ran it on arm64 - everything worked correctly there
What can be wrong?
Screenshot_20240204_222157

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.