Fix:FFprobe requires path update config #302

This commit is contained in:
advplyr committed 2022-01-10 17:57:51 -06:00
1 parent 018cebb0f5
commit 712aad2f14
3 files changed
+8 -1

No files matched your search

+5 -1
View File
@@ -256,7 +256,11 @@ function parseProbeData(data, verbose = false) {
// Updated probe returns AudioProbeData object
function probe(filepath, verbose = false) {
return ffprobe(filepath)
var options = {}
if (process.env.FFPROBE_PATH) {
options.path = process.env.FFPROBE_PATH
}
return ffprobe(filepath, options)
.then(raw => {
var rawProbeData = parseProbeData(raw, verbose)
if (!rawProbeData || !rawProbeData.audio_stream) {