Skip to content

Commit 5de0d20

Browse files
committed
Updated README
1 parent 1700998 commit 5de0d20

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ defer camera.Close()
5757

5858
// Stream the webcam
5959
for camera.Read() {
60-
// "frame" stores the video frame as a flattened RGB image
61-
frame := camera.FrameBuffer() // stored as: RGBRGBRGBRGB...
60+
frame := camera.FrameBuffer()
6261
// Video processing here...
6362
}
6463
```
@@ -90,7 +89,7 @@ type Options struct {
9089
FPS float64 // Frames per second. Default 25
9190
Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst
9291
Codec string // Codec for video. Default libx264
93-
Audio string // File path for audio for the video. If no audio, audio=nil.
92+
Audio string // File path for audio for the video. If no audio, audio="".
9493
AudioCodec string // Codec for audio. Default aac
9594
}
9695
```

videowriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type Options struct {
3737
FPS float64 // Frames per second for output video.
3838
Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst.
3939
Codec string // Codec for video.
40-
Audio string // File path for audio. If no audio, audio=nil.
40+
Audio string // File path for audio. If no audio, audio="".
4141
AudioCodec string // Codec for audio.
4242
}
4343

0 commit comments

Comments
 (0)