diff --git a/lib/ffprobe.js b/lib/ffprobe.js index d24be85d..5341541e 100644 --- a/lib/ffprobe.js +++ b/lib/ffprobe.js @@ -15,6 +15,7 @@ function parseFfprobeOutput(out) { }); var data = { + frames: [], streams: [], format: {}, chapters: [] @@ -57,8 +58,11 @@ function parseFfprobeOutput(out) { data.chapters.push(chapter); } else if (line.toLowerCase() === '[format]') { data.format = parseBlock('format'); + } else if (line.match(/^\[frame/i)) { + var frame = parseBlock('frame'); + data.frames.push(frame); } - + line = lines.shift(); }