Added ffmpeg check in VideoWriter
This commit is contained in:
parent
c03552383a
commit
b647a774cd
3 changed files with 6 additions and 2 deletions
|
@ -36,6 +36,9 @@ type Options struct {
|
|||
}
|
||||
|
||||
func NewVideoWriter(filename string, width, height int, options *Options) *VideoWriter {
|
||||
// Check if ffmpeg is installed on the users machine.
|
||||
checkExists("ffmpeg")
|
||||
|
||||
writer := VideoWriter{filename: filename}
|
||||
|
||||
writer.width = width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue