Commit Graph

18 Commits

Author SHA1 Message Date
Scott 6e1ccf6bda device: add package comments to file, raspivid, geovision and webcam packages 2020-02-26 14:30:42 +10:30
Dan Kortschak 2f85dbcdf6 device/webcam: don't close closed chan 2020-02-03 16:31:42 +10:30
Scott c682f49071 device: use fatal instead of skip in tests 2020-01-31 14:02:45 +10:30
Scott 9ddd4be089 device: use constants for test code 2020-01-31 12:22:48 +10:30
Scott 5c5672486e device/webcam: implement IsRunning method for webcam 2020-01-30 11:21:39 +10:30
Scott f1d1fe2cad device: add tests for IsRunning
To check that the IsRunning method is working, some tests are needed. These tests shall be skipped when an AVdevice is not connected, such as when testing within Circle-CI.
2020-01-30 11:21:06 +10:30
Scott 9a0e52a8f3 device: add IsRunning method to device interface
This commit adds the IsRunning method to the AVDevice interface. It doesn't implement it yet, that will be for a future commit.
2020-01-29 09:28:44 +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
Ella Pietraroia 0da4c3b618 device/webcam/webcam.go: fixed error output 2019-12-23 15:37:20 +10:30
Ella Pietraroia d0102779ed stderr implementation in webcam
same stderr messages made avaliable in raspivid.go now in webcam, so can see when there are problems with with the webcam, rather then our code
2019-12-23 15:27:46 +10:30
Scott 565ba3079c Formatted code 2019-12-03 14:55:08 +10:30
Scott 48d36c2082 Ffmpeg gets different args for mjpeg encoding 2019-12-03 14:36:16 +10:30
Scott d5191d9daf Revid CLI accepts MJPEG as an input codec
The ffmpeg command uses the input codec value (H264 or mjpeg). However, it does not yet capture in mjpeg correctly.
2019-12-03 12:05:57 +10:30
scruzin c49e716a59 Added Name to AVDevice. 2019-11-22 10:55:13 +10:30
Saxon 91e5e765f5 fix webcam bug and also consider webcam Input var value 2019-11-13 14:11:29 +10:30
Saxon dec39a3636 revid: now using AVDevice implementations
Also renamed constructors of devices to reduce stutter e.g. raspivid.NewRaspivid to
raspivid.New
2019-11-13 14:11:29 +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