New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@assetpack/plugin-ffmpeg

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assetpack/plugin-ffmpeg

AssetPack plugin for converting files using ffmpeg.

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
401
decreased by-16.98%
Maintainers
1
Weekly downloads
 
Created
Source

@assetpack/plugin-ffmpeg

AssetPack plugin for converting files using ffmpeg.

There are two plugins exposed by this package:

  • audio: Converts and compresses mp3, wav, and ogg audio files to mp3 and ogg.
  • ffmpeg: Exposes the full ffmpeg API to convert any file to any other file

Installation

npm install --save-dev @assetpack/plugin-ffmpeg

You also need to install ffmpeg on your system. You can find instructions on how to do that here.

Basic Usage

import { audio } from "@assetpack/plugin-ffmpeg";

export default {
  ...
  plugins: {
    ...
    audio: audio(),
  },
};

Advanced Usage

import { ffmpeg } from "@assetpack/plugin-ffmpeg";

export default {
  ...
  plugins: {
    ...
    // ffmpeg plugin takes an input array of extensions and produces an output based on the options
    // You can pass any ffmpeg options to the options object
    ffmpeg: ffmpeg({
        inputs: ['.mp3', '.ogg', '.wav'],
        outputs: [
            {
                formats: ['.mp3'],
                recompress: false,
                options: {
                    audioBitrate: 96,
                    audioChannels: 1,
                    audioFrequency: 48000,
                }
            },
            {
                formats: ['.ogg'],
                recompress: false,
                options: {
                    audioBitrate: 32,
                    audioChannels: 1,
                    audioFrequency: 22050,
                }
            },
        ]
    }),
  },
};

FAQs

Package last updated on 17 Nov 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc