Added bitrate in VideoWriter
This commit is contained in:
parent
77430bd2bc
commit
75e491d14c
1 changed files with 1 additions and 2 deletions
|
@ -49,12 +49,11 @@ func NewVideoWriter(filename string, width, height int, options *Options) *Video
|
||||||
|
|
||||||
writer.width = width
|
writer.width = width
|
||||||
writer.height = height
|
writer.height = height
|
||||||
|
writer.bitrate = options.bitrate
|
||||||
|
|
||||||
// Default Parameter options logic from:
|
// Default Parameter options logic from:
|
||||||
// https://github.com/imageio/imageio-ffmpeg/blob/master/imageio_ffmpeg/_io.py#L268.
|
// https://github.com/imageio/imageio-ffmpeg/blob/master/imageio_ffmpeg/_io.py#L268.
|
||||||
|
|
||||||
writer.bitrate = options.bitrate
|
|
||||||
|
|
||||||
// GIF settings
|
// GIF settings
|
||||||
writer.loop = options.loop // Default to infinite loop.
|
writer.loop = options.loop // Default to infinite loop.
|
||||||
if options.delay == 0 {
|
if options.delay == 0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue