Node.JS FFMPEG Example to Pipe Output of Processing Using Stdout in Command Line

You are currently viewing Node.JS FFMPEG Example to Pipe Output of Processing Using Stdout in Command Line

Node.js FFMPEG Example to Pipe Output of Processing Using Stdout in Command Line

var ffmpeg = spawn(argv.ffmpeg, [
    '-i', argv.file,
    '-f', 's16le', // PCM 16bits, little-endian
    '-ar', '44100', // Sampling rate
    '-ac', 2, // Stereo
    'pipe:1' // Output on stdout
  ]);

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply