Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added major_brand info in metadata

  • Loading branch information...
commit 12d9987a5b3d877e9010fbbeebe2b1826d49c5d7 1 parent 027bea4
@eralpkaraduman eralpkaraduman authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/metadata.js
View
2  lib/metadata.js
@@ -70,6 +70,7 @@ exports = module.exports = function Metadata(inputfile) {
, is_synched = (/start: 0.000000/.exec(stderr) !== null)
, rotate = /rotate[\s]+:[\s]([\d]{2,3})/.exec(stderr) || none
, getVersion = /ffmpeg version (?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)/i.exec(stderr)
+ , major_brand = /major_brand\s+:\s([^\s]+)/.exec(stderr) || none
, ffmpegVersion = 0;
if (getVersion) {
@@ -94,6 +95,7 @@ exports = module.exports = function Metadata(inputfile) {
, durationraw: duration[1] || ''
, durationsec: duration[1] ? self.ffmpegTimemarkToSeconds(duration[1]) : 0
, synched: is_synched
+ , major_brand: major_brand[1]
, video: {
container: container[1] || ''
, bitrate: (video_bitrate.length > 1) ? parseInt(video_bitrate[1], 10) : 0
Please sign in to comment.
Something went wrong with that request. Please try again.