Skip to content

Files

Latest commit

578342a · Jul 26, 2021

History

History
This branch is 179 commits ahead of, 5 commits behind bbc/digital-paper-edit-electron:master.

av-metadata-reader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 22, 2019
Jul 22, 2019
May 18, 2020
Jul 26, 2021

Video Metadata Reader

Read metadata for EDL such as camera timecode, video file name, card name/reel name, fps from a video file, using ffmpeg/ffprobe

Reads metadata available from video and audio file using ffprobe.

var metadataReader = require('./index.js');

var sampleVideo = "/Users/pietropassarelli/INCOMING_FILES/autoEdit_demo_videos/RecodeLiveEditing_test/Bowman.mov";
//optional link to ffprobe
var exampleFfprobePath = "/Users/pietropassarelli/Dropbox/CODE/Vox/SubtitleBurner_project/SubtitleBurner/bin/ffprobe";

metadataReader.read({
  file: sampleVideo,
  ffprobePath: exampleFfprobePath,
  callback: function(resp){
    console.log(JSON.stringify(resp));
  }
});

Given a video it returns a json with metadata info needed for EDL.

{
  "filePathName": "/Users/pietropassarelli/INCOMING_FILES/autoEdit_demo_videos/RecodeLiveEditing_test/Bowman.mov",
  "fileName": "Bowman.mov",
  "date": "2016-02-18 16:38:20",
  "reelName": "time",
  "timecode": "00:01:18:56",
  "fps": "1/60000",
  "duration": 2287.285
}

See ./index_example.js for example usage. And example folder for example of output.

Use readMetadata to get a json containing all available metadata.