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

FFMPEG: Cannot read properties of undefined (reading 'format')

I am currently to convert a video file to produce a thumbnail through ffmpeg, react-dropzone, and express. However I keep getting a error of "Cannot read properties of undefined (reading 'format')" in my console. For some reason it can not read the…
Donnyb
  • 21
  • 8
1
vote
0 answers

How to add custom glsl transition file in ffmpeg command ? Getting error like when adding glsl file is "No such filter: 'gltransition"

I was tried with using command ffmpeg -i hiking.mp4 -i video2.mp4 -filter_complex "gltransition=duration=4:offset=1.5:source=crosswarp.glsl" -y outputFile.mp4 After running this command getting error like ERROR MESSAGE No such filter:…
1
vote
0 answers

How To Transcode and Re-size A Video Without Compressing It In fluent-ffmpeg

Simple question, how can I transcode and resize a video in fluent-ffmpeg, without compressing it? I understand that some transcoding processes may naturally affect file size, but is there a way to reduce or increase the compression ratio in…
twominds
  • 1,084
  • 5
  • 20
1
vote
1 answer

How To Asynchronously Check Video File size During Transcoding Process In fluent-ffmpeg

Is there a way during the ffmpeg compression process to determine over various intervals the exact filesize that a video is at? Such as a method to get current filesize during the process to use when comparing against the videos original…
twominds
  • 1,084
  • 5
  • 20
1
vote
1 answer

fluent-ffmpeg - how can i merge two videos next to each other without losing audio?

I wanna merge two videos into one showing one on the left side and another on the right, not concatenation. Below code works almost fine, but both two audio lost. how can i do this without losing sound? ffmpeg() .input('video1.mp4') …
yabbee
  • 11
  • 1
  • 3
1
vote
1 answer

Make total video duration instantly known in video player (ffmpeg / html)

TL;DR What's the correct ffmpeg setting to prevent the video from 'lazy' loading the video's total duration? Problem I'm trying to transcode a video using ffmpeg (in NodeJS). When transcoding is finished ffmpeg uploads the video automatically to a…
Michiel
  • 1,713
  • 3
  • 16
  • 34
1
vote
1 answer

Unit test -> Sinon + fluent-ffmpeg

I need some help with the following code: const ffmpeg = require('fluent-ffmpeg'), {PassThrough} = require('stream'); ffmpeg.setFfmpegPath('/opt/bin/ffmpeg'); ffmpeg.setFfprobePath('/opt/bin/ffprobe'); exports.wavCompilation = async (wavObjList,…
1
vote
1 answer

fluent-ffmpeg process stops

I am working on a Node.js web app and I want to add some text over a video using 'fluent-ffmpeg'. After a few minutes of processing, it stops at 68-69% but it does not give any errors. I am using as input a GET-signed URL from Google Cloud. const…
1
vote
0 answers

How to use node-fluent-ffmpeg to split a large video by fixed size to small videos?

How to use node-fluent-ffmpeg to split a large video by fixed size to small videos? Here are some tips questions Using ffmpeg to split video files by size FFmpeg splitting large files I split the video file by stream ,but the file could be…
radiorz
  • 1,459
  • 4
  • 18
  • 36
1
vote
0 answers

How can i concate multiple video file with different extensions in ffmpeg-fluent npm package?

I am trying to concat multiple videos of different extensions with ffmpeg-fluent npm package but I am not getting output. I shared my code below. const express = require("express"); const multer = require("multer"); const fluent_ffmpeg =…
1
vote
0 answers

Node fluent ffmpeg: How to add padding and background image?

I am currently using the npm package fluent-ffmpeg: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg I would like to get this result: But I do not know how to do that. To be more precise I would like to resize and center the video and then add…
seikida
  • 407
  • 6
  • 17
1
vote
0 answers

Is there any way to upload fluent-ffmpeg converted videos directly to s3 without storing them on local?

Is it possible to store ffmpeg output directly to s3 without downloading it in local or any other storage? Below is my understanding of ffmpeg which converts format of video. I have done conversion part but i need to store it's output directly to s3…
1
vote
0 answers

fluent-ffmpeg and ffmpeg-concat not cutting and merging video in Docker container

I am using react-media-recorder to record the video on ReactJS application which further sends to my NodeJS backend to cut and contact/merge video using fluent-ffmpeg and ffmpeg-concat, before merging the video I am making all the uploaded video to…
Keval savani
  • 45
  • 1
  • 3
  • 11
1
vote
1 answer

Next drawtext clears the previous one ffmpeg

ffmpeg.exe -i ffmpeg_inputs/zheltiy_chelik.mp4 -vf "[in]drawtext=fonts/Temporarium.otf:text='r':fontcolor=orange:fontsize=100:x=(w-text_w)/2+0:y=0:enable='between(t,0, 11)', drawtext =fonts/Temporarium.otf:text =…
1
vote
1 answer

Can't get FFMPEG buildpack working in Heroku Node.js server (using Fluent-FFMPEG)

I'm using a library called 'fluent-ffmpeg' on my Nodejs server that makes it easier to use an audio/video editing tool called FFmpeg, which is downloaded locally on my computer. When running on my computer, I point fluent-ffmpeg to the local…
Rayhan Memon
  • 146
  • 4
  • 18