🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

sonarvio-converter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonarvio-converter

wrapper for a customized emscripted version of ffmpeg

latest
Source
npmnpm
Version
0.8.0
Version published
Maintainers
1
Created
Source

js-standard-style

Sonarvio Converter

A wrapper for an emscripted version of ffmpeg to extract the audio tracks from media containers. It includes custom builds for 'wav'.

npm install --save sonarvio-converter

Features

  • minimal API surface for '.exec', '.info' and '.transform'
  • automatic queue system for scheduling re-used workers
  • transparent migration for usage with proxy for CORS handling

Usage

For a better integration with existing projects using webpack the actual script files for the workers are excluded. They have to be provided as an argument through the constructor.

// local
var Converter = require('sonarvio-converter')
var converter = new Converter({
	types: {
		webm: '<FILE_TO_WORKER_SCRIPT>' // e.g. require(file!ffmpeg.js/ffmpeg-worker-webm)
	}
})

converter.exec('webm', '-version').then(function(){
	console.log('shown infos');
})

converter.transform({
	name: 'example.webm',
	data: ....
}, {
	name: 'result.opus'
}).then(function (track) {
	console.log(track);
})

// remote
var Converter = require('sonarvio-converter')
var converter = new Converter({
	proxy: 'http://sonarvio.com/__/proxy.html'
})

converter.info('webm').then(function (info) {
	console.log(info);
})

FAQs

Package last updated on 14 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts