Commit Graph
231 Commits
Author SHA1 Message Date
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
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
George Hilliard fb83321d70 Merge pull request #70 from twistedddx/channel_id
Allow setting channel_id
2020-09-13 01:40:14 -05:00
Miroslav Šedivý 0f1c30fe00 add tzdata to Dockerfile 2020-08-15 10:33:26 +02:00
twistedddx e4f67ef3c2 -allow setting channel_id 2020-08-14 23:26:42 +09:30
George Hilliard 9f3181e2cd Merge pull request #50 from QuantumEntangledAndy/magic_headers
Filter data sent to gsteamer using magic bytes
2020-08-11 21:33:46 -05:00
QuantumEntangledAndy 9ca38b1e8b Add warning when hitting unexpected data in the stream 2020-08-12 09:29:58 +07:00
QuantumEntangledAndy d44b1dcdb0 Rename MAGIC_LEN to MAGIC_SIZE 2020-08-12 09:20:12 +07:00
QuantumEntangledAndy efd79ba00c Use simple magic header checks and remove Invalid Media Packet 2020-08-12 05:58:16 +07:00
QuantumEntangledAndy d69f1cc557 Remove dead code and vars from media_packet 2020-08-11 16:55:51 +07:00
QuantumEntangledAndy b0378e08b1 Clippy linting 2020-08-11 16:50:47 +07:00
QuantumEntangledAndy 11396dfe68 Using bytes instead of string for header checks 2020-08-11 16:46:07 +07:00
QuantumEntangledAndy e5f579860c Removed uneeded pup from media_packet 2020-08-11 16:40:48 +07:00
QuantumEntangledAndy 018c70a054 Remove continue packet type 2020-08-11 16:29:55 +07:00
QuantumEntangledAndy 7ad7706341 Use const to explain the pad_size 2020-08-11 16:28:35 +07:00
QuantumEntangledAndy 4dd4ffee7a Removed unused expected_num_packets 2020-08-11 16:21:15 +07:00
QuantumEntangledAndy 07257ede2d Remove uneeded function from media_packet.rs 2020-08-09 15:23:14 +07:00
QuantumEntangledAndy 024659ee45 Rustfmt-ed 2020-08-05 12:07:07 +07:00
QuantumEntangledAndy 00e46783b6 String formatting for docker publish 2020-08-05 10:57:39 +07:00
QuantumEntangledAndy f6dd3b718b Move media packet to bc_protocol module and implement adv header checks 2020-08-05 10:47:34 +07:00
QuantumEntangledAndy e580985951 Make docker hub usernames etc based on repo names 2020-08-05 09:09:59 +07:00
QuantumEntangledAndy 25ba342a16 Merge branch 'master' into magic_headers 2020-08-05 07:41:49 +07:00
QuantumEntangledAndy 66fbd99f37 Using own dockerhub 2020-08-05 07:41:01 +07:00
QuantumEntangledAndy eb3abb4fb0 Seperate MediaData logic into its own module 2020-08-03 14:46:32 +07:00
QuantumEntangledAndy b5584bb851 Clean up to continuation code 2020-08-03 14:08:01 +07:00
QuantumEntangledAndy 832907f574 Rust fmt-ed 2020-08-03 13:29:33 +07:00
Andrew King e973b1eced Merge branch 'master' into magic_headers 2020-08-03 13:26:59 +07:00
QuantumEntangledAndy 963e4799c6 Use a deque and process media packets as a substream 2020-08-03 13:25:45 +07:00
QuantumEntangledAndy 8ee375fda1 Merge branch 'master' into magic_headers 2020-08-03 09:39:35 +07:00
George Hilliard 534b8df829 Fix another typo in Docker conditional push 2020-08-02 13:02:21 -05:00
George Hilliard d665b633df Fix Docker auto-publish 2020-08-02 12:57:40 -05:00
George Hilliard 71d1808525 Merge pull request #54 from thirtythreeforty/set-time
Automatically check/set the time on cameras, and bump timeout
2020-08-02 12:49:50 -05:00
George Hilliard 3f96dc1996 Merge remote-tracking branch 'origin/master' into set-time 2020-08-02 12:34:06 -05:00
George Hilliard 8ab4ba3b33 Add possible reason for failure to set time 2020-08-02 12:31:47 -05:00
George Hilliard 74f11769a0 Merge pull request #56 from thirtythreeforty/gst16
Update to gstreamer bindings v0.16
2020-08-02 12:22:18 -05:00
George Hilliard 80757c170b Merge pull request #60 from QuantumEntangledAndy/doc_typos
Typos and Doc Updates
2020-08-02 11:50:36 -05:00
George Hilliard 9cc3ca856f Update to gstreamer bindings v0.16 2020-08-02 11:48:40 -05:00
QuantumEntangledAndy 8e2aa426a5 Typos and doc updates 2020-08-02 19:51:20 +07:00