File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ defer camera.Close()
57
57
58
58
// Stream the webcam
59
59
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 ()
62
61
// Video processing here...
63
62
}
64
63
```
@@ -90,7 +89,7 @@ type Options struct {
90
89
FPS float64 // Frames per second. Default 25
91
90
Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst
92
91
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="" .
94
93
AudioCodec string // Codec for audio. Default aac
95
94
}
96
95
```
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type Options struct {
37
37
FPS float64 // Frames per second for output video.
38
38
Quality float64 // If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst.
39
39
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="" .
41
41
AudioCodec string // Codec for audio.
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments