mediainfos
Version:
Wrapper which parse simple mediainfo output (not xml).
40 lines (39 loc) • 2.59 kB
JSON
{
"name": "mediainfos",
"description": "Wrapper which parse simple mediainfo output (not xml).",
"version": "0.0.1",
"author": {
"name": "philou2024",
"email": "philippe@devisme.com"
},
"license": "GNU",
"repository": {
"type": "git",
"url": "https://github.com/philou2024/node-mediainfos.git"
},
"keywords": [
"mediainfo",
"media",
"audio",
"video",
"AVC",
"h264",
"flac",
"ogg",
"mkv",
"avi"
],
"main": "./lib/mediainfo",
"engines": {
"node": ">=0.6.11"
},
"_id": "mediainfos@0.0.1",
"readme": "\nnode-mediainfos\n===============\n\nOverview\n--------\n\nLibrary node.js to extract data from mediainfo output, in simple ou Full mode.\n\n**WARNING** : It doesn't work with XML issues.\n\nLibrary was written to access metadata issued by mediainfo.\n\nIt works on Linux (Ubuntu, CentOS), I did not test on Windows.\n\nUsage\n-----\n\n`var mediainfo = require('node-mediainfos');`\n\n\n## Mode with 2 parameters:\n\n`mediainfo([complete_path],callback)`\n\n* parameter 1\n\n Full path to file to analyze. It takes only one file.\n\n* parameter 3\n\nThe callback function is called with 2 parameters:\n\nerr: return true or false\n\nmetadata: return hash of data\n\n\n## Mode with 3 parameters:\n\n`mediainfo([complete_path],'--Full',callback)`\n\n* parameter 1\n\n Full path to file to analyze. It takes only one file.\n\n* parameter 2\n\n --Full \n\n* parameter 3\n\nThe callback function is called with 2 parameters:\n\nerr: returns error from mediainfo.\n\nmetadatr: returns hash of data\n\n## metadata\n\nThe second parameter of callback contains issue from mediainfo in a javascript object.\n\nThe keys of level 1 come from mediainfo issue.\n\nRegular keys:\n\n* general\n* video\n* audio\n\nOther keys\n\n* text\n* menu\n\nDepends from data found by mediainfo.\n\nFor each key, data are set in an array.\n\n\nExample\n-------\n\n```javascript\nvar mediainfo = require('node-mediainfos');\nmediainfo([complete_path],'--Full',function (err,metadata) {\n if (err) {\n console.log(err);\n } else {\n console.log(\"%o\", metadata);\n }\n});\n\n```\n\n\nContact\n-------\n\nemail: [philou2024](mailto:philippe@devisme.com)\n\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/philou2024/node-mediainfos/issues"
},
"_shasum": "12deb6bef124d219a18908c20a27df359c13294f",
"_resolved": "git://github.com/philou2024/node-mediainfos.git#1193dbaf54a894012a1a66898bc0282e72c3c466",
"_from": "git://github.com/philou2024/node-mediainfos.git"
}