Commit Graph

62 Commits

Author SHA1 Message Date
David Sutton 89e530644d exp/i2s: Write barebones i2s recording functionality (#440)
This change adds an experimental script which utilises the yobert/alsa golang package to record audio using an i2s sensor on a raspberry pi. The script saves an audio file to the local directory called audio.wav.
2024-02-12 12:49:20 +10:30
Saxon Milton 524e010fe1 * vidforward: actually set revid pipeline
We need to actually get the returned value from
initOrStartPipeline and set the pipeline.

* vidforward: add some logging to config load

* vidforward: update utils version

Approved-by: Alan Noble
Approved-by: Trek Hopton
2023-10-14 00:49:42 +00:00
Saxon Nelson-Milton bcbb187bef vidforward: add config file watcher
This change adds a file watcher and then uses this file watcher
to perform updates based on changes in a configuration file. This
configuration file contains logging parameters for the time being
in the hope that it will help with debugging.

Testing was also added for this functionality.
2023-06-21 19:48:02 +09:30
Saxon Nelson-Milton 7055edb525 cmd/vidforward: start revid pipeline on load 2023-03-12 08:39:21 +10:30
ausocean-david d1aa224023 Audiofiltering:
Add amplifying capabilities, using Filter.Upper as the factor for amplification
2023-02-10 21:46:21 +10:30
Saxon Nelson-Milton 5eaed275ab Bump required iot version in go.mod
Also track version and display on start up.
2023-02-08 21:35:17 +10:30
Saxon Nelson-Milton 4fe01f6899 revid/senders.go: Utilise HTTPAddress variable in config
This change bumps the required iot tag and adds functional option
variadic parameters to the httpSender constructor so that we can
provide the HTTPAddress config variable and modify the httpSend
destination address. In addition to this, we have added an option
for the report callback.
2023-02-04 18:21:19 +10:30
Saxon Nelson-Milton 842e2a2d93 Add functionality for broadcastManager state save
This change adds functionality for broadcastManager state save.
This is done by marshalling the broadcastManager and saving to a
file. Loading is performed by unmarshalling an re-populating a
broadcastManager value. Testing has been added for this
functionality. Other functionality has been added a side effect.
2023-02-04 12:29:47 +10:30
ausocean-david 70afcdb816 Audiofiltering:
Add amplifying capabilities, using Filter.Upper as the factor for amplification
2023-01-18 14:10:32 +10:30
ausocean-david d029038db9 Audiofiltering:
Interface the function with pre-existing data structures. The filters can now be generated into a filter type using a generic Generate function.
This generates a filter off of the specifications within the filter struct. There is a generic Apply function which takes in a buffer of PCM data (defined in pcm.go),
and outputs to a []byte.
2022-12-24 02:28:15 +10:30
Saxon Nelson-Milton 8f8b9ca0f4 cmd/vidforward: add watchdog notifier
This change adds a "watchdog notifier" utility which tracks the
health of request handlers and notifies an external systemd
watchdog if everything looks good. This allows us to cause a
termination if any request handlers get hung.
2022-12-05 19:54:14 +10:30
Saxon Nelson-Milton cb31c5de9b Update to latest utils ver 2022-11-20 12:17:21 +10:30
Saxon Nelson-Milton 3101d21d99 cmd/rv: adding rv upgrade function. init: refactor Makefile and scripts for more flexibility 2022-06-07 15:12:08 +09:30
Saxon Nelson-Milton 5eb5992f15 using latest version of utils and using latest logging package 2022-05-27 15:42:58 +09:30
Saxon Nelson-Milton 25b4b271a1 updating required iot version and making appropriate changes to code 2022-05-25 15:01:24 +09:30
Russell Stanley fea59f4a07 added gonum stat library, moved plotResults to test file 2022-02-01 17:04:38 +10:30
Saxon Nelson-Milton d1d5bac03a fixing go mod 2022-01-13 16:08:02 +10:30
Saxon Nelson-Milton 16d7a16762 codec/mjpeg/lex & lex_test.go: modified Lex to work with thumbnailed JPEG images and fixed Lex tests. 2021-01-16 16:45:04 +10:30
Saxon Nelson-Milton a4a409b4f5 exp/rvcl: adding default config option and opening VLC in the case of RTP output
If no config is given as arguments or file, then a default config is used. This is file input (25 FPS) with MPEG-TS packetization and RTP output. If RTP output is selected, a VLC window to receive the
stream is opened.
2020-12-20 12:03:46 +10:30
Trek H 828c50f7ae treat: bump to iot v1.3.0 2020-10-21 11:55:02 +10:30
Trek H c6bf651f56 gomod: update iot version 2020-09-04 15:47:56 +09:30
Trek H 9e3eaecf07 treatment: go mod tidy 2020-08-22 10:52:05 +09:30
Trek H 44801e6f71 Merge branch 'master' into treatment-newmods 2020-08-22 10:49:45 +09:30
Trek H 0cd7b8686c treatment: go mod tidy 2020-08-22 10:41:00 +09:30
Trek H 2a1125b7e7 treatment: upgrade iot version used 2020-08-22 10:36:16 +09:30
Trek H 926b1f0833 merge 2020-08-21 16:22:10 +09:30
Trek H d9393b46b0 alsa: negotiate channels both stereo and mono, also fix error handling 2020-08-19 16:55:35 +09:30
Saxon 94825f3db9 cmd/treatment: wrote driver to handle audio playback and recording for sound check 2020-08-14 15:40:22 +09:30
Trek H 6ecce76602 revid: improve comments 2020-08-14 12:20:51 +09:30
Saxon 8d7be149f0 revid/config: add logger suppression var Suppress to Variables slice and Config struct 2020-05-20 00:11:14 +09:30
Saxon Milton ce50b5fbd1 Merged in nicer-update-func (pull request #411)
revid/config: variables struct providing names, types, update and validation

Approved-by: Trek Hopton <trek.hopton@gmail.com>
2020-05-19 06:02:02 +00:00
Scott 6dab83df3e use iot v1.2.14 2020-02-06 14:20:05 +10:30
Ella Pietraroia ed35bd83cb basic filter that does not use gocv for motion detection 2020-01-31 11:11:00 +10:30
Saxon 6a49d845f8 tidy go mod 2020-01-29 10:07:02 +10:30
Saxon a0204392c5 cmd/rvcl: added command line interface for controlling revid API 2020-01-29 09:59:06 +10:30
Scott 7419bdff7a Using utils v1.2.13 2020-01-24 15:47:45 +10:30
Scott 44508fd269 use iot v1.2.13 2020-01-24 15:36:27 +10:30
Scott 0cfa93a314 Uses iot v1.2.12 2020-01-22 16:34:20 +10:30
Scott be3f82616b Increased iot version to v1.2.11 2020-01-09 11:41:09 +10:30
Scott Barnard c2df8a8fc1 Merged in enums-var-type (pull request #320)
Outputs variable uses the enums var type

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-02 05:41:42 +00:00
Trek H 372865132b mjpeg-player: fomatting and removed bootstrap. 2020-01-02 11:35:43 +10:30
Scott 322ebcfa81 Outputs variable uses the enums var type 2020-01-02 10:24:58 +10:30
Scott f00918a73d Revid uses netsender to report variable types
Variable type data kept in revid/config/config.go
Supports variadic new function in netsender
Updated revid to use iot v1.2.9
2019-12-18 09:34:04 +10:30
Saxon e1712773e1 Added gocv experimental code with testing files 2019-12-16 12:48:10 +10:30
scruzin 521fda86e5 Use ausocean/iot v1.2.8. 2019-11-23 19:21:49 +10:30
scruzin f63eac7acc Use ausocean/utils v1.2.11. 2019-11-22 17:18:41 +10:30
Saxon 274f33e5b2 update go mod 2019-11-13 14:11:29 +10:30
Trek H a0a4537281 input/audio: audio.Device now implements AVDevice 2019-11-11 16:47:23 +10:30
Saxon 57d73a8d0a created av/device package and sub packages raspivid, geovision, webcam and file
av/device/device.go now contains the AVDevice interface and implementations of this
interface, namely, raspivid, geovision, webcam and file are contained in the packages
av/device/raspivid, av/device/geovision, av/device/webcam and av/device/file
respctively. config.go and testing was also moved to a new package called config.go in
order to remove would be circular dependency between AVDevice implementations and revid.
Modifications were made elsewhere expecting config.Config to be part of the revid package.
2019-11-06 17:44:50 +10:30
Saxon 38cfad7b67 revid: fixing some more bugs
Fixed H264 RTP extractor. Fine tuned some timing regarding geovision setup. Added some more
logging to geovision setup.
2019-10-23 12:48:22 +10:30