File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ return class.create(function(ffmpeg)
35
35
end
36
36
37
37
function ffmpeg :configure (options )
38
- local ffDir = File :new (options .ffmpeg )
38
+ local ffDir = File :new (options .ffmpeg or system . findExecutablePath ( ' ffmpeg ' ) or ' ffmpeg ' )
39
39
if ffDir :isDirectory () then
40
40
self .ffmpegPath = File :new (ffDir , getExecutableName (' ffmpeg' )):getPath ()
41
41
else
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ return {
53
53
ffmpeg = {
54
54
title = ' The ffmpeg path' ,
55
55
type = ' string' ,
56
- default = (require (' jls.lang.system' ).isWindows () and ' ffmpeg\\ ffmpeg.exe' or ' /usr/bin/ffmpeg' ),
57
56
},
58
57
ffprobe = {
59
58
title = ' The ffprobe path, the default value is computed from the ffmpeg path' ,
You can’t perform that action at this time.
0 commit comments