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
5
votes
2 answers

Fluent ffmpeg not running synchronously

I am writing a program where I need to process a video multiple times using ffmpeg. The ffmpeg codes (below) are inside a 'then' statement of a promise. ffmpeg(path) .size('640x?') .aspect('1:1') .autopad('#682BAB') …
sciencaholic
  • 123
  • 1
  • 11
5
votes
3 answers

ffmpeg won't execute properly in google app engine standard nodejs

I have tried for three full days to get GAE (standard - nodejs) to run a simple video transcoder from MOV to MP4 using ffmpeg. I have tried using ffluent-ffmpeg, kicking off a child process (e.g. spawn), and nothing works. As soon as it hits the…
tommyc38
  • 703
  • 1
  • 8
  • 21
5
votes
2 answers

How to use ffmpeg in JavaScript to decode H.264 frames into RGB frames

I'm trying to compile ffmpeg into javascript so that I can decode H.264 video streams using node. The streams are H.264 frames packed into RTP NALUs so any solution has to be able to accept H.264 frames rather than a whole file name. These frames…
noel
  • 2,257
  • 3
  • 24
  • 39
5
votes
1 answer

ENOENT Error in Node When Calling Ffmpeg binary from Fluent-Ffmpeg Api

Background I am wiring up a firebase function in node. Purpose is to parse an inbound audio clip to a set length. Using ffmpeg and fluent-ffmpeg. Problem When the function is triggered in firebase, I am getting ENOENT error when Fluent-Ffmpeg…
Peter
  • 5,251
  • 16
  • 63
  • 98
5
votes
1 answer

Using node fluent-ffmpeg for converting images to video

I've found lots of samples for this but none of them was working properly for me. I have a couple of Images. Either URLs, Base64s or Buffers. I need to convert them to a video, without altering quality. The closest I came was this command: ffmpeg…
Dushyant Bangal
  • 6,048
  • 8
  • 48
  • 80
5
votes
1 answer

ffmpeg exited with code 1: Error configuring complex filters

I am using the fluent-ffmpeg node package to merge videos. I am following the documentation exactly but I get the following error : Error: ffmpeg exited with code 1: Error configuring complex filters. Here is the code…
rycornell
  • 709
  • 6
  • 13
4
votes
1 answer

I want to auto generate video subtitle using npm package ffmpeg-fluent in node js while viideo uploaded from react front-end side

I have node js application in that have build REST APIs. I want video module in front-end side(React js) where user upload any video (not youtube) and from backend side (node js) I want to automatically generate subtitle file using ffmpeg npm…
devitz
  • 41
  • 1
4
votes
1 answer

What is the difference between ffmpeg, ffmpeg wasm, and ffmpeg in native app?

We are implementing a web browser that processes videos using ffmpeg. I heard that there is a way to implement it on the server side, use native app, or wash it because the browser cannot perform ffmpeg for node. Can I know the difference between…
4
votes
2 answers

Ffmpeg split video into multiple chunk but in different duration length

I know how to split video into equal duration length, but here i want to split video into un-equal parts and number of parts and duration will be different for each time. For ex, video length is 50 sec, i want to split it in 4 parts. 1) 0 sec - 5…
4
votes
1 answer

Passing streams from Fluent-ffmpeg to Google Cloud Storage

Is there a way to pass a stream from Fluent-mmpeg to Google Cloud Storage? I'm trying to allow the user to upload any kind of media (audio or video), and I want to convert it to flac before uploading it to GCS. I'm using a few middlewares on my…
4
votes
2 answers

I want to use showwavespic to generate waveform data

For the life of me I cannot figure out to translate: -i foo.mp3 -filter_complex aformat=channel_layouts=mono,showwavespic=s=4000x1000 -frames:v 1 foo.png Into a fluent-ffmpeg command. Can anyone help me out? I have tried with the most basic…
Lutando
  • 4,909
  • 23
  • 42
4
votes
2 answers

Add multiple images to video fluent-ffmpeg

I manage to add a single image to a video starting at a certain time and ending at a certain time, but I cannot find a way to do this for multiple images. I use fluent-ffmpeg. This is the code I have: ffmpeg('../videos/testklein.mp4') …
Riël
  • 1,251
  • 1
  • 16
  • 31
4
votes
0 answers

How to set the destination folder of a Node.js fluent-ffmpeg screenshot to your AWS S3 bucket using getSignedUrl()?

I'm writing a program to generate .png thumbnails (with the same name, in the same folder) for a set of .mp4 videos in my Amazon S3 bucket. For this example, I'm going to create a /folder/file.png for a /folder/file.mp4 in the bucket. I've managed…
muds
  • 518
  • 1
  • 3
  • 13
4
votes
1 answer

How to stream mp4 file with fluent-ffmpeg?

I am trying to stream a video file with fluent-ffmpeg. But i could't do it. Here is my code var filePath = null; filePath = "video.mp4"; var stat = fs.statSync(filePath); var range = req.headers.range; var parts =…
user3184735
  • 31
  • 2
  • 3
4
votes
1 answer

NodeJS - Looking for faster ways to create FFMPEG thumbnails

I am using fluent-ffmpeg and ffmpeg in node: var ffmpeg = require('fluent-ffmpeg'); var src = "http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv"; ffmpeg(src) .on('filenames', function(filenames) { console.log('Will…
RunningFromShia
  • 590
  • 6
  • 20
1
2
3
24 25