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

Run fluent-ffmpeg in browser javascript (client side)

In my program I use fluent-ffmpeg to convert a video into streamable HLS format (m3u8). but this is very cpu heavy and I'm wondering if it could be run at client-side in the browser. In this manner I'll be offloading some work from the server. If…
Fnr
  • 2,096
  • 7
  • 41
  • 76
2
votes
0 answers

NodeJs, Multer and FFMPEG, trying to get progress on file conversion and download

Using React, I'm uploading a video file for conversion in a Node server using Fluent FFMPEG. The file is uploaded correctly and the conversion is taking place, but I'm trying to run two things during and after. I've got progress of the conversion in…
mike varela
  • 467
  • 1
  • 6
  • 20
2
votes
0 answers

How to encode three streams in live from a CloudStorage?

I search a lot and doesn't find anyone posted that question. If I'm wrong, I'm sorry and let me know the link please. Here is what I would like to do. I have an application that can record his screen as well as his computer's microphone and system…
2
votes
1 answer

node js fluent-ffmpeg creating thumbnail

currently im working on some video uploads, so i wanted to create a thumbnail during upload of videos.. I installated fluent-ffmpeg package but on first run i got error Error: cannnot find ffprobe then i changed ffmpeg to ffmpeg.ffprobe then i got…
2
votes
1 answer

Flutter app crashes in release mode when initializing FlutterFFmpegConfig();

The app is working on Android on Debug mode(only) with no errors in the logcat/terminal. But when I tested it on iOS (even in debug mode), it crashes on a specific page. After long tests, I could know that this line was causing the app to…
Mahmoud Eidarous
  • 185
  • 1
  • 2
  • 17
2
votes
1 answer

fluent-ffmpeg video has stretched image

I have an mp3 audio file and a jpg image file. I want to combine these two files into a new mp4. I have a working fluent-ffmpeg command that does exactly what I want, except somethings an image will be stretched in the final output video. It seems…
Martin
  • 1,336
  • 4
  • 32
  • 69
2
votes
1 answer

Creating Thumbnail of Video from screenshot using Fluent FFMPEG in Node JS

I am using Node JS to create API and have used Fluent- FFMPEG to take the screenshot once the video is uploaded. I am getting the below error. I found many answers for this error but none worked.Fluent-ffmpeg is installed. I have attached the…
Nidhi Dadiya
  • 798
  • 12
  • 31
2
votes
2 answers

node.js fluent-ffmepg with createWriteStream fails

I am trying to use fluent-ffmpeg node package with createReadStream and createWriteStream. However, if I replace this line: .output(fs.createWriteStream('assets/transcode-video.mp4'), {end: true}) I write this …
Node.JS
  • 1,042
  • 6
  • 44
  • 114
2
votes
1 answer

Cutting a video without re encoding using ffmpeg and nodejs (fluent-ffmpeg)

I have a quick question, I'm trying to do a cloud video editor, and i want to be able to cut out video usng nodejs. I'm using fluent-ffmpeg. Here is my code : const cutVideo = async (sourcePath, outputPath, startTime, duration) => { …
foufrix
  • 1,324
  • 4
  • 21
  • 45
2
votes
1 answer

electron fluent-ffmpeg mergeToFile() command promise not triggering

I am trying to use fluent-ffmpeg with my electron app to concatenate multiple audio files together with an image in a video. So if i have three files: song1.mp3 1:00 song2.mp3 0:30 song3.mp3 2:00 front.jpg I could create output.mp4 which…
Martin
  • 1,336
  • 4
  • 32
  • 69
2
votes
1 answer

Audio overlapping from previous recording with fluent-ffmpeg

const Discord = require('discord.js'); const client = new Discord.Client(); const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg'); const ffmpeg = require('fluent-ffmpeg'); ffmpeg.setFfmpegPath(ffmpegInstaller.path); const fs =…
2
votes
1 answer

ffmpeg: xstack doesn't work when inputs are scaled to certain dimensions

I'm using ffmpeg to create a mosaic of videos using the xstack filter. The input videos may come in varying dimensions, so I'm using the scale filter to scale them beforehand, and I'm using the force_original_aspect_ratio option and then the pad…
dfriend21
  • 89
  • 7
2
votes
1 answer

Adding background music using fluent-ffmpeg

I've been trying to add background audio to another audio file. Here is what I tried : const audio_urls = ['/path/audio1.m4a', '/path/audio2.m4a']; const file_name = 'merged_file.m4a'; ffmpeg() .input(audio_urls[0]) …
Dhawal Patel
  • 65
  • 1
  • 4
2
votes
3 answers

fluent-ffmpeg aspect ratio with crop

I am having trouble changing the aspect ratio between 16:9, 1:1 and 9:16 using fluent-ffmpeg When I try to change from 16:9 to 9:16, I kinda receive a squeezed video but actually I want the extra part should be removed. I tried this with many…
Dürrani
  • 950
  • 12
  • 21
2
votes
1 answer

Is there a way to use NVDEC and NVENC using fluent-ffmpeg?

I am trying to transcode videos to multiple resolutions using ffmpeg and node.js. I can run this from the commandline to transcode a video to 720p: ffmpeg -vsync 0 -hwaccel cuvid -hwaccel_device 0 -c:v h264_cuvid -i input.mp4 -vf scale_npp=-1:720…