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

fluent-ffmpeg module: "end" event does not fire

I'm using the fluent-ffmpeg npm module I've POSTed a video from my client, and am using new stream.Readable to "read" the video Buffer. ffmpeg is converting and saving the file, and everything seems beautiful, but the "end" event never fires. My…
ndugger
  • 7,373
  • 5
  • 31
  • 42
3
votes
1 answer

Why does ffmpeg fail to process streams?

I am struggling on a ffmpeg media conversion script. I am using fluent-ffmpeg library with node.js. My app is supposed to receive a stream as input, resize it using ffmpeg, and then outputing a stream. However, I am absolutely unable to process an…
wakobu
  • 318
  • 1
  • 11
3
votes
0 answers

Stream MongoDB Grid-FS File As Input For fluent-ffmpeg Transcode Process

I am trying to compress/transcode a video file that is saved in my MongoDB database, but I am not sure how I can add it as an input stream into the ffmpeg transcoding process. Any ideas? async function transcodeVideo(_id) { …
3
votes
0 answers

FFmpeg: add subtitles to live stream dynamically

Can we use FFmpge's subtitles filter for dynamic subtitles? For example my subtitles are not coming from the original source and I don't have a srt or ASS file, I am extracting the audio from the source(live rtmp url) and sending it to Microsoft…
Muhammad
  • 6,725
  • 5
  • 47
  • 54
3
votes
0 answers

Duration of wav file saved in S3 using AWS Lambda

Objective To calculate the duration of a wav file which is saved in S3 by AWS Lambda using node.js. I had to add ffmpeg and ffprobe executable inside a lambda layer (Downloaded linux-64 version from here). These files could be found in /opt folder…
Salim Shamim
  • 656
  • 10
  • 25
3
votes
1 answer

FFMPEG randomly gets killed with SIGKILL on fluent-ffmpeg

I'm working on an Electron app with a Node backend and a React frontend. I'm using fluent-ffmpeg to stream data from an external RTSP feed and render the feed on my app. The feed renders and displays fine but it's randomly killed after a few…
jaimish11
  • 536
  • 4
  • 15
3
votes
1 answer

fluent ffmpeg progress.percent return undefined

let ffmpeg = require("fluent-ffmpeg") ffmpeg.setFfmpegPath(pathToFfmpeg) var command = ffmpeg(file) command.on('end', function() { return console.log("done"); }); command.on('error', function(err) { return…
Farrel Athaillah
  • 107
  • 1
  • 10
3
votes
0 answers

Can't save ffmpeg output in Nodejs

I have a problem with saving the preview from the .mp4 file. I followed this tutorial, but I got the Error: ffmpeg exited with code 1: C:\Users\Lenovo\Documents\My projects\YouTube\routes: Permission denied. I don't know how to deal with it, the…
humble_button
  • 91
  • 2
  • 8
3
votes
1 answer

NodeJs - Fluent-FFMPEG cannot find FFMPEG for firebase cloud functions

I am trying to learn how to write a firebase cloud function with ffmpeg-fluent and am referring to this sample code. I have copied the code, only changing the initialisation of gcs to const gcs = admin.storage();. The deployment on Node 10 was…
3
votes
1 answer

ERROR in ./node_modules/fluent-ffmpeg/index.js Module not found: Error: Can't resolve './lib-cov/fluent-ffmpeg'

When I do yarn add fluent-ffmpeg i get this issue: WARNING in ./node_modules/electron-debug/index.js 96:45-58 Critical dependency: the request of a dependency is an expression @ dll renderer WARNING in ./node_modules/electron-debug/index.js…
yasgur99
  • 756
  • 2
  • 11
  • 32
3
votes
2 answers

The problem of code that generated typescript (node-fluent-ffmpeg module)

This is my typescript code: import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { FfmpegCommand } from 'fluent-ffmpeg' async function bootstrap() { const app = await NestFactory.create(AppModule); let…
Steve Rock
  • 362
  • 1
  • 4
  • 11
3
votes
1 answer

How to add an album cover to an mp3 stream using FFmpeg?

I'm having a bit of an issue and I'd really appreciate it if I could get some insights. What I am trying to do is to add an album cover to the mp3 file that will be downloaded from the front-end. Context I'm downloading a video stream from YouTube…
3
votes
0 answers

merge multiple videos to a single .mp4 files using fluent-ffmpeg

Version information fluent-ffmpeg version: 2.1.2 ffmpeg version:4 OS:linux mint Code to reproduce var fluent_ffmpeg = require("fluent-ffmpeg"); var mergedVideo = fluent_ffmpeg(); mergedVideo .mergeAdd('./Video1.mp4') …
Kumar Kisalay
  • 73
  • 1
  • 7
3
votes
2 answers

fluent-ffmpeg get codec data without specifying output

I am using fluent-ffmpeg node module for getting codec data from a file. It works if I give an output but I was wondering if there is any option to run fluent-ffmpeg without giving to it an output. This is what I am doing: readStream.end(new…
agonza1
  • 439
  • 7
  • 20
3
votes
1 answer

How to check for corrupted webm video using node.js and fluent-ffmpeg?

I'd like to check if an encoded webm video has errors. So far I've managed to catch an error using something like this: ffmpeg -v error -i ../broken.webm -f null - which outputs: [matroska,webm @ 0x7fba5400a200] Read error at pos. 110050…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
1 2
3
24 25