Open SpectatorNan opened 4 years ago
const ffmpeg = require('fluent-ffmpeg') const ffmpegPath = require('ffmpeg-static') const ffprobePath = require('ffprobe-static').path ffmpeg.setFfmpegPath(ffmpegPath) ffmpeg.setFfprobePath(ffprobePath) const command = ffmpeg() command.ffprobe('/Users/xj/Desktop/FFmpeg/bilibili/k1/node-265.mp4', (err, meta) => { console.dir(meta) console.log(meta) console.log('err: ' + err) })
(note: if the problem only happens with some inputs, include a link to such an input file)
output meta info
i try ffmpeg encode h.264 to h.265 success
To probe a file use ffmpeg.ffprobe() instead of ffmpeg().ffprobe().
ffmpeg.ffprobe()
ffmpeg().ffprobe()
Same result here either way. The output from the ffprobe function is undefined
undefined
const command = ffmpeg() or const command = ffmpeg
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
output meta info
Observed results
Checklist
i try ffmpeg encode h.264 to h.265 success