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

@ffmpeg-installer/linux-x64

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ffmpeg-installer/linux-x64

Linux FFmpeg binary used by ffmpeg-installer

  • 4.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
401K
increased by8.73%
Maintainers
1
Weekly downloads
 
Created

What is @ffmpeg-installer/linux-x64?

@ffmpeg-installer/linux-x64 is an npm package that provides a precompiled FFmpeg binary for Linux x64 systems. It allows developers to easily include FFmpeg in their Node.js projects without needing to compile it from source. FFmpeg is a powerful multimedia framework that can decode, encode, transcode, mux, demux, stream, filter, and play almost anything that humans and machines have created.

What are @ffmpeg-installer/linux-x64's main functionalities?

Video Conversion

This feature allows you to convert video files from one format to another. The code sample demonstrates converting an MP4 file to an AVI file using the FFmpeg binary provided by the package.

const ffmpegPath = require('@ffmpeg-installer/linux-x64').path;
const { exec } = require('child_process');

exec(`${ffmpegPath} -i input.mp4 output.avi`, (error, stdout, stderr) => {
  if (error) {
    console.error(`Error: ${error.message}`);
    return;
  }
  if (stderr) {
    console.error(`Stderr: ${stderr}`);
    return;
  }
  console.log(`Stdout: ${stdout}`);
});

Audio Extraction

This feature allows you to extract audio from a video file. The code sample demonstrates extracting the audio from an MP4 file and saving it as an MP3 file.

const ffmpegPath = require('@ffmpeg-installer/linux-x64').path;
const { exec } = require('child_process');

exec(`${ffmpegPath} -i input.mp4 -q:a 0 -map a output.mp3`, (error, stdout, stderr) => {
  if (error) {
    console.error(`Error: ${error.message}`);
    return;
  }
  if (stderr) {
    console.error(`Stderr: ${stderr}`);
    return;
  }
  console.log(`Stdout: ${stdout}`);
});

Video Compression

This feature allows you to compress video files to reduce their size. The code sample demonstrates compressing an MP4 file using the H.265 codec with a constant rate factor (CRF) of 28.

const ffmpegPath = require('@ffmpeg-installer/linux-x64').path;
const { exec } = require('child_process');

exec(`${ffmpegPath} -i input.mp4 -vcodec libx265 -crf 28 output.mp4`, (error, stdout, stderr) => {
  if (error) {
    console.error(`Error: ${error.message}`);
    return;
  }
  if (stderr) {
    console.error(`Stderr: ${stderr}`);
    return;
  }
  console.log(`Stdout: ${stdout}`);
});

Other packages similar to @ffmpeg-installer/linux-x64

Keywords

FAQs

Package last updated on 17 Dec 2018

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