From aa29647fcb0450429ee16fbe8e9cec009958c0ed Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 2 May 2020 18:45:38 +0930 Subject: [PATCH 1/2] revid/config/config.go: add InputAudio source in Input config field comment --- revid/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/revid/config/config.go b/revid/config/config.go index ed1bb700..c14c1f9b 100644 --- a/revid/config/config.go +++ b/revid/config/config.go @@ -132,9 +132,13 @@ type Config struct { // InputV4l: // Read from webcam. // InputFile: + // Read h.264 bytestream from a file. // Location must be specified in InputPath field. // InputRTSP: + // Read from a camera supporting RTSP communication. // CameraIP should also be defined. + // InputAudio: + // Read from a ALSA audio source. Input uint8 // InputCodec defines the input codec we wish to use, and therefore defines the From 147f975646f98470bbf8758bf077c97f8e04e379 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 2 May 2020 18:47:52 +0930 Subject: [PATCH 2/2] revid/config: add missing audio related enums for Input and InputCodec TypeData map keys --- revid/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/config/config.go b/revid/config/config.go index c14c1f9b..d6114137 100644 --- a/revid/config/config.go +++ b/revid/config/config.go @@ -305,8 +305,8 @@ var TypeData = map[string]string{ "Height": "uint", "HorizontalFlip": "bool", "HTTPAddress": "string", - "Input": "enum:raspivid,rtsp,v4l,file", - "InputCodec": "enum:H264,MJPEG", + "Input": "enum:raspivid,rtsp,v4l,file,audio", + "InputCodec": "enum:H264,MJPEG,PCM,ADPCM", "InputPath": "string", "logging": "enum:Debug,Info,Warning,Error,Fatal", "Loop": "bool",