1
0
mirror of https://github.com/danog/plotframes.git synced 2024-11-26 20:04:39 +01:00
plotframes/package.json

37 lines
5.5 KiB
JSON
Raw Normal View History

2015-10-12 00:53:13 +02:00
{
"name": "plotframes",
2015-10-14 20:45:59 +02:00
"version": "1.5.4",
2015-10-12 00:53:13 +02:00
"description": "A Node.js frame plotter inspired by FFmpeg plotframes",
"main": "cli.js",
"preferGlobal": true,
"bin": {
2015-10-13 19:56:04 +02:00
"plotframes": "cli.js"
2015-10-12 00:53:13 +02:00
},
"repository": {
"type": "git",
"url": "git+https://github.com/rodrigopolo/plotframes.git"
},
"keywords": [
"plot",
"frames",
"ffprobe",
"ffmpeg",
"gnuplot",
"bitrate"
],
"author": "Rodrigo Polo <rodrigo.polo@gmail.com> (http://rodrigopolo.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/rodrigopolo/plotframes/issues"
},
"homepage": "https://github.com/rodrigopolo/plotframes#readme",
"dependencies": {
"dashdash": "1.10.x",
2015-10-13 18:57:39 +02:00
"single-line-log": "1.0.x",
2015-10-12 00:53:13 +02:00
"split": "1.0.x",
"temp": "0.8.x"
},
2015-10-14 19:07:34 +02:00
"readme": "plotframes\n===========\nA Node.js CLI frame plotter inspired on [FFmpeg plotframes](https://github.com/FFmpeg/FFmpeg/blob/master/tools/plotframes) but 350x faster!\n\n![Frame Based](http://i.imgur.com/M4gT0eX.png \"Frame Based\")\n![Time Based](http://i.imgur.com/J3l0Y7h.png \"Time Based\")\n\n\nRequirements:\n* [gnuplot](http://www.gnuplot.info/) \n* [FFmpeg >= 1.2 with the ffprobe command](https://www.ffmpeg.org/)\n\n\nInstallation and running\n```\nnpm install plotframes -g\nplotframes input.mkv\n```\n\nUsage\n```\nUsage: plotframes [OPTIONS]\noptions:\n -h, --help Print this help and exit.\n -i FILE, --input=FILE Specify multimedia file to read. This is the\n file passed to the ffprobe command. If not\n specified it is the first argument passed to\n the script.\n -s 0, --stream=0 Specify stream. The value must be a string\n containing a stream specifier. Default value\n is \"0\".\n -o FILE.png, --output=FILE.png Set the name of the output used by gnuplot.\n If not specified no output is created. Must\n be used in conjunction with the terminal\n option.\n -t png, --terminal=png Set the name of the terminal used by\n gnuplot. By default it is \"windows\". Must be\n used in conjunction with the output option.\n Check the gnuplot manual for the valid\n values.\n -f, --frames Create a plot based on frame number instead\n of frame time.\n```\n\n>**WARNING:** This is **NOT** a node.js module for inclusion in other Node.js scripts, it is just a CLI for use in the terminal/console, maybe in the future I'll see to integrate it somehow.\n\n### Installing dependencies\n\n#### Windows\n1. [Download](https://nodejs.org) and install Node.js \n2. [Download](http://ffmpeg.zeranoe.com/builds/) a FFmpeg build, uncompress it into a directory that is included in the system `%path%`.\n3. [Download](http://sourceforge.net/projects/gnuplot/) and install `gnpuplot`: \n There are [other downloads](http://sourceforge.net/projects/gnuplot/files/gnuplot/) in case you want to download a different version. \n4. Open your `Command Promt` and run `npm install plotframes`.\n\n\n#### OS X\n* Install Xcode from the App Store\n* Install [Homebrew](http://brew.sh)\n\nThen, using Hombrew intall FFmpeg, XQuartz (needed to render to x11) and gnuplot.\n```\nbrew install ffmpeg\nbrew install Caskroom/cask/xquartz\nbrew install gnuplot --with-x11\n```\n\n#### Ubuntu\n\nInstall Node.js\n```\ncurl -sL https://deb.nodesource.com/setup | sudo bash -\nsudo apt-get install nodejs\n```\n\nInstall FFmpeg\n```\nsudo ppa-purge ppa:mc3man/trusty-media\nsudo add-apt-repository ppa:mc3man/trusty-media\nsudo apt-get update\nsudo apt-get install ffmpeg\n```\n\nInstall gnuplot\n```\nsudo apt-get install gnuplot-x11\n```\n\nOr do all at once\n```\ncurl -sL https://deb.nodesource.com/setup | sudo bash -\nsudo ppa-purge ppa:mc3man/trusty-media\nsudo add-apt-repository ppa:mc3man/trusty-media\nsudo apt-get update\nsudo apt-get install ffmpeg gnuplot-x11 nodejs\n```\n\nAfter that you can install `plotframes`, if it gives you a permision error, run `sudo` command before:\n```\nsudo npm install plotframes\n```\n\n\n## License\n\n(The MIT License)\n\nCopyright (c) by Rodrigo Polo http://RodrigoPolo.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the
2015-10-12 00:53:13 +02:00
}
2015-10-14 19:32:55 +02:00