diff --git a/lib/ffmpeg.js b/lib/ffmpeg.js index 9a090cf0..e27d6418 100644 --- a/lib/ffmpeg.js +++ b/lib/ffmpeg.js @@ -128,7 +128,8 @@ function reformatData(data) { var container = data.format.format_name.split(",")[0]; data.streams.forEach(function (stream) { - if (stream.codec_type === "video") { + if (stream.codec_type === "video" && + acceptedCodecs.hasOwnProperty(container + "/" + stream.codec_name)) { reformatted.vcodec = stream.codec_name; if (!reformatted.title && stream.tags) { reformatted.title = stream.tags.title;