From 943afeff4b9f0e4619f5d2f203dc1269414859ce Mon Sep 17 00:00:00 2001 From: Saitama Date: Mon, 29 Jun 2020 02:19:38 +0530 Subject: [PATCH 1/2] Add option for ffprobe to output chapter metadata Added `-show_chapters` option such that ffprobe outputs the chapter metadata as well --- lib/ffprobe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ffprobe.js b/lib/ffprobe.js index d24be85d..6f9a00db 100644 --- a/lib/ffprobe.js +++ b/lib/ffprobe.js @@ -152,7 +152,7 @@ module.exports = function(proto) { // Spawn ffprobe var src = input.isStream ? 'pipe:0' : input.source; - var ffprobe = spawn(path, ['-show_streams', '-show_format'].concat(options, src), {windowsHide: true}); + var ffprobe = spawn(path, ['-show_streams', '-show_format', '-show_chapters].concat(options, src), {windowsHide: true}); if (input.isStream) { // Skip errors on stdin. These get thrown when ffprobe is complete and From c1b34b1ae21a6cfa78800d1a46e4916854fc80e6 Mon Sep 17 00:00:00 2001 From: Saitama Date: Fri, 24 Jul 2020 19:01:51 +0530 Subject: [PATCH 2/2] Fix syntax, close string. Oops :P --- lib/ffprobe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ffprobe.js b/lib/ffprobe.js index 6f9a00db..e11b88ea 100644 --- a/lib/ffprobe.js +++ b/lib/ffprobe.js @@ -152,7 +152,7 @@ module.exports = function(proto) { // Spawn ffprobe var src = input.isStream ? 'pipe:0' : input.source; - var ffprobe = spawn(path, ['-show_streams', '-show_format', '-show_chapters].concat(options, src), {windowsHide: true}); + var ffprobe = spawn(path, ['-show_streams', '-show_format', '-show_chapters'].concat(options, src), {windowsHide: true}); if (input.isStream) { // Skip errors on stdin. These get thrown when ffprobe is complete and