Commit Graph
50 Commits
Author SHA1 Message Date
QuantumEntangledAndy 3771098c2f Change config validation 2023-04-05 16:16:06 +07:00
Andrew 94805c881e Permit connect with UID at an Addr 2023-04-05 16:16:06 +07:00
QuantumEntangledAndy 92447b63b8 Add configurable battery printing 2023-03-02 15:55:15 +07:00
QuantumEntangledAndy 7fccda4aa7 Configurable strict BCMedia 2023-02-28 12:41:04 +07:00
QuantumEntangledAndy 8adae665fb Add debug for discovery. Slow resend interval 2023-02-28 12:41:04 +07:00
QuantumEntangledAndy a5a3cf9715 Restructure discovery 2023-02-28 12:41:04 +07:00
QuantumEntangledAndy 7ebe73b226 Added encryption configuration and handle empty ack packets 2023-02-27 09:14:07 +07:00
QuantumEntangledAndy b49ce87f32 Added config option to control discovery 2023-02-22 09:55:28 +07:00
QuantumEntangledAndy 6fac0097dd Major changes to streaming protocol 2022-12-14 09:59:57 +07:00
QuantumEntangledAndy edf89dc993 Merge and clippy fixes 2022-11-28 15:22:48 +07:00
QuantumEntangledAndy 2114af085d Merge branch 'motion_stream' 2022-11-28 10:17:08 +07:00
QuantumEntangledAndy a33897ec2c Bug and clippy lint squashing 2022-01-17 21:02:48 +07:00
QuantumEntangledAndy 0f7598e9fc Merge branch 'master' of github.com:thirtythreeforty/neolink into motion_stream 2021-11-29 10:00:12 +07:00
George Hilliard de39e7ed2a Re-unify configuration files
Unfortunately the grammar of the --config parameter is a bit of a
football right now; previously you were allowed to specify it anywhere
because there wasn't much in the way of a CLI, then when subcommands
were added it became required to specify it after the subcommand.

This change makes it so that it must be specified *before* the
subcommand.  Ideally it would just be required *somewhere* in the
command line but clap doesn't support "global" for required arguments
(and it is indeed required).

On the whole, I'm okay with the change - the net win of having a unified
config struct makes up for the ergonomics hit in my opinion, and it
unlocks some further refactoring I will do next.
2021-10-29 00:25:54 -05:00
QuantumEntangledAndy 0afc0d8154 Initial move to workspaces 2021-07-30 20:11:03 +07:00
QuantumEntangledAndy a2ca630bdd Merge branch 'master' of github.com:thirtythreeforty/neolink into protocol_updates 2021-04-15 08:04:30 +07:00
Kyle Evans 2e8126cd73 config: allow hostnames for camera addresses
This offers more flexibility, as a camera system admin only
needs a DNS assignment rather than DHCP. The syntax is still
as expected:

address = "cameras.example.com:9000"

This is especially handy in more complex topologies, where one
or more specified "camera" may actually be pointed at a system
providing a tunnel through to multiple cameras; names make it
easier to identify said gateway machine.

All IPs that the given name resolves to are tried so that we
correctly handle, e.g., a name with both AAAA and A records.

Note that addresses are no longer validated up front, but instead
simply get resolved when the connection attempt is made.

Name resolution will be aborted after ~60s of failure.
2020-12-07 20:15:47 -06:00
QuantumEntangledAndyandtwistedddx a961829c63 Bug fixes from merges
Using u8 for channel id throughtout
Using simpler map_err

Co-Authored-By: twistedddx <bits@live.com>
2020-11-26 17:11:22 +07:00
QuantumEntangledAndyandtwistedddx 21030072cc Merge branch 'master'
Co-Authored-By: twistedddx <bits@live.com>
Conflicts:
	dissector/baichuan.lua
	src/bc_protocol.rs
	src/bc_protocol/media_packet.rs
2020-11-26 17:01:58 +07:00
QuantumEntangledAndy 25b561c976 More chances to confrom to new protocol 2020-11-26 13:07:27 +07:00
Andrew King f7f12c76a1 Audio and Format auto detect (#68)
* Add queues to the gstreamer launch

* Add audio to the stream

* Removing format option in prep for auto detect

* Adding format detect from headers

* Set format in gstreamer launch depending on video magic bytes

* Rename MaybeAppSrcs to reflect new role of managing gst outputs

* Auto detect format

* Remove all setting of stream format

* Re-add missing media_format caused by rebase

* Add audio format auto detect too

* Use more appropiate adpcm in gst

* Combined gst and media_packet format enums into a single enum StreamFormat

* Reduce adpcm header size

* Disable adpcm output

* Add oki adpcm native rust support

* Maintain state between packets for adpcm

* Use bytes in adpcm stream to determine adpcm decoding state

* Clean up adpcm code

* Use raw rtp payload for the adpcm stream

* Bug fix to treat adpcm and aac seperatly in the match

* Remove redundent second clamp of the step index in adpcm.

* ADPCM format changes.

This is a squashed commit of changes made during live testing of ADPCM 
format.

Summary: Using DVI4 for the ADPCM, with our own decoder written in rust.

* Changes to comments and IMA max range in the adpcm decoder

* ADPCM magic contains block size use it for chunking the adpcm data

* Use error logs rather than asserts in adpcm decode

* Rustfmt and clippy styling

* Use static slice for adpcm step and changes arrays

* Bounds and error checks in ADPCM

* Use i/u32 in adpcm

* Rust fmted
2020-11-13 08:45:40 -06:00
twistedddx e4f67ef3c2 -allow setting channel_id 2020-08-14 23:26:42 +09:30
QuantumEntangledAndy 8ee375fda1 Merge branch 'master' into magic_headers 2020-08-03 09:39:35 +07:00
QuantumEntangledAndy 011a639356 A basic continuation model using contex, also rustfmt-ed 2020-07-31 13:47:17 +07:00
George Hilliard bae4182bf5 Refactor users to use &str as main type 2020-07-18 15:12:26 -05:00
George Hilliard 3d866a482e config: remove unneeded defaults 2020-07-18 15:12:26 -05:00
QuantumEntangledAndy 5bd4c5aff4 Correct messages of validate of the client tls in the config 2020-07-14 10:00:53 +07:00
QuantumEntangledAndy b86f5abf6c Chaning the default of permitted_users to depend on [[users]] 2020-07-13 14:33:31 +07:00
QuantumEntangledAndy 60810fc0f7 Rustfmt cleanup 2020-07-13 12:12:17 +07:00
QuantumEntangledAndy 143390d6f4 using valdator to check for reserved names 2020-07-13 10:11:58 +07:00
QuantumEntangledAndy 4b53e426cf Using anonymous for default permitted users 2020-07-13 09:20:09 +07:00
Andrew King 7cf0bfc24b Merge branch 'master' into srtp 2020-07-10 17:15:15 +07:00
George Hilliard 8f82bb7fbc Use a few Rust idioms 2020-07-04 12:35:46 -05:00
George Hilliard 9846eb99c6 Autoformat 2020-07-03 17:14:16 -05:00
QuantumEntangledAndy f3b3684f00 Add default no users 2020-07-03 14:57:34 +07:00
QuantumEntangledAndy 80e416d01d Merging changes from PR 2020-07-03 13:49:43 +07:00
QuantumEntangledAndy 296c281f15 Added more control over authourised users. 2020-07-03 11:42:56 +07:00
QuantumEntangledAndy a9a0048d78 Added basic user auth 2020-07-03 07:49:41 +07:00
QuantumEntangledAndy 5fde4c6800 Add TLS 2020-07-02 15:57:18 +07:00
QuantumEntangledAndy 55555333ff Do subvalidation on the config 2020-07-02 10:02:13 +07:00
QuantumEntangledAndy 8d13f14bea Add appropiate submounts 2020-07-01 12:40:27 +07:00
QuantumEntangledAndy 84b4c0659a Added port specification 2020-07-01 11:56:25 +07:00
QuantumEntangledAndy c4e3745d27 Added validation to the config file 2020-07-01 11:34:19 +07:00
QuantumEntangledAndy 4ea20f0542 Allow stream specification in config 2020-06-30 11:41:19 +07:00
QuantumEntangledAndy 826814abd7 Allowing custom gst-launches and specification of format in the camera 2020-06-30 11:30:24 +07:00
George Hilliard d90e22cf8e Execute the Great Autoformatting of 2020 2020-06-05 17:41:54 -05:00
George Hilliard 7fab45d5a9 Implement timeouts during read and proper retry behavior 2020-05-09 15:52:06 -05:00
George Hilliard 98ad773bfe Implement rudimentary RTSP server 2020-04-29 09:29:28 -05:00
George Hilliard fab0f47835 config: use abstracted associated type 2020-04-22 23:25:01 -05:00
George Hilliard ec1e69e49c Implement configuration file, with multiple cameras 2020-04-20 14:33:07 -05:00