fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.82k stars 874 forks source link

ffprobe metadata is undefined #1050

Open SpectatorNan opened 4 years ago

SpectatorNan commented 4 years ago

Version information

Code to reproduce

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)

Expected results

output meta info

Observed results

image

Checklist


i try ffmpeg encode h.264 to h.265 success

federicocarboni commented 3 years ago

To probe a file use ffmpeg.ffprobe() instead of ffmpeg().ffprobe().

sdunnin commented 1 year ago

Same result here either way. The output from the ffprobe function is undefined

const command = ffmpeg() or
const command = ffmpeg