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

MP4 made in FFMPEG cannot play / be opened

I am trying to make a video by combining a sequence of PNG images. It seems to be working fine except, the outputted MP4 cannot actually be opened / play with Quicktime. So basically it's not working. I can't figure out what the issue is or how to…
Anters Bear
  • 1,816
  • 1
  • 15
  • 41
1
vote
0 answers

Convert HEVC/H.265 video to a more widely supported format using fluent-ffmpeg in Node.js

My app allows users to upload videos from their phones. However, the latest iPhone default format (HEVC / H.265) does not seem to be supported by Chrome and other browsers, so some users cannot stream the videos. I'm already using fluent-ffmpeg on…
Daniel Loiterton
  • 5,073
  • 5
  • 33
  • 46
1
vote
0 answers

fluent-ffmpeg: how to merge many files with across fade between them

Well, first of all, a i have some audio inputs and i want to merge all into a single audio file with acrossfade between them. file1.mp3, file2.mp3...fileN.mp3 I'm doing a reduce to include all the inputs, like this: inputs.reduce((result, file) =>…
1
vote
1 answer

fluent-ffmpeg: Convert wav to alac .m4a with streams

On my node.js server I want to convert a wav file to apple lossless .m4a Using fluent-ffmpeg, I got this so far: const transcoder = ffmpeg(fs.createReadStream(`${__dirname}/convertTest.wav`)); transcoder .withAudioCodec('alac') …
Johannes Klauß
  • 10,676
  • 16
  • 68
  • 122
1
vote
0 answers

node.js fluent-ffmpeg merge 2 images in one image

I am trying to merge 2 different images in one image. I cannot find anything on the web. Please send me stuff to put it in the script NOT cmdline
1euro7cent
  • 47
  • 5
1
vote
0 answers

FFMPEG Merge a video that has sound with an mp3 audio file outputs audio out of sync

An example for further explanation: I'm recording a video singing at the same time the singer sings in a song. So, I have a video file(Me singing) and the audio file(the song). I tried this simple command: -i $video-i $audio-c copy -map 0:0 -map 1:0…
1
vote
0 answers

How do I translate this ffmpeg command into fluent-ffmpeg for react-native?

ffmpeg.ffprobe(filePath, (error, metadata) => { const duration = metadata.format.duration; console.log(duration); Up to here it's working, but then I need to use the following commands and don't know how to. As far as I…
Brahma99
  • 9
  • 2
1
vote
0 answers

sandboxed electron app cant use ffmpeg (mac apple store)

I am trying to build an electron application for the mac apple store that uses ffmpeg. I can use fluent-ffmpeg locally fine and It continues to work when I build my app for windows/mac/linux, but when I build a sandoxed Mac Apple Store (MAS) .app…
Martin
  • 1,336
  • 4
  • 32
  • 69
1
vote
1 answer

How to create mp4 to multi bitrate hls(.m3u8) Stream With fluent-ffmpeg

ffmpeg -hide_banner -y -i beach.mkv \ -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k…
1
vote
2 answers

FFmpeg: desynced audio when using xfade and acrossfade together

I have a problem when using xfade and acrossfade together to concatenate 12 videos together and keep the audio. When I leave out the audio stream and just apply the xfade filter, the video encodes just fine. Otherwise the transition hangs and the…
1
vote
1 answer

fluent-ffmpeg set audio level with complex filter

I'm looking to mix 2 audio's with the ffmpeg-fluent, below is the code that works for this purpose. ffmpeg() .input(audio1) .input(audio2) .complexFilter([ { filter: 'amix', options: { inputs: 2, duration: 'shortest' } } ]) …
Ram Kumar
  • 828
  • 2
  • 10
  • 27
1
vote
1 answer

Fluent FFMPEG complex filter to split file into multiple outputs

It appears possible to have multiple outputs from a single FFMPEG command: ffmpeg overlay on multiple outputs I'd like to know how to do this in FFMPEG. I'm specifically using the complexFilter option in an attempt to split the video into 4…
lowcrawler
  • 6,777
  • 9
  • 37
  • 79
1
vote
1 answer

ffmpeg concat converts multiple videos to chipmunk version with half the video silence

i try to concat multiple videos to one video and add an background music to it. for some reason the background music is perfectly added to the output video but the audio of each part of the output is speed up to a chipmunk version of the video…
1
vote
1 answer

fluent-ffmpeg How to make video rendering synchronous with code?

I want to make the code run only after ffmpeg has finished rendering the videos. Currently, the code runs faster than the videos can render. videos.forEach((vid, i) => { ffmpeg(`${process.cwd()}/video/tmp/${vid}`) .outputOptions(['-r 30',…
wongz
  • 3,255
  • 2
  • 28
  • 55
1
vote
1 answer

In fluent-ffmpeg, how do you include multiple video filters?

The code below adds the watermark but ignores the scaling. How do you include multiple video filters in fluent-ffmpeg? ffmpeg(inputFileName) .inputOptions(['-safe 0', '-f concat']) .outputOptions([ '-filter:v scale=w=1280:h=720', …
wongz
  • 3,255
  • 2
  • 28
  • 55