Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #92 from eralpkaraduman/master

Added major_brand info in metadata
  • Loading branch information...
commit fdb6b2f95f7a9a39ecde1ee26dffe07b3d6d2432 2 parents 027bea4 + 12d9987
Stefan Schärmeli schaermu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/metadata.js
2  lib/metadata.js
View
@@ -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.