Commit Graph

113 Commits

Author SHA1 Message Date
Saxon Milton d4af5c0194 Always try closing manual input reader
Approved-by: Alan Noble
2024-04-07 11:46:27 +00:00
David Sutton c8f846f87d alsa: Fix sample rate negotiation (#441)
This change fixes the sample rate negotiation functionality, by making a comparison against the value of the slice and not the index.
2024-02-29 15:20:42 +10:30
Saxon Milton c98fffe722 revid: fix manual input reader and writer
The reader and writer pipes should be created on call to Start
and not in NewManualInput. This is so that if Close is called,
which will close the reader and the writer, a call to start will
create them again.

Approved-by: Alan Noble
Approved-by: David Sutton
2023-10-14 00:34:08 +00:00
Saxon Nelson-Milton f3cf74ce51 cmd/vidforward: add slate image write functionality
This includes adding facilities to handle termination signals
and err handling. Some modifications have been made to the file
input to accomodate the concurrency requirements. The slate
read mechanism is still fairly rudimentary and can only read
from a hardcoded file, but at this stage is for prototyping
purposes.
2022-11-26 13:38:25 +10:30
Saxon Nelson-Milton fe2f091272 run gofmt 2022-11-06 17:25:28 +10:30
Saxon Nelson-Milton dddfcc256b vidforward & codecutil & mts & device & revid: improved Noop lexer code using ring buffer structure and improved overall commenting and code 2022-09-21 16:47:58 +09:30
Saxon Nelson-Milton b312774b49 cmd/vidforward & revid & device & codec/codecutil: fixes bugs and improving stream quality 2022-09-14 07:44:35 +00:00
Saxon Nelson-Milton 862c06b5f3 revid & device/file: removing Loop mode which was conflicting with Loop variable, and improve file input with logging and robustness 2022-08-31 16:58:40 +09:30
Saxon Nelson-Milton 5eb5992f15 using latest version of utils and using latest logging package 2022-05-27 15:42:58 +09:30
Trek H 563897eb8c alsa: error handling 2022-02-18 10:13:16 +10:30
Trek H 78279d4405 alsa: always return errors from ALSA.Read(), handle in Lex() 2022-02-18 10:10:01 +10:30
Trek H c5c1816607 alsa: close pool buffer on stop 2022-02-14 14:44:35 +10:30
Trek H f9a6bcc9dc alsa: return EOF from alsa.Read so that pauses can be detected and input stopped 2022-02-09 16:38:10 +10:30
Trek H 23e4607cc5 alsa: return n where applicable in alsa.Read 2022-02-09 16:21:02 +10:30
Trek H 1abca8cd7e alsa: removed use of pool buffer chunk, Read closes the chunk for us since it's a fully consuming read 2022-02-09 15:00:04 +10:30
Trek H eeef34e1fb alsa: don't stop recording if there's an unexpected ring buffer error 2022-02-02 17:07:18 +10:30
Trek H a0867331cb alsa: log number of bytes read 2022-02-01 14:13:25 +10:30
Trek H be35600571 alsa: check and handle common errors with pool buffer 2022-01-27 11:50:45 +10:30
Dan Kortschak e9db8911c6 device/raspistill: remove impossible condition 2022-01-13 16:08:02 +10:30
Dan Kortschak 5f4bcb61e0 device/alsa: check error 2022-01-13 16:08:02 +10:30
Dan Kortschak baef3c0585 device/alsa,revid: clarify type conditions and remove redundant condition 2022-01-13 16:08:02 +10:30
Dan Kortschak fd7113860b device: fix incorrect uses of MultiError and guard against misuse 2022-01-13 16:08:02 +10:30
Dan Kortschak 7541015730
cmd/audio-netsender,device/alsa,revid: swap out ring buffer for pool buffer
Names of config fields have been left unchanged since they appear to be lexically
coupled to behaviour and so require greater care.
2021-05-17 11:15:38 +09:30
Saxon Nelson-Milton 7b00f00e16 added README.md files to top level packages 2021-04-11 11:19:37 +09:30
Saxon Nelson-Milton 86e88c0f43 device/raspivid/raspivid.go: added missing exposure mode off to exposure modes list 2021-03-30 09:49:45 +01:00
Saxon Milton 88fb90f902 Merged in add-raspivid-params (pull request #460)
device/raspivid & revid/config: exposed more raspivid parameters, namely contrast, sharpness, exposure value, ISO and AWBGains

Approved-by: Trek Hopton
2021-03-30 04:51:22 +00:00
Saxon Nelson-Milton 8ad9ee5361 device/raspivid & revid/config: exposed more raspivid parameters, namely contrast, sharpness, exposure value, ISO and AWBGains 2021-03-30 15:19:57 +10:30
Trek H 778a19f939 codecutil, revid: made codecs represented as strings, updated where used 2021-02-22 15:15:30 +10:30
Saxon Nelson-Milton fa4713f8fd device/raspistill & revid & container/mts: fixed issues with raspistill test implementations and made slight logging improvements in mts encoder and revid. 2021-02-03 12:17:23 +10:30
Saxon Nelson-Milton d096434e1e device/raspistill/imp_testing.go: correct test image path 2021-02-02 12:18:09 +10:30
Saxon Nelson-Milton b077752462 revid & device/raspistill & container/mts: integrating device/raspistill functionality into revid 2021-01-27 16:49:17 +10:30
Saxon Nelson-Milton c18e263d95 device/raspistill & revid/config: PR problem fixes run 1 2021-01-27 13:46:56 +10:30
Saxon Nelson-Milton 8a792099a5 device/raspistill/imp_release.go: improve error checking routine and removed unused const 2021-01-21 13:14:58 +10:30
Saxon Nelson-Milton 45c019a062 device: add raspistill package housing release and testing implementations 2021-01-20 14:33:47 +10:30
Trek H 1d67ab65a4 alsa: refactor DataSize function 2020-12-24 10:55:44 +10:30
Trek H 35e602748d alsa: pass codec to ring buffer size calc 2020-12-24 09:57:32 +10:30
Saxon Nelson-Milton 6993f136c8 device/file/file.go: simplify AVFile.Read() method 2020-12-21 12:13:45 +10:30
Saxon Nelson-Milton 606b784f5e fixed various things particularly use of %w formatting directive in wrong places to satisfy repo testing 2020-12-19 13:43:23 +10:30
Saxon Nelson-Milton 6506a3021f device/file & revid/pipeline.go: add looping functionality to file device and removing from processFrom 2020-12-19 12:52:49 +10:30
Saxon Nelson-Milton 67a0771c32 device/alsa/alsa.go: removed OpenError 2020-12-14 15:56:33 +10:30
Trek H 744a33d6be alsa: improve error handling 2020-09-03 16:44:22 +09:30
Trek H c86e3c4ce9 alsa: improve error checking 2020-08-21 14:34:13 +09:30
Trek H a475b6f67f alsa: try requested channel 2020-08-21 14:13:15 +09:30
Trek H d9393b46b0 alsa: negotiate channels both stereo and mono, also fix error handling 2020-08-19 16:55:35 +09:30
Trek H abbe35d7a8 alsa: improve documentation 2020-08-13 16:23:19 +09:30
Trek H 456b711b28 alsa: test files updated to use Setup instead of Set 2020-08-13 15:51:24 +09:30
Trek H ba08c58af4 alsa: added comment for exported function DataSize 2020-08-13 15:42:28 +09:30
Trek H c394dc9d89 alsa, revid: reverted changes to revid and changed how ALSA implements Device 2020-08-13 15:28:59 +09:30
Trek H 53a55cc477 Merge branch 'master' into audio-order 2020-08-11 20:20:01 +09:30
Trek H adf5ddece1 revid, alsa: reorder audio setup 2020-08-11 20:17:52 +09:30