From 5de0d207f5955dea089b43c7d4ce3ee939507c20 Mon Sep 17 00:00:00 2001 From: Alex Eidt Date: Sat, 16 Apr 2022 15:39:56 -0700 Subject: [PATCH] Updated README --- README.md | 5 ++--- videowriter.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 50a5cf1..7ffb290 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,7 @@ defer camera.Close() // Stream the webcam for camera.Read() { - // "frame" stores the video frame as a flattened RGB image - frame := camera.FrameBuffer() // stored as: RGBRGBRGBRGB... + frame := camera.FrameBuffer() // Video processing here... } ``` @@ -90,7 +89,7 @@ type Options struct { FPS float64 // Frames per second. Default 25 Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst Codec string // Codec for video. Default libx264 - Audio string // File path for audio for the video. If no audio, audio=nil. + Audio string // File path for audio for the video. If no audio, audio="". AudioCodec string // Codec for audio. Default aac } ``` diff --git a/videowriter.go b/videowriter.go index 47ff334..d9e215a 100644 --- a/videowriter.go +++ b/videowriter.go @@ -37,7 +37,7 @@ type Options struct { FPS float64 // Frames per second for output video. Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst. Codec string // Codec for video. - Audio string // File path for audio. If no audio, audio=nil. + Audio string // File path for audio. If no audio, audio="". AudioCodec string // Codec for audio. }