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

How to add quality in FFmpeg video transcoding?

I don't have much knowledge of FFmpeg. I have googled and made the following code for creating two quality hls transcoding for the video files. It is working fine. I want to create 4 types of video quality. 720,480,320,240. final arguments = '-y -i…
Soham Pandya
  • 386
  • 1
  • 14
0
votes
1 answer

Returning ffprobe metadata to another function using fluent-ffmpeg

I'm trying to use fluent-ffmpeg's ffprobe to get the metadata of a file and add it to a list, but I want to separate the process of getting the metadata from the method related to checking the file, mostly because the addFileToList() function is…
noquierouser
  • 963
  • 2
  • 11
  • 25
0
votes
2 answers

How to convert the stream from h265 to h264

I'm trying to create a media server using nodejs, and i have no problem streaming any formats but Since web browsers cant play H265 codec videos i need to convert them to H264 while createReadStream creates a chunk so that i dont have to convert…
0
votes
1 answer

Concat audio and video on fluent-ffmpeg

Im triyng to concat audio and video with the library fluent-ffmpeg but it is not workyng. Anyone can help me? var proc = ffmpeg(firstFile) .input(secondFile) .input(thirdFile) .input("./musicas/1.wav") //.input(...) .on('end',…
0
votes
0 answers

FFMPEG video output size is too long

I am trying to merge videos in FFmpeg reading through a .txt file, it merges the videos but increases the total timeline. Expected timeline is 2 minutes but after merging the videos the output file has a timeline of 18 hours.I am using the following…
0
votes
1 answer

Creating a GIF with fluent-ffmpeg, overlay is not shown?

I'm trying to create a GIF from an mp4 video, with an overlay on it. So there are two inputs, video.mp4 and overlay.png, both of them are https urls. The gif is created, ffmpeg shows no errors but the overlay doesn't appear in the gif. The…
blablubla12
  • 119
  • 1
  • 1
  • 10
0
votes
2 answers

How to add multiple audio to a video at specific time for specific duration

I have a video.mp4 file of 20 seconds without audio stream, and I have 2 audio files audio1.mp3 and audio2.mp3. What I want is audio1 should start playe at 3 seconds for 5 seconds, and audio 2 should start play at 10 seconds for 6 seconds. ffmpeg -y…
Javed Saifi
  • 71
  • 1
  • 15
0
votes
1 answer

I need to combine audio and video stream with fluent ffmpeg

I need to take an input stream's audio and another stream's video and combine them with fluent-ffmpeg. I am using nodejs. Also, I need to pipe the output. Both of the inputs have video and audio, but I need to merge a stream's audio only, while…
mr noob
  • 345
  • 2
  • 14
0
votes
1 answer

first m3u8 ts segment not working after mp4 to m3u8 conversion by node js

index.js const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; const ffmpeg = require('fluent-ffmpeg'); const process = require('process'); const args = process.argv.slice(2); if (args.length !== 4) { console.error('Incorrect number of…
Alan
  • 21
  • 4
0
votes
0 answers

full m3u8 clip isn't getting generated from m3u8 file by node.js

index.js const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; const ffmpeg = require('fluent-ffmpeg'); const process = require('process'); const args = process.argv.slice(2); if (args.length !== 4) { console.error('Incorrect number of…
Alan
  • 21
  • 4
0
votes
1 answer

fluent ffmpeg node js command

const ffmpeg = require('fluent-ffmpeg'); const videoFile = './f1.mp4'; ffmpeg.ffprobe(videoFile, (err,metaData) => { const {duration} = metaData.format; const startingTime = parseInt(duration - 60); const clipDuration = 20; …
Alan
  • 21
  • 4
0
votes
0 answers

How to get the output resolution after successful encode?

I'm using fluent-ffmpeg and I'm already able to get the output resolution in the 'on end' event: createFfmpegCommand() .input(fs.createReadStream(readPath)) .noAudio() .fps(30) .format('mp4') .videoCodec('libx264') .videoFilter([ …
Daniel Birowsky Popeski
  • 8,752
  • 12
  • 60
  • 125
0
votes
1 answer

Nodejs couldn't find the ffmpeg module for some reason

I need to display the live streaming vidoe(rtsp) on a website(http, vue framework) with nodejs and vue framework. I've looked it up a lot and got the basic logic of what they are and how it works. So I'm planning on to convert rtsp to hls with…
Chawchawchaw
  • 203
  • 1
  • 4
  • 13
0
votes
1 answer

How to add fade out effect after merging two audio files using ffmpeg?

I tried merging two audio files using following command, executeFfmpeg(`-i voice.wav -i background.wav -t ${duration+2} -filter_complex amix=inputs=2:duration=longest output.wav`) .on('error', function(err) { console.log('An error…
Bucky
  • 1,116
  • 2
  • 18
  • 34
0
votes
1 answer

ffmpeg audio channel layout unknown to stereo/mono

I have one audio file, below I have attached the audio metadata, the audio layout is "unknown", how to set the audio layout "Stereo" or "mono"? now I am using the FFmpeg tool in NodeJs, please suggest any other media customization tool also…
kathir
  • 4,255
  • 2
  • 15
  • 25