Questions tagged [fluent-ffmpeg]

Fluent ffmpeg is a Node.js library (A fluent API to FFMPEG)

This library abstracts the complex command-line usage of ffmpeg into a fluent, easy to use node.js module. In order to be able to use this module, make sure you have ffmpeg installed on your system (including all necessary encoding libraries like libmp3lame or libx264).

github repo

369 questions
2
votes
4 answers

How can I execute a custom ffmpeg string command with fluent-ffmpeg

How can I pass a custom command to fluent-ffmpeg(https://www.npmjs.com/package/fluent-ffmpeg/v/1.7.0)? I just want to pass the command string. Something like var command = FFmpeg("ffmpeg -i input.mp4 -i input.mp3 -c copy -map 0:v:0 -map 1:a:0…
Lauren
  • 137
  • 2
  • 8
2
votes
2 answers

process ffmpeg command on nodejs with fluent-ffmpeg

I'm programming a tool for convert MP4 to HLS with nodejs , I'm trying to use fluent-ffmpeg to convert it , but I have some error at giving "outputOptions" . My code : var fs = require('fs'); var ffmpeg = require('fluent-ffmpeg'); // open input…
Niguai
  • 85
  • 1
  • 4
2
votes
0 answers

Fluent ffmpeg stream from buffer

I have a function streamtogif() with ffmpeg that converts a stream to a gif and returns a buffer. It works perfectly fine, but here I am, I'm using busboy, and i get the entire file as buffer. Finally, I'd like to pass this one to the ffmpeg to turn…
nonoom
  • 244
  • 1
  • 3
  • 15
2
votes
1 answer

How to run this complex filter in Fluent FFMPEG?

I'm trying to turn the following complex filter into a Fluent FFMPEG command but I can't figure out how the mapping works. ffmpeg -i audio.mp3 -filter_complex "[0:a]showfreqs=s=200x100:colors=white|white,format=yuv420p[vid]" -map "[vid]" -map 0:a…
Dan Weaver
  • 711
  • 8
  • 20
2
votes
0 answers

Batch merge audio files by specific timestamp without reencoding

I want to batch merge mp3 audio files where every single file has a specific start time. So below is the fluent-ffmpeg spawn I use right now to merge 3 files with each starting at respectively 200, 7400 and 10600. ffmpeg -i firstFile.mp3 -i…
Saccarab
  • 1,399
  • 12
  • 25
2
votes
1 answer

Why ffmpeg launched on a google cloud function can throw "Error: Output stream error: Maximum call stack size exceeded"?

I'm trying to process video files with ffmpeg running on google cloud functions. Video files are downloaded from a google file storage, processed in stream by fluent-ffmpeg and streamed to a new google storage file. It works on smaller files but…
2
votes
1 answer

Get lengths of intermediate concatenated files in ffmpeg filter-complex

I'm writing a media Electron app that occasionally needs to individually trim => individually normalize => concatenate => convert a varying number of WAV files into MP3. I've successfully used FFMPEG (via Fluent-ffmpeg) to do so (command wrapped for…
2
votes
1 answer

fluent-ffmpeg converting MKV to MP4 gives error "Conversion Failed"

I am trying to use fluent-ffmpeg to stream a video from disk, this video is a MKV file. I am trying to transcode this video to MP4 on my NodeJS server and stream it to the client. However, I keep getting the error code 1: Conversion failed! when I…
2
votes
0 answers

Convert GIF to MP4 with Nodejs and ffmpeg with buffer as input

When using ffmpeg with buffer as input, the output video is incomplete, but if i use the same input file as file the video is ok, some help to find the problem? let inStream =…
NAG
  • 341
  • 6
  • 29
2
votes
0 answers

How to add audio on top of a video using Fluent-ffmpeg and Node JS

What is the correct way to add audio on top of a video using Node Js and Fluent Ffmpeg? I can't find anything about it in the docs.
Emil
  • 21
  • 3
2
votes
1 answer

fluent ffmpeg how to set X11 display as input

With command line i can easily capture an Xserver display, trying to reproduce this with fluent-ffmpeg for node videoCommand.addInput(':99.0+0,150') .withSize('720x480') .withFpsInput(60) .withFpsOutput(60) .addInputOption('-y', '-f…
direxit
  • 367
  • 3
  • 18
2
votes
1 answer

fluent-ffmpeg h264 to gif throwing "error 1"

below is my code to convert h264 to gif var ffmpeg = require("fluent-ffmpeg"); var inFilename = "/home/pi/Videos/video.mp4"; var outFilename = "/home/pi/Videos/video.gif"; var fs = require('fs'); ffmpeg(inFilename) .outputOptions("-c:v", "copy") …
cdoern
  • 97
  • 1
  • 12
2
votes
0 answers

Resize video with fluent-ffmpeg and upload to S3 in lambda AWS

I've written below code which(is triggered when a video is uploaded to s3) gets an image from s3, resizes it with fleunt-ffmpeg nodejs module and then uploads it to s3 bucket. async.waterfall([ function download(next) { // Download video …
Rahul
  • 863
  • 6
  • 23
2
votes
2 answers

Pass options containing spaces to ffmpeg using fluent-ffmpeg

I am writing a Node script which copies and re-tags some of my MP4 files using fluent-ffmpeg It doesn't work with any metadata that contains spaces. The code that does the copying/tagging looks something like this: const ffmpeg =…
dansumption
  • 83
  • 1
  • 11
2
votes
0 answers

Improve ffmpeg parallel procesing processing

I am using ffmpeg to convert a series of images and an audio file to video. This process happens in parallel, i.e, for different sets of images and audio file, I am spawning ffmpeg process in parallel. For a single request, ffmpeg response time is…
hack
  • 1,403
  • 2
  • 14
  • 20