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
3
votes
1 answer

fluent ffmpeg size output option not working

Summary: I'm trying to limit output to 3mb, .outputOptions('-fs 3000000') isn't working for me, the file is coming back with a size of 119260428 or 119mb. Here is the code to try for yourself, all you need is a test.mp3 large enough that the…
Ashbury
  • 2,160
  • 3
  • 27
  • 52
3
votes
2 answers

Correct way to catch an error with fluent ffmpeg

I'm using Fluent FFMpeg in my NodeJS application and I'm trying to add some error handling in the event an input doesn't exist. At the moment it's just crashing out with this message: events.js:72 throw er; // Unhandled 'error' event …
Luke
  • 20,878
  • 35
  • 119
  • 178
3
votes
1 answer

ENAMETOOLONG nodeJs ffmpeg-fluent

I am currently using ffmpeg-fluent to merge video files. (https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) Unfortunately, my loop in which I put files to merge fail at thousandth file with below exception : Error ENAMETOOLONG in…
Boris S.
  • 1,068
  • 1
  • 8
  • 18
2
votes
0 answers

fluent-ffmpeg throwing SIGSEGV in nodejs

I am using fluent-ffmpeg to resize a video, split into frames, etc. Here's my code: ffmpeg("./uploads/video.mp4") .output("./uploads/small-video.mp4") .noAudio() .size('320x?') .on('end', function() { …
C G
  • 21
  • 2
2
votes
0 answers

Saving mp3 chunks as a file server-side

I've been working lately on a project which takes a webm file and converts it to mp3 server side. So far I was getting the file, convert it in my server and then send a link to the user from which they could download the file. The user had to wait…
Ioannis L.
  • 21
  • 2
2
votes
0 answers

Fluent-FFMPEG redirects to home page when recording is finished

I am using fluent-FFmpeg with my node.js and express server to record videos from an RTSP stream. The issue I am encountering is that once the command to record the video is finished, my React client-side always redirects to the home page of my…
Myles Jefferson
  • 115
  • 1
  • 1
  • 5
2
votes
1 answer

Running ffmpeg in a while loop causes memory leak

I'm trying to run the following ffmpeg commands in a while loop synchronously. Each time round the loop I wait for the current command to finish before I move on the next one. However I'm getting unexpected results and then it crashes. import…
Kawd
  • 4,122
  • 10
  • 37
  • 68
2
votes
0 answers

ffmpeg error when generating screenshots from videos in Node js

I have a function that is supposed to generate a thumbnail from a mp4 file with fluent-ffmpeg in Node, and store it as a jpg file. In my first function I tried to solve this by creating a stream of the external url: const got =…
committer
  • 129
  • 1
  • 12
2
votes
1 answer

How to add multiple subtitle in fluent FFMPEG nodejs

I searched and found some commands that using FFmpeg commands, but I cannot convert to work in the fluent FFmpeg, so requesting to help me. This is the command I found on another answer ffmpeg -i $movie.mov -i $sub_en.srt -i $sub_de.srt \ -map 0:v…
MBK
  • 2,589
  • 21
  • 25
2
votes
1 answer

update ffmpeg filter without interrupting rtmp stream

I am using ffmpeg to read a rtmp stream, add a filter such as a blur box and create a different rtmp stream. the command for example looks like: ffmpeg -i -filter_complex…
Carlo Capuano
  • 382
  • 3
  • 6
2
votes
0 answers

fluent-ffmpeg processing is very slow in Cloud Run

I am trying to merge multiple short videos in the container in Cloud Run using the node.js fluent-ffmpeg package. It takes 20 seconds max to merge videos locally. When I am making a request to clour run to merge the videos it processes them very…
2
votes
0 answers

Delay in ffmpeg flow loop

I'm trying to run this command below to be in an infinite loop and it worked, but when the video ends and starts to replay, it stops for a few seconds. A kind of lag, delay, buffer and I have no idea how to solve it. Could someone out there help…
2
votes
1 answer

Put images on video with ffmpeg in Node.js

I am creating a server-side video renderer in node.js. I need to add images on an existing video file every frame. I need to set the specific position of each frame in the rendered video. I am holding all the frames of the images in Readable. This…
Cery
  • 51
  • 2
  • 4
2
votes
2 answers

Error: Output stream closed when trying to stream to express server using ffmpeg

I'm getting to stream ytdl audio to my express server using ffmpeg but I'm always getting "Output stream closed" there's my code const express = require('express') const ffmpeg = require('fluent-ffmpeg') const ytdl = require('ytdl-core') const app…
2
votes
0 answers

fluent-ffmpeg typeError when trying to saveFile

I'm trying to save a YouTube video using ytdl and pass it with a stream using .pipe() to save it using a stream. No matter what I do I always get the error below. I have already tried to use .saveToFile() and .save() inside of .pipe(). (node:1)…