Commit Graph

471 Commits

Author SHA1 Message Date
Saxon Nelson-Milton 49aa588aae cmd/rv/main.go & revid/config/variables.go: rename Variables Type_ field to Type and comment Variables global. 2021-07-22 13:06:06 +09: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
Dan Kortschak 3c7828599c
cmd/looper: simplify build constraints and document crippled build artifact 2021-05-17 10:49:20 +09:30
Saxon Nelson-Milton 7b00f00e16 added README.md files to top level packages 2021-04-11 11:19:37 +09:30
Trek H ccd9c7345c treatment: addressing PR comments 2021-03-04 11:50:05 +10:30
Trek H 78cc2a6ca8 treatment: add support for digital volume control 2021-03-03 21:42:01 +10:30
Trek H d14766d512 treatment: use levelled logging functions 2021-02-15 11:03:37 +10:30
Trek H e3f8af1e78 treatment: restart audio when path changed 2021-02-11 13:25:04 +10:30
Trek H 8b4e28a944 treatment: create and check audiofilepath variable 2021-02-11 09:53:35 +10:30
Trek H 1d67ab65a4 alsa: refactor DataSize function 2020-12-24 10:55:44 +10:30
Saxon Nelson-Milton 1a4ba41322 cmd/looper: added build & run utilities including .service file for robust execution 2020-12-19 13:00:41 +10:30
trekhopton b0e3240ebc treat: make default audio path non relative 2020-10-19 19:32:54 +10:30
Trek H 45e36a6c09 treat: makefile, service and .sh scripts for installing 2020-09-29 16:35:55 +09:30
Trek H a989cd69e0 treat: use aplay not omxplayer 2020-09-14 16:09:24 +09:30
Trek H 52e7881b62 treat: removed debug by default 2020-09-14 11:22:11 +09:30
Trek H 0646c36491 treat: nil read pin and add debug logging 2020-09-10 13:06:22 +09:30
Trek H 5b035a6e77 treatment: included rpi support, renew cmd 2020-08-21 21:21:13 +09:30
Trek H e5e9c31ffb treatment: modify tags, check err on flag 2020-08-19 12:43:56 +09:30
Saxon 9329c30928 cmd/treatment/main.go: fixed file header indentation 2020-08-14 17:26:47 +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 3265f7c195 soundcheck: builds 2020-08-11 21:17:21 +09:30
Trek H 73e1007edd soundcheck: add basic structure of sound check procedure 2020-08-08 14:19:25 +09:30
Trek Hopton 82e7ed29d7 rv: initialise variable map 2020-05-19 06:46:47 +00:00
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
Trek H 683feb5df1 looper: modify rc.local path to reflect new location 2020-05-14 19:50:50 +09:30
Trek H 6e080b2522 audio-player: moving to vidgrind repo 2020-05-07 00:49:43 +09:30
Saxon Milton 4cf155bbc2 Merged in correct-config-types (pull request #401)
Correct types of fields in revid/config/config.go Config struct
2020-05-02 03:55:13 +00:00
Saxon b057ea5c10 cmd/looper: remove binary 2020-04-27 19:52:36 +09:30
Saxon d3b7a7ed5a cmd/audio-player/looper => cmd/looper 2020-04-27 19:37:35 +09:30
Ella Pietraroia 890f142fb9 Merged in godoc (pull request #387)
Package level comments

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-04-23 05:35:23 +00:00
Ella Pietraroia 2f95c3836c checking godoc on localhost and making edits 2020-04-23 13:13:37 +09:30
Saxon Nelson-Milton 10908a1749 cmd/rv/main.go: added delay before running stuff
We were getting problems with connection to RTSP device when revid was started from boot.
It seemed like system networking things were not given enough time to establish themselves
before we tried to use them. A delay before running revid fixes this, but is a bit of a
hacky solution. Better solution would be appreciated.
2020-04-10 17:33:24 +01:00
Saxon Milton 0fa50d1a46 Merged in improve-logging (pull request #389)
Improve debug and info logging quality and frequency

* cmd/rv: added some more debug and info logging

* revid: improving logging in revid.go

* revid: improved logging in senders.go

* revid: don't need to set log level as netsender does it

* added some extract log messages

Approved-by: Trek Hopton <trek.hopton@gmail.com>
2020-03-27 12:20:51 +00:00
Saxon Milton 19cbcfb08a Merged in audio-looper-netsender (pull request #386)
* cmd/audio-player/looper: integrating netsender client in to audio-looper to allow for sending of logs to cloud

* cmd/audio-player/looper: added netsender.conf file for copying when making

Approved-by: Trek Hopton <trek.hopton@gmail.com>
2020-03-09 04:46:17 +00:00
Saxon 94a7c0cb5a cmd/audio-player/looper: don't need to deal with stdout to file anymore in rc.local now that we're using the lumberjack logger 2020-03-06 18:00:18 +10:30
Saxon 0d761deed3 cmd/audio-player/looper: fixed indentation of file headers 2020-03-06 17:55:13 +10:30
Saxon bb22272804 cmd/audio-player/looper: general clean up of main file
No longer doing multiwriter that stdout and stderr to stdout and stderr again and buffs. Now only buffs so that we can log anything in stdout or stderr.
2020-03-06 17:50:21 +10:30
Saxon 170a18830e cmd/audio-player/looper: updated package level comment 2020-03-06 16:11:27 +10:30
Saxon adbbd4d458 cmd/audio-player/looper: wrote wrapper for lookPath calls to simplify code 2020-03-06 16:10:01 +10:30
Saxon d0646f73bc cmd/audio-player/looper: general clean up of pi0.go 2020-03-06 15:53:11 +10:30
Saxon a8dc1f78df cmd/audio-player/looper: added missing file headers 2020-03-06 15:26:35 +10:30
Saxon e97745c0df cmd/audio-player/looper: cleaned up README.md file 2020-03-06 14:27:22 +10:30
Ella Pietraroia 6968b973bd looper: rc.local adding path, main.go letting finish the play to find stderr before fatal 2020-03-02 18:32:28 +10:30
Ella Pietraroia 4690209fd5 audio-player: error checking 2020-03-02 12:33:01 +10:30
Scott c5fb58e70c cmd/audio-player/looper: use a command line flag for choosing audio file path 2020-02-28 16:28:02 +10:30
Scott 8cbc7e700c makefile and rc.local fix 2020-02-28 16:06:46 +10:30
Scott 0399051e0e cmd/audio-player/looper: added make file 2020-02-28 15:55:30 +10:30
Scott 17c7ef857e cmd/audio-player/looper: use same logger as revid 2020-02-28 14:30:55 +10:30
Scott 89691e9689 cmd/audio-player/looper: make minor formatting changes 2020-02-28 13:57:58 +10:30
Scott fe983b123c cmd/audio-player/looper: build successfully on circleci 2020-02-28 13:39:04 +10:30
Scott 081efe24d7 cmd/audio-player/looper: created combined audio looper for pi 0 and pi 3 2020-02-28 13:25:07 +10:30
Scott 27082b2070 cmd/audio-player: PR fixes 2020-02-28 11:58:12 +10:30
Ella Pietraroia 5e576c3906 audio-player: spelling 2020-02-28 10:01:24 +10:30
Ella Pietraroia b041ae43c5 audio-player: changing files to be README.md for better viewing 2020-02-28 09:59:32 +10:30
Ella Pietraroia a5410511fa looper0: fixing build error 2020-02-28 09:25:52 +10:30
Ella Pietraroia db773444d3 looper: commenting 2020-02-27 14:29:45 +10:30
Ella Pietraroia 9faa1940a8 splitting into different main.go files for pi0 and pi3 2020-02-27 09:35:58 +10:30
Ella Pietraroia 53f4de6d5b looper: looper verisons for pi3 and for pi0 2020-02-26 16:05:03 +10:30
Ella Pietraroia 39dcf84e39 moved comments to README 2020-02-26 13:40:35 +10:30
Ella Pietraroia a1c856e567 adding conts and comments 2020-02-26 12:30:34 +10:30
Ella Pietraroia 5edb9a08e6 will loop audio on pi at boot until power off 2020-02-25 17:16:16 +10:30
Trek H cbf8c98c87 remove cmd/mjpeg-player from av to add to vidgrind repo 2020-02-06 17:37:14 +10:30
Scott Barnard 9b8f0dc887 Merged in burst-mode (pull request #364)
revid: make burst mode part of revid API

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-31 04:19:47 +00:00
Scott 5502eea661 revid: remove Burst method's duration parameter 2020-01-31 14:31:17 +10:30
Ella Pietraroia 7f44c96abe changed revid start warning to error 2020-01-30 15:54:42 +10:30
Scott 054f0a5e77 revid: add Burst method to revid 2020-01-30 13:20:44 +10:30
Trek H dea8d7ae91 mjpeg-player: naming 2020-01-29 14:04:21 +10:30
Trek H 2201261fe4 Merge branch 'master' into m3u-frag 2020-01-29 13:31:02 +10:30
Trek H abe0ad485c mjpeg-player: naming 2020-01-29 13:30:50 +10:30
Trek H 1243a8606e mjpeg-player: naming 2020-01-29 13:22:06 +10:30
Trek H c10a6f7bb1 mjpeg-player: comments 2020-01-29 13:16:43 +10:30
Trek H 1e474695ab Merge branch 'master' into m3u-live-minor 2020-01-29 13:14:59 +10:30
Saxon adb210f6e9 cmd: remove revid-cli 2020-01-29 08:54:29 +10:30
Saxon Milton a1a1734cfd Merged in rv (pull request #355)
cmd/rv: created revid client that only offers control via netsender

Approved-by: Scott Barnard <scott@ausocean.org>
Approved-by: Trek Hopton <trek.hopton@gmail.com>
2020-01-28 09:03:21 +00:00
Saxon Milton 043e5b004a cmd/rv/main.go: fixed package comment 2020-01-28 08:49:51 +00:00
Saxon Milton 3362410798 cmd/rv/main.go: fixed file header 2020-01-28 08:46:15 +00:00
Trek H be7a70cf51 Merge branch 'master' into m3u-frag 2020-01-28 18:23:02 +10:30
Trek H 73b3e56a99 Merge branch 'master' into m3u-live-minor 2020-01-28 18:04:00 +10:30
Trek H 902472f26a Merge branch 'master' into mtsdemuxer-change-2 2020-01-28 17:16:22 +10:30
Trek H 606a51cdae Merge branch 'master' into m3u-loader-correction-2 2020-01-28 16:27:02 +10:30
Trek H 5a1bb31093 mjpeg-player: comments and logging 2020-01-28 16:26:25 +10:30
Trek H 48ee2410dc Merge branch 'master' into m3u-minor-2 2020-01-28 16:18:54 +10:30
Trek H 8af11ab4de Merge branch 'master' into m3u-ts-2 2020-01-28 16:16:08 +10:30
Trek Hopton 4bbfa9ee6a Merged in m3u-update (pull request #342)
mjpeg-player: updated player for m3u changes

Approved-by: Saxon Milton
Approved-by: Scott Barnard
2020-01-28 05:11:52 +00:00
Trek H 88d1ccfe36 Merge branch 'master' into m3u-loader-correction-2 2020-01-28 15:40:42 +10:30
Trek H 0dae15a2c5 Merge branch 'master' into m3u-reduc 2020-01-28 15:38:18 +10:30
Trek H ba9d9a4e7c Merge branch 'master' into m3u-reduction-2 2020-01-28 15:14:10 +10:30
Trek H d10a59631b mjpeg-player: reduced more config variables 2020-01-28 15:12:30 +10:30
Trek H 902bf74871 mjpeg-player: comments and simplification 2020-01-28 14:32:45 +10:30
Trek H fd5425659d mjpeg-player: simplified main.js's load function 2020-01-28 14:26:06 +10:30
Trek H 09c254e1f0 mjpeg-player: removed bootstrap classes, updated copyright year 2020-01-28 13:29:17 +10:30
Trek H c5e965c14c Merge branch 'master' into m3u-update 2020-01-28 13:14:24 +10:30
Saxon 63e2b24c90 cmd/rv: fixed profile.go and main.go file heaers including USAGE section in main.go 2020-01-28 11:51:05 +10:30
Saxon 86f804cf53 cmd/rv/main.go: moved initialisation of revid to above run call 2020-01-28 10:49:42 +10:30
Saxon 10a8c70e6d cmd/rv/main.go: sleeping at end of complete iteration in main loop 2020-01-28 10:29:40 +10:30
Saxon d5b28f20c8 cmd/rv: updated package name string used for logging 2020-01-28 10:28:16 +10:30
Saxon ed626e02ab cmd/rv: did some cleaning and commenting
Modified profile.go file header. Updated binary name in run.sh.
2020-01-27 15:50:24 +10:30
Saxon 7033d62cc6 cmd/rv: created new revid binary that is only netsender client, not CLI as well 2020-01-27 13:55:09 +10:30
Saxon Milton 89ca5d6052 Merged in loop-mode (pull request #354)
revid: add input source loop mode

Approved-by: Alan Noble <anoble@gmail.com>
2020-01-24 23:24:58 +00:00
Saxon dcafcbf69e cmd/revid-cli: fixed build error 2020-01-25 09:53:21 +10:30
Saxon f82ab42246 revid & cmd/revid-cli: InputFPS field now FileFPS and added check so that only used with File input 2020-01-25 09:39:42 +10:30
Trek H e8766ce5cb mjpeg-player: matched order of functions to simplify PR diff 2020-01-24 21:45:03 +10:30
Saxon 0e14c0a056 cmd/revid-cli: improved commentfor Loop flag description 2020-01-24 20:24:23 +10:30
Trek H 5647946bac mjpeg-player: minor changes to xhr-loader and frag-loader
Changes include: using console for logger, import statements, formatting.
2020-01-24 20:15:04 +10:30
Trek H 58747c0b05 mjpeg-player: playlist loader modification
Typescript code has been removed.

Functionality that is not being used has been removed.
2020-01-24 20:07:54 +10:30
Saxon 0f5aaf6cb5 revid & cmd/revid-cli: added InputFPS config.Config field
The InputFPS field can control rate at which we lex frames from the input source. This has
not been a useful feature until now; we now want to simulate realtime input device using file
input. This requires firstly the Loop mode, and now also realistic input rate.
2020-01-24 20:05:43 +10:30
Trek H 7126f7aa12 mjpeg-player: mtsdemuxer functionality change
Changed MTSDemuxer's 'append' function to 'demux' because it is not appending.
Updated MTSDemuxer so that it doesn't store the stream after demuxing it, it simply demuxes the data that it's given and returns the demuxed data.
Any PES packets that were truncated are kept to be tried at the next call to demux.
2020-01-24 20:02:17 +10:30
Trek H 2e297101a7 mjpeg-player: ts code to js code
This PR is for the hls.js files where the only modifications made are for typescript to javascript conversion, and updated import statements.
2020-01-24 19:50:48 +10:30
Trek H 179f9cfa03 mjpeg-player: reduced hlsjs code
Reduced the lengthy lists of config vars and events used by hlsjs player that we no longer need.
Also removed typescript typing from config.js
2020-01-24 19:41:43 +10:30
Trek H 640f50543d mjpeg-player: added back changes that were overwritten 2020-01-24 19:22:51 +10:30
Saxon 99b931f948 revid & cmd/revid-cli: added loop mode so that input may be restarted after completion
Loop flag has been added to command line flags and in turn sets the Loop field that has been
added to the config.Config struct. mode variable now also checked to see if value set to
Loop, in which case revid config.Config.Loop = true. Revid.processFrom modified so that
when input source has completed Revid.cfg.Loop is checked and input restarted if true.
2020-01-24 19:21:18 +10:30
Trek H 6be40c8849 mjpeg-player: added back changes that were overwritten 2020-01-24 19:17:35 +10:30
Trek H bd52a5e658 mjpeg-player: added back changes that were overwritten 2020-01-24 19:12:07 +10:30
Trek H 5373bb4256 Merge branch 'master' into m3u-live 2020-01-24 15:59:59 +10:30
Trek H 445fc6bc71 mjpeg-player: keeping track of loaded fragments 2020-01-24 15:50:59 +10:30
Scott Barnard 27681e773f Merged in send-logs (pull request #337)
Send log files to netreciever

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-24 05:11:51 +00:00
Trek H c6a096f5a0 mjpeg-player: added reloading of live playlists
Reduced level-contoller.js to keep only what we need (reloading of live playlists).
Added a LevelController to Hls in hls.js.
Removed stop message from player.js which was causing false stops.
Minor changes to level-helper.js (formatting and logger).
2020-01-24 15:24:29 +10:30
Trek H 4e4eaf95d4 Merge branch 'master' into m3u-reduc 2020-01-24 15:17:51 +10:30
Scott 62141926ff main: netLogger → netLog 2020-01-24 15:15:42 +10:30
Trek H 31dc50a4a2 mjpeg-player: adding back files 2020-01-24 14:18:26 +10:30
Trek H 6ed6d1c28b mjpeg-player: removed files from branch that are changed in existing PRs 2020-01-24 14:10:42 +10:30
Scott 0e94a0172b cmd/revid-cli/main.go: netlogger.NetLogger -> netlogger.Logger 2020-01-23 09:41:54 +10:30
Scott 93f7d5849e Added newlines to logger.New 2020-01-22 15:36:20 +10:30
Scott 9d2fd53335 megabytes -> MB 2020-01-22 15:33:23 +10:30
Trek H 971428229b Merge branch 'm3u-packages' into m3u-live 2020-01-21 13:46:23 +10:30
Trek H a5170331e4 mjpeg-player: added original hls.js files for reloading live playlists
These have been added in their unmodified state so that when they are modified to work with our code, the changes can easily be seen.
2020-01-21 13:32:29 +10:30
Trek H 35504f2f4d Merge branch 'm3u-update' into m3u-live 2020-01-21 13:27:04 +10:30
Trek H 2e47a3af92 Merge branch 'm3u-reduc' into m3u-live 2020-01-21 13:26:47 +10:30
Trek H 7eb717a35a Merge branch 'm3u-minor' into m3u-live 2020-01-21 13:26:34 +10:30
Trek H 3ae4670e49 Merge branch 'm3u-loader-correction' into m3u-live 2020-01-21 13:26:15 +10:30
Trek H 9e963d0bb5 Merge branch 'm3u-ts' into m3u-live 2020-01-21 13:25:51 +10:30
Trek H 3702bb2bb3 Merge branch 'm3u-reduction' into m3u-live 2020-01-21 13:25:40 +10:30
Trek H 80b693e0f3 Merge branch 'mtsdemuxer-change' into m3u-live 2020-01-21 13:25:14 +10:30
Trek H 461ff32cc6 Merge branch 'master' into m3u-update 2020-01-21 11:51:31 +10:30
Trek H 6f583a2815 mjpeg-player: comments for classes and functions 2020-01-21 11:47:37 +10:30
Trek H e278397aa3 mjpeg-player: append to lexer
The mjpeg lexer can now have data appended to it as many times as needed instead of having the data passed at construction.
2020-01-20 21:00:24 +10:30
Trek H 9c978be91b mjpeg-player: updated player for m3u changes
Updated player to play data that has been loaded using the hlsjs m3u loading code.
Added an input URL element to html to load playlists.
2020-01-20 20:52:37 +10:30
Trek H ceac1c9e32 mjpeg-player: reduce and simplify hlsjs code
hls.js and stream-controller were both very large ariginally so as to make things simpler, they have been reduced in size and complexity and now just perform the functionality that we need.
2020-01-20 20:31:23 +10:30
Trek H 8e718386f2 mjpeg-player: minor changes to xhr-loader and frag-loader
Changes include: using console for logger, import statements, formatting.
2020-01-20 20:20:03 +10:30
Trek H 6fa4abe78c mjpeg-player: playlist loader modification
Typescript code has been removed.
Functionality that is not being used has been removed.
2020-01-20 20:05:23 +10:30
Trek H 823334a983 mjpeg-player: added file headers 2020-01-20 19:52:22 +10:30
Trek H f062a8456e mjpeg-player: added config and events file headers 2020-01-20 19:46:23 +10:30
Trek H 5ad32207b3 mjpeg-player: updated mtsdemuxer header 2020-01-20 19:44:12 +10:30
Trek H 2d71869104 mjpeg-player: added level-key ts conversion 2020-01-20 17:37:51 +10:30
Scott 8c82a03c25 cmd/revid-cli/main.go: Renamed SendLogs to Send. 2020-01-20 16:20:35 +10:30
Trek H 476c306620 mjpeg-player: mtsdemuxer functionality change
changed MTSDemuxer's 'append' to 'demux' because it is not appending.
Updated MTSDemuxer so that it doesn't store the stream after demuxing it, it simply demuxes the data it's given and returns the demuxed data.
Any PES packets that were truncated are kept to be tried at the next call to demux.
2020-01-20 16:03:35 +10:30
Trek H 290ba3ae3f mjpeg-player: conversion from typescript to javascript code
Changing the typescript code to javascript code.
Updated import statements.
2020-01-20 15:42:22 +10:30
Trek H b8195e5ef9 mjpeg-player: reduced config vars and events
Reduced the lengthy lists of config vars and events used by hlsjs player that we no longer need.

Also removed typescript typing from config.js
2020-01-20 15:20:13 +10:30
Trek H a9f26eb3fe mjpeg-player: modifications to package exportation
these node.js packages are used in the hls.js code and in order to use them with es6 importing/exporting, they needed to be modified.
2020-01-20 14:51:51 +10:30
Scott e4315d8203 cmd/revid-cli: added error checking for sending of logs 2020-01-20 10:50:02 +10:30