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
20
votes
4 answers

How do you use Node.js to stream an MP4 file with ffmpeg?

I've been trying to solve this problem for several days now and would really appreciate any help on the subject. I'm able to successfully stream an mp4 audio file stored on a Node.js server using fluent-ffmpeg by passing the location of the file as…
LaserJesus
  • 8,230
  • 7
  • 47
  • 65
19
votes
2 answers

How to fix "moov atom not found" error in ffmpeg?

Well, I'm using this project to create a Telegram bot which receives URL of .mp4 files, downloads them on server and uploads them to Telegram. Issue Everything works fine so far, except converting certain .mp4 files. For example if I use a sample…
user10664722
17
votes
2 answers

Cloud Functions for Firebase: completing long processes without touching maximum timeout

I have to transcode videos from webm to mp4 when they're uploaded to firebase storage. I have a code demo here that works, but if the uploaded video is too large, firebase functions will time out on me before the conversion is finished. I know it's…
13
votes
1 answer

FFMPEG "buffer queue overflow, dropping" with trim and atrim filters

In FFMPEG I am actually trimming and concating a 24 FPS video. When I apply a complex filter ffmpeg -i sample.mp4 -filter_complex \ "[0:v]setpts = PTS-STARTPTS[bv]; [bv]split=6[v0][v1][v2][v3][v4][v5]; …
13
votes
1 answer

How to change mp3 file to wav file in node.js

I am trying to convert mp3 file to wav file but I am not getting idea how to do that, I tried using fluent-ffmpeg library but I don't know how to use that.
Yatender Singh
  • 3,098
  • 3
  • 22
  • 31
12
votes
2 answers

FFMPEG: using video filter with complex filter

I'm using the fluent-ffmpeg Node.js library to perform batch manipulations on video files. The video filter which crops a 16:9 input, adds padding and burns subtitles into the padding. In the next step, I would like to use a complex filter to…
Sebastien
  • 2,607
  • 9
  • 30
  • 40
11
votes
2 answers

How to embed seekbar inside a video using ffmpeg?

how to embed seekbar inside a video using node-fluent-ffmpeg. Ex:-
Nane
  • 2,370
  • 6
  • 34
  • 74
10
votes
3 answers

fluent-ffmpeg extract audio using streaming

I'm trying to extract audio from video. This code works well: ffmpeg('1.mp4').output('1.mp3') .noVideo() .format('mp3') .outputOptions('-ab','192k') .run(); But if I read the file with a stream like this: var video =…
ABE
  • 734
  • 2
  • 9
  • 21
9
votes
0 answers

Trying to apply a watermark in real time with Node.js + FFMPEG

I'm trying to write a streaming video server using Node.js express. the main task of the video server is to apply a watermark on the video. Here is my code const express = require("express"); const fs = require("fs"); const path =…
8
votes
1 answer

fluent-ffmpeg from an array of input files

I want to use fluent-ffmpeg to create a video of last n images of a directory, or database entries. Which is the correct syntax? These are my tries: Mimic shell command ffmpeg() .addInput('ls *png | tail -n 17') .inputOptions("-pattern_type…
leonard vertighel
  • 1,058
  • 1
  • 18
  • 37
7
votes
1 answer

How to get the output from fluent-ffmpeg screenshots as a buffer instead of writing it directly to the disk?

I have a set of videos I want to take a screenshot from each of them, then do some processing on these generated images, and finally store them. To be able to do the processing I need to get the screenshots as buffers. this is my…
6
votes
3 answers

How to read any frame while having frame number using ffmpeg av_seek_frame()

int64_t timeBase; timeBase = (int64_t(pavStrm-> time_base.num) * AV_TIME_BASE) / int64_t(pavStrm->time_base.den); int64_t seekTarget = int64_t(iFrameNumber) * timeBase; av_seek_frame(fmt_ctx, -1, seekTarget, AVSEEK_FLAG_FRAME); here I want to read…
Parwez Akhtar
  • 243
  • 1
  • 3
  • 13
6
votes
1 answer

Adding subtitles with fluent-ffmpeg

I'm trying to burn in subtitles into a video. This command works perfectly from command line: ffmpeg -i in.mp4 -vf subtitles=sub.srt:force_style='Fontsize=20' out.mp4 My code on server side doesn't seem to do much (it creates test.mp4…
eZo
  • 373
  • 4
  • 14
5
votes
3 answers

Buffer as input and output for fluent-ffmpeg

The below looks like a lot but a it's primarily just output. I'm trying to take in a buffer using multer (being send the request containing the video (.mov format) through Alamofire from an iPhone) as the input before a fluent-ffmpeg conversion,…
nickcoding2
  • 142
  • 1
  • 8
  • 34
5
votes
1 answer

Using flutter how to merge audio file with sync of any video like camera action like that there is any specific package is available in flutter

I have been searching for the packages or any method for the particular problem, i googled but i didn't find any solution , So my issue is , i want functionality like ticktock App , user can select any music audio and they can play according to that…
1
2 3
24 25