Commit Graph
267 Commits
Author SHA1 Message Date
twistedddx a7202fa9e1 config sample for tls_client_auth, stream, channel_id
remove deprecated format
2021-01-26 18:00:42 -06:00
George Hilliard 055d731fec Merge pull request #111 from kevans91/fwver
Report firmware version after login
2020-12-20 20:18:38 -06:00
George Hilliard ae86407483 Don't unwrap while checking camera version 2020-12-20 19:56:49 -06:00
George Hilliard a91979d2b6 Allow older version of Rust to build adpcm 2020-12-20 19:37:49 -06:00
George Hilliard 64af3dce1a Docker: also install testing packages in release container
Actually closes #104 on GitHub
2020-12-20 19:14:47 -06:00
Kyle Evans 6a432b30ad main: report camera firmware version 2020-12-20 10:27:45 -06:00
Kyle Evans ce8c2d3648 BcCamera: add a version() function for VersionInfo 2020-12-20 01:19:42 -06:00
Kyle Evans e00ed786ac bc: add VersionInfo 2020-12-20 01:16:18 -06:00
George Hilliard bdd270d3ca build.rs: Add GITHUB_SHA detection 2020-12-15 16:19:43 +00:00
George Hilliard 5ccfd6a0d8 Fix clippy lints 2020-12-14 22:40:28 -06:00
George Hilliard f4612b8f8d Fix use of deprecated time::OffsetDateTime::now_local() 2020-12-14 22:37:15 -06:00
George Hilliard b8118dadc9 Remove usage of deprecated env_logger::from_env() 2020-12-14 22:26:28 -06:00
George Hilliard c342434848 Refactor: move camera management into new function 2020-12-14 22:26:15 -06:00
George Hilliard d01f5684b4 Fix Docker build: pull gst-rtsp-server from Alpine testing
Closes #104 on GitHub.
2020-12-14 22:12:35 -06:00
George Hilliard 2b0f465c25 readme: Fix typos in download links 2020-12-11 09:22:35 -06:00
George Hilliard ea4f4130ce readme: Add direct download links to latest CI builds 2020-12-11 09:20:45 -06:00
George Hilliard c581ad43f4 Actions: Rename *.yaml to *.yml
The app https://nightly.link/ requires .yml extensions due to a bug:

oprypin/nightly.link#3

Easy enough to change extensions.
2020-12-11 08:30:20 -06:00
George Hilliard ea0c91ee83 Add list of prebuilts and artifact download instructions 2020-12-10 19:26:46 +00:00
George Hilliard e07f97bc12 Merge pull request #103 from thirtythreeforty/cross-builds-rebased
Implement more CI builds: for macOS and ARM Linux
2020-12-10 13:08:03 -06:00
George Hilliard 17c293b3fd macOS: Do not cache build artifacts
The GitHub-managed cache is missing crates when we cache the build.
Disable this on macOS.
2020-12-10 12:55:49 -06:00
George Hilliard 61e9baab53 Unify cross-build workflows using a matrix 2020-12-10 12:49:38 -06:00
QuantumEntangledAndy afdb0f495c Make armhf use matrix and add more Debian architectures 2020-12-09 01:07:35 -06:00
QuantumEntangledAndy 9b59888b08 Add macos build 2020-12-09 01:07:35 -06:00
d7e84891f6 Bump minimum glib version and update dependencies
Co-Authored-By: twistedddx <bits@live.com>
Co-Authored-By: George Hilliard <thirtythreeforty@gmail.com>
2020-12-09 01:07:17 -06:00
George Hilliard f88b1a6ce6 Merge pull request #99 from kevans91/dns
config: allow hostnames for camera addresses
2020-12-08 10:29:17 -06: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
George Hilliard 32400971a5 Merge pull request #87 from QuantumEntangledAndy/error_updates
More detailed error messages on deser fail and timeout
2020-11-30 23:35:26 -06:00
twistedddxandtwistedddx 80a75b20a6 Dissector - Add BC to BC magic 0x0fedcba0
Co-authored-by: twistedddx <bits@live.com>
2020-11-30 23:33:09 -06:00
QuantumEntangledAndyandtwistedddx cecb29b46f Less naked while loop to print error on deser fail
Co-Authored-By: twistedddx <bits@live.com>
2020-11-28 14:09:44 +07:00
QuantumEntangledAndyandtwistedddx 6396883a26 Merge branch 'master'
Co-Authored-By: twistedddx <bits@live.com>
Conflicts:
	src/bc_protocol.rs
	src/bc_protocol/media_packet.rs
2020-11-28 14:07:52 +07:00
George Hilliard efa4a1d7a7 Merge pull request #90 from QuantumEntangledAndy/bugfix-Lumus-Audio
Transcode audio to PCM for all even for AAC
2020-11-27 18:09:59 -06:00
QuantumEntangledAndyandtwistedddx a8a727a248 Use powershell syntax for setting envs for new github api methods
Co-Authored-By: twistedddx <bits@live.com>
2020-11-26 13:17:15 +07:00
QuantumEntangledAndy a598ddd2a4 Using new github set path and env 2020-11-17 10:37:13 +07:00
QuantumEntangledAndy bbc176e9f7 Convert to raw then send as raw over rtsp 2020-11-17 10:14:17 +07:00
QuantumEntangledAndy 7a6a2ca2e7 Always decode and reencode aac audio
This is so that we can accept mpeg1 and mpeg2 audio in addition to mpeg4
2020-11-16 09:37:49 +07:00
twistedddx 428a6f767a Dissector - more message_types 2020-11-13 12:07:57 -06: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
QuantumEntangledAndy 782a9f7c4c Handle timeout and dissconnect error differently 2020-10-29 13:11:21 +07:00
QuantumEntangledAndy 3803bc02ab Add error messages when deser fails 2020-10-29 12:57:39 +07:00
Andrew Kingandtwistedddx b5312edb90 Dissector update and some notes about BC message (#80)
Co-authored-by: twistedddx <bits@live.com>
2020-10-12 16:34:26 -05:00
George Hilliard affc0d9b94 Merge pull request #75 from QuantumEntangledAndy/Clippy-fix
Fix clippy style check action
2020-09-18 09:46:54 -05:00
QuantumEntangledAndy 5c9a196333 Only install minimum build requirements in apt CI building 2020-09-18 09:44:18 +07:00
QuantumEntangledAndy da3b0d77c1 Install dependencies before clippy 2020-09-18 09:37:26 +07:00
QuantumEntangledAndy fc5e8e039f Rust fmted 2020-09-17 09:38:27 -05:00
QuantumEntangledAndy e2c2ce26c3 Apply clippy to master
Only change was (clippy::redundant_field_names) on channel_id
2020-09-17 09:38:27 -05:00
QuantumEntangledAndy 59d7600cdb Apply rustfmt to media_packet 2020-09-17 09:38:27 -05:00
QuantumEntangledAndy b0eee39f13 Add clippy and fmt checks and conform to clippy style 2020-09-17 09:38:27 -05:00
Andrew King fab6a11820 Use management bool to set the clock
See #69 on GitHub.
2020-09-16 08:35:42 -05:00
George Hilliard 6d7b07d07b Fix Windows build: use choco package for gst-devel 2020-09-16 08:14:42 -05:00
George Hilliard 28830d55d0 Merge pull request #71 from m1k1o/patch-1
add tzdata to Dockerfile
2020-09-14 10:54:06 -05:00