We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a940ca8 commit 79ee8c8Copy full SHA for 79ee8c8
Ffmpeg.lua
@@ -35,11 +35,16 @@ return class.create(function(ffmpeg)
35
end
36
37
function ffmpeg:configure(options)
38
- self.ffmpegPath = options.ffmpeg
+ local ffDir = File:new(options.ffmpeg)
39
+ if ffDir:isDirectory() then
40
+ self.ffmpegPath = File:new(ffDir, getExecutableName('ffmpeg')):getPath()
41
+ else
42
+ self.ffmpegPath = ffDir:getPath()
43
+ ffDir = ffDir:getParentFile()
44
+ end
45
if options.ffprobe then
46
self.ffprobePath = options.ffprobe
47
else
- local ffDir = File:new(self.ffmpegPath):getParentFile()
48
if ffDir then
49
self.ffprobePath = File:new(ffDir, getExecutableName('ffprobe')):getPath()
50
0 commit comments