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

Image is not rotating correctly in ffmpeg

This is the image having image rotation I am trying to rotate the image 277 degrees and i am using the command which is ffmpeg -y -i input.mp4 -i image.png -filter_complex "[1:v]scale=w=280:h=280, rotate=a=277.9791451500245:c=black@0[ovr1];…
0
votes
0 answers

Node - fluent-ffmpeg RTSP to Kinesis Video Stream PutMedia API

What I'm trying to do is go from RTSP -> FFMPEG -> MKV -> PutMedia in a stream with low latency. This is the best attempt I have so far which has two problems, the first being authentication doesn't work no matter how which variant of trying to sign…
Shanon Jackson
  • 5,873
  • 1
  • 19
  • 39
0
votes
1 answer

FFMPEG take 3 minutes to generate thumbanils

I am generating the sprite image (combined thumbnails/screenshots) using FLUENT-FFMPEG and node js, the image looks like this. Here is my node js script for generating sprite images/thumbnails. const ffmpegPath =…
The Dead Man
  • 6,258
  • 28
  • 111
  • 193
0
votes
0 answers

FFMpeg crop a portrait (vertical) video square 1:1

SOLVED... It was a UI issue... Not an FFpeg issue. I am new to FFMpeg. I am stuck on cropping a portrait video taken from a portrait device square. I would like my video output to be 1080x1080. First, I tried this. FFmpegKit.execute(`-y -i…
hugger
  • 426
  • 4
  • 19
0
votes
1 answer

how to define overlay video position and size ffmpeg electronJS?

function overlayMaker(){ ffmpeg() .on('end', onEnd ) .on('progress', onProgress) .on('error', onError) .input(`${QuizicorderDir}/screen.webm`) .input( `${QuizicorderDir}/webcam.webm`) .complexFilter([ …
Nommiiee
  • 17
  • 4
0
votes
1 answer

how get thumbnails from video and send it as a response using ffmpeg, fluent-ffmpeg, and express js

am using ffmpeg with fluent-ffmpeg to get a thumbnail from a video like this ffmpeg({ source: `../../uploadedVideo/${filepath}`, }).takeScreenshots({ filename: "example.jpg", timemarks: [2, 4, 6, 8], folder: "../../thumbnail/", }); but what…
Ghost
  • 81
  • 1
  • 9
0
votes
0 answers

How to improve video quality after using "filter_complex" ffmopeg command?

I'm using the afir filter to add reverb effects in the video using the following command. val reverbFFmpegCommand = arrayOf( "-i", originalVideoPath, "-i", …
0
votes
1 answer

Is there a way to ensure mp3 duration accuracy with variable bit rate using FFMPEG?

In our application, we are processing audio files using ffmpeg. Specifically, we use the NodeJS library fluent-ffmpeg, (npm link). Our audio files are generated from various text to speech providers. We recently noticed that when we converted audio…
Japser36
  • 194
  • 2
  • 8
0
votes
1 answer

fluent-ffmpeg display_aspect_ratio not changing

Hi everyone i'm trying to resize width and height of certain input with fluent ffmpeg to 768x1366 (basically to show it in vertical mode), so i have to also change its display_aspect_ratio which i happen to know is 0.562225476. The issue here is…
juanmac
  • 121
  • 1
  • 12
0
votes
0 answers

fluent-ffmpeg resize video to instagram story 9:16

I'm trying to resize / upscale any given video to 1080 x 1920 [9:16 aspect ratio] ffmpeg('video.mp4') .complexFilter([ `scale=-1:1920,crop='min(1080,1*ih)':'min(iw/1,ih)`, ]) .output('render.mp4').run() I have this piece of code which works and…
dazraf
  • 71
  • 5
0
votes
0 answers

Electron App released only show blank screen, but working well in development mode

I'm making an electron app and it's using @ffmpeg-installer/ffmpeg module. It's working well in the development mode but not working when releasing the app. It shows blank page and can't find the ffmpeg-installer module. . This is the electron build…
0
votes
1 answer

Concatenating multiple images to create video using fluent-ffmpeg

I'm trying to create a video from multiple images and a single audio file (different images last for the different duration). I've got the ffmpeg command $ ffmpeg \ -loop 1 -t 4 -i image-1.jpg \ -loop 1 -t 4 -i image-2.jpg \ -loop 1 -t 5 -i…
AbsoluteSith
  • 1,917
  • 25
  • 60
0
votes
0 answers

piping fluent-ffmpeg to response

So I was trying to pipe the video from fluent-ffmpeg to response(client-side) without saving it as a file. Here is my code: .seekInput(06) .setDuration(5) .on('end', function(err, data) { if (!err) { …
0
votes
0 answers

"fluent-ffmpeg" in node.js to merge 2 audios on a single video

I have a mp4 video of 31sec with no background Audio. Now I want to add 2 background audios(mp3) on this video i.e. - [0-15s] 1st Audio then [15-31s] 2nd Audio using fluent-ffmpeg. I have been searching a lot for this scenario but not getting right…
0
votes
1 answer

Using aloop and amix in fluent ffmpeg complex filter

The amix merging the both audio work fine. But when I try to add the aloop filter, I got an error : Error: ffmpeg exited with code 1: Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_amix_1 My code: ffmpeg() …
mehdibe
  • 177
  • 2
  • 12