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

Fluent-ffmpeg : Adding gif animation as overlay between x time to y time

Im a beginner to ffmpeg. I want to set a gif animation as an overlay of input video from a x seconds to y second . I tried the following codes var wmimage=…
Akhil P M
  • 174
  • 1
  • 2
  • 13
2
votes
3 answers

Can't extract mp3 audio from video with ffmpeg

My input is a .mp4 video file. Try #1 ffmpeg -i pipe:0 -y -map a media/73.mp3 Error: ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 8.1.0 (clang-802.0.42) configuration:…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
2
votes
1 answer

I want to trim video using fluent-ffmpeg

var fs = require('fs'); var ffmpeg = require('fluent-ffmpeg'); var outStream = fs.createWriteStream('output.mp4'); //output path ffmpeg('input.mp4') .duration(600) //trim .on('error', function(err) { console.log('An error occurred: ' +…
Sumit Sarkar
  • 49
  • 3
  • 7
2
votes
0 answers

HTML5 WebM streaming using chunks from FFMPEG via Socket.IO

I'm trying to make use of websockets to livestream chunks from a WebM stream. The following is some example code on the server side that I have pieced together: const command = ffmpeg() .input('/dev/video0') .fps(24) .audioCodec('libvorbis') …
kiyui
  • 375
  • 3
  • 14
2
votes
1 answer

fluent-ffmpeg to convert audio chunks to mp3 and append them to an mp3 file

What? Passing an appending write stream, fs.createWriteStream(filePath, { flags: 'a' }), as an output doesn't seem to work. The code I tried to run const stream = require('stream'); let bufferReadStream = new…
inspiredtolive
  • 161
  • 2
  • 3
  • 7
2
votes
0 answers

How to trim and merge using Fluent FFMpeg?

Here's what I want to do with fluent-ffmpeg: I have 3 input files. An intro, main, and outro video. I wish to merge the three, while trimming the main video. Here is my code: var ffmpegCommand =…
John D.
  • 2,521
  • 3
  • 24
  • 45
2
votes
0 answers

Fluent-ffmpeg and complex filter in Electron (node)

I want to use fluent-ffmpeg module to call ffmpeg with complex filter from Electron but have no success. The error '[AVFilterGraph @ 0xb8.......] No such filter " Error initalizing complex filters . Invalid argument' is the same as in this question…
Matt Sergej Rinc
  • 565
  • 3
  • 11
1
vote
0 answers

Node.js Splitting Audio Channels Into Separate Files

Hey I'm currently working on a node.js program that will convert a audio track to the .wav format. But I am having a hard time splitting the newly created wav file into 2 separate wav files Splitting the audio tracks from the Left and the Right…
Rishi
  • 13
  • 3
1
vote
0 answers

FFMPEG Loop both Audio and Video

I'm trying to stream to a rtmp endpoint a loop of a gif and audio. Currently, my command is only looping the gif, not the audio. The audio will play once and stop. I've tried multiple ways to make the mp3 loop as well, but I wasn't able to. Here's…
1
vote
1 answer

Error when trying to generate FFmpeg thumbnails with .webp

I was trying to export webp thumbnails from my video but i got an error that the Default encoder for format webp (codec webp) is probably disabled. Please choose an encoder manually. This is my code ffmpeg() .input(videoInput) …
1
vote
0 answers

generate thumbnails of mp4 files using fluent-ffmpeg on node.js

I'm trying to generate thumbnail of mp4 video files on a node server and I'm using fluent-ffmpeg. My goal is to be able to send it to the frontend. I thought that I'm able to convert the video file but when I try to load and preview it on the…
1
vote
0 answers

Can I use the file buffer or stream as input for fluent-ffmpeg? I am trying to avoid saving the video locally to get its path before removing

I am receiving the file via an api, I was trying to process the file.buffer as input for FFmpeg but it did not work, I had to save the video locally first and then process the path and remove the saved video later on. I don't want to believe that…
Moath Thawahreh
  • 2,519
  • 2
  • 14
  • 19
1
vote
0 answers

nodejs fluent-ffmpeg split long file into multiple small files based on seconds given

I want to split 10 minute audio mp3 file to 10 different 1 minute files using fluent-ffmpeg package in nodejs. We can do this for ffmpeg package using the following command ffmpeg -i file.wav -f segment -segment_time 60 -c copy…
1
vote
0 answers

How to wait for worker thread to complete in the worker thread itself to do some computations?

I have an existing app which uses worker concept to do audio download from an API. Now I would like to cut the audio once the download is complete in the same worker but the problem is before the full download completes trimming code runs in…
1
vote
0 answers

fluent ffmpeg => how to trim and concate parts of video into one output file without writing many output files. Make a most efficient solution

I'm currently working on a online video website and i need to make a quick preview of videos using random timestamps and duration of the video. Suppose the video is of 15 min then i want to cut out some parts like -> 1. from 00:00:40 take out next…