{"_id":"video2mp3","_rev":"36-eb394caaef07daf024bdb93c049fd7e0","name":"video2mp3","description":"Convert video to mp3 with using ffmpeg","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.8":{"name":"video2mp3","version":"0.1.8","description":"Convert video to mp3 with using ffmpeg","keywords":["video","audio","mp3","convert"],"homepage":"https://github.com/MakeNowJust/video2mp3","bugs":{"url":"https://github.com/MakeNowJust/video2mp3/issues"},"license":"Apache-2.0","author":{"name":"TSUYUSATO Kitsune","email":"make.just.on@gmail.com"},"main":"index.js","files":["package.json","README.md","LICENSE","index.js"],"repository":{"type":"git","url":"https://github.com/MakeNowJust/video2mp3.git"},"dependencies":{"fluent-ffmpeg":"^2.0.0-rc3"},"gitHead":"bfcf2b892ee6e487135c3a25c99c29da360b43d2","_id":"video2mp3@0.1.8","_shasum":"665c0e2d95966125176d69cfb3e7ea7131a146b7","_from":"git://github.com/MakeNowJust/video2mp3","_resolved":"git://github.com/MakeNowJust/video2mp3#bfcf2b892ee6e487135c3a25c99c29da360b43d2","_fromGithub":true,"scripts":{},"_npmVersion":"2.6.1","_nodeVersion":"1.4.2","_npmUser":{"name":"makenowjust","email":"make.just.on@gmail.com"},"maintainers":[{"name":"makenowjust","email":"make.just.on@gmail.com"}],"dist":{"shasum":"665c0e2d95966125176d69cfb3e7ea7131a146b7","tarball":"https://registry.npmjs.org/video2mp3/-/video2mp3-0.1.8.tgz","integrity":"sha512-7lkyU7E7QqLDOBM4jqr3wNLFxCh4Lhe9VEVPFEZfAmqnuC7mrZ2ajdisrsQ9apBT8WJohjEQYfw9CyWvsCE8UA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ+/AtKi9XL5dPJ98CVLhemxk+OJdulAAAQJhDU1rolAiACxBJkN0ghwcXw5ARD6eybiGtnPPPPLJNTvl4cz8VPtQ=="}]}}},"readme":"# video2mp3\n\nConvert video to mp3 with using ffmpeg\n\n[![npm](https://nodei.co/npm/video2mp3.png)](https://nodei.co/npm/video2mp3/)\n[![Dependency Status](https://david-dm.org/MakeNowJust/video2mp3.svg)](https://david-dm.org/MakeNowJust/video2mp3)\n\n\n## Prerequisite\n\nIt requires `ffmpeg` and `liblamemp3` codec.\n\nIn ubuntu, you can install these libraries:\n\n```\n$ sudo apt-get install ffmpeg libavcodec-extra\n```\n\n\n## Install\n\n```\n$ npm install video2mp3\n```\n\n \n## API\n\n```js\nvar\nvideo2mp3 = require('video2mp3');\n```\n\n\n### `video2mp3.convert(videoPath or videoStream, [options or mp3path], [callback])`\n\nIf passed no-object type value (i.e. string, number ...) as the second argument,\nit equals `convert(video, {mp3path: options}, callback)`.\n\n`options` follows such properties:\n\n  - `options.mp3path` is the path of output mp3.\n  - `options.sampleRate` is the sampling rate, default is 44.1kHz.\n\nIf passed no `options.mp3path`, it returns stream object to convert to mp3.\n\n```js\nvideo2mp3.convert('video.mp4').pipe(require('fs').createWriteStream('audio.mp3'));\n```\n\nOtherwise it converts video to mp3 and save to `options.mp3path`,\nand callback call with null or error object when it succeeded or failured.\n\n```js\nvideo2mp3.convert('video.mp4', {mp3path: 'audio.mp3', sampleRate: 8000}, function (err) {\n  if (err) throw err;\n  console.log('convert successfully!');\n});\n```\n\n## Author\n\nTSUYUSATO Kitsune (MakeNowJust)\n\n## License\n\nApache-2.0. Please read `LICENSE`.\n\n\n## Contribute\n\n  1. Fork this repository.\n  2. Checkout your feature branch.\n  3. Commit your change.\n  4. Push and Pull request.\n\nWelcome your pull request :smile:\n","maintainers":[{"name":"makenowjust","email":"make.just.on@gmail.com"}],"time":{"modified":"2022-06-28T17:00:57.019Z","created":"2014-11-05T14:27:45.785Z","0.1.0":"2014-11-05T14:27:45.785Z","0.1.1":"2014-11-05T15:48:36.456Z","0.1.2":"2014-11-05T15:53:49.730Z","0.1.3":"2014-11-09T10:34:31.343Z","0.1.4":"2014-11-09T10:39:47.636Z","0.1.5":"2014-11-09T10:49:37.491Z","0.1.6":"2014-11-10T09:30:31.464Z","0.1.7":"2015-01-31T05:41:57.504Z","0.1.8":"2015-03-10T00:54:11.232Z"},"homepage":"https://github.com/MakeNowJust/video2mp3","keywords":["video","audio","mp3","convert"],"repository":{"type":"git","url":"https://github.com/MakeNowJust/video2mp3.git"},"author":{"name":"TSUYUSATO Kitsune","email":"make.just.on@gmail.com"},"bugs":{"url":"https://github.com/MakeNowJust/video2mp3/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}