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

Merge two videos in file format of mp4 using nodejs

I want to merge two or more videos which is stored s3 into a single video in nodejs.I tried to implement using fluent-ffmpeg , I am getting an error that "Cannot find ffprobe".
0
votes
1 answer

ffmpeg on Heroku, EC2: TypeError: Cannot read property 'on' of undefined , ffmpegProc.stdout.on('data', function(data) { ^

I'm using ffmpeg.exe to convert video to audio . On local machine it works fine but when deployed on heroku server it throws error like.... /app/node_modules/fluent-ffmpeg/lib/processor.js:190 ffmpegProc.stdout.on('data', function(data)…
Vikram Sapate
  • 1,087
  • 1
  • 11
  • 16
0
votes
1 answer

How to let fluent-ffmpeg complete rendering before executing next line of code?

The .forEach() loop cuts ffmpeg short so it doesn't fully finish rendering any single video. How can I allow ffmpeg to finish rendering before the next loop occurs? let videos = [vid1.mp4, vid2.mp4, vid3.mp4]; videos.forEach((vid, i) => { …
wongz
  • 3,255
  • 2
  • 28
  • 55
0
votes
1 answer

What Is The Best Frame Size, Bitrate, and Framerate to Concat 3 Different Videos Together?

I want to concat three videos together, but they have different (1) frame size (2) bitrate, and (3) framerates. To avoid glitches, I am resampling each clip on a consistent basis. 1) What is a good basis - bitrate , frame size, frame rate - to…
wongz
  • 3,255
  • 2
  • 28
  • 55
0
votes
0 answers

Video merge using ffmpeg issue

pretty basic node script im using to merge 2 mp4 files together, currently have an error: Error ffmpeg exited with code 1: Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while processing the decoded…
Getwrong
  • 177
  • 1
  • 2
  • 13
0
votes
0 answers

FFMPEG audio distorted after convertion using fluent-ffmpeg

I am trying to convert the following file to wav audio using FFMPEG Input File const ffmpeg = require('fluent-ffmpeg'); ffmpeg() .input('https://github.com/cleancoder7/FFmpeg-Playground/blob/master/audio_file.mp4?raw=true') …
Sujith
  • 7,543
  • 1
  • 28
  • 38
0
votes
1 answer

FFMPEG - How to pipe RMS_level and pts_time metadata without generating unwanted metadata

I am trying to find the loudest (highest rms_level) moment in an audio file, but I need to pipe the metadata rather than write to a file. I converted the answer found here:…
Tovi Newman
  • 596
  • 4
  • 16
0
votes
0 answers

FFMPEG video concatenation returning error: `Error reinitializing filters!`, `Invalid argument`, `Conversion failed!`

I am attempting to concatenate .mp4 files. I am using fluent-ffmpeg and @ffmpeg-installer/ffmpeg Here is the pseudocode: let mergeClips = ffmpeg(); for (let i = 0; i < 5; i++) { await downloadVideo(newUrl, './testVideos/0/' + i + '.mp4'); …
user12829781
0
votes
0 answers

How to export audio from a iPhone video file with FFmpeg?

UPDATE 1 the problem resides in the input read-stream. (check below) I am using fluent-ffmpeg (version: 2.1.2) to get a .mp3 file out of a video file that I input as a stream .createReadStream(). I output the file as a .pipe to a…
0
votes
0 answers

Can I extract an audio clip (a single word) from the video and insert at different points/timeline of same video using FFMPEG/libvlcsharp?

I want to load a video that has a soundtrack, and I want it to take an audio clip of a single spoken word and I want the clip inserted at different points in the video. The output will be the new video. I also want to insert an image at certain…
0
votes
0 answers

Slicing video on several short clips of different lengths in one go

I've got time codes using which I want to slice a short MP4 video (average length 5-7 minutes) [ 0, 15, 35, 52, 142, 215, ...] // time codes in seconds Usually there are 5-7 time codes meaning that I need to create 5-7 clips out of my initial…
Igniter
  • 857
  • 9
  • 24
0
votes
1 answer

ffmpeg only converting 41.25% of my images to video

I"m using ffmpeg to covnert a list of images to a timelapse video. When i run the command from the commandline its works beautifully. ffmpeg -r 3 -i /var/folders/qj/n910kwdj4gvbmy_z2ffc5lcc0000gp/T/tmp-22129yvIsrbso4TEu/image%03d.jpg -s hd1080…
Richard Skinner
  • 738
  • 3
  • 10
  • 26
0
votes
1 answer

Subscribe to long-processing request feedback on NodeJS server from client

I have created a Node JS server which does the following: Uploads media files (videos and images) to the server using multer If the media is an image, then resize it using sharp It the media is a video , then resize and compress it using…
M.Aliyev
  • 1
  • 1
0
votes
1 answer

Multi-threading for heavy transcoding tasks in NodeJS on flex GAE

I am transcoding lots of MP4 to FLAC/WAV using fluent-ffmpeg on flex GAE Thinking about how GAE will handle 10-20 concurrent transcoding operations Transcoding is computationally expensive and GAE might? spawn new instances for each request if not…
0
votes
1 answer

How to import fluent-ffmpeg in AWS lambda?

I'm trying to use fluent-ffmpeg in AWS Lambda, but cannot get it setup correctly. At the top of my index.js: import ffmpeg from "fluent-ffmpeg"; But it is always undefined. ffmpeg === undefined. I'm using Serverless and have ffmpeg included as a…
Fook
  • 5,320
  • 7
  • 35
  • 57