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
1 answer

ffmpeg Invalid stream specifier: si

I am trying to run the following command : -i "2020_11_30_03_37_37.mp4" -i "2020_11_30_03_37_44.jpg" -f lavfi -t 6.016 -i anullsrc -filter_complex…
Abhishek Sharma
  • 104
  • 1
  • 7
0
votes
1 answer

Fluent-ffmpeg won't process/do anything with videos - Nodejs

I have this code: const ffmpegPath = require("@ffmpeg-installer/ffmpeg").path; const ffmpeg = require("fluent-ffmpeg"); ffmpeg.setFfmpegPath(ffmpegPath); app.put("/upload-content", async (req, res) => { // 1. Get video and save locally to the…
Nathan
  • 1,393
  • 1
  • 9
  • 40
0
votes
1 answer

ffmpeg command line code translate to fluent-ffmpeg

I have trouble understanding fluent-ffmpeg. I'm trying to make a screen recorder with Fluent-ffmpeg but couldn't find the correct code. The output should consist of a screen, webcam and microphone. ffmpeg command line code works…
0
votes
1 answer

Ffmpeg-fluent throwing "At least one output file must be specified" error

Code: inputs: The directory is my directory. Username is a string, for example "james". fileExtentionsion is the video extension, for example .mp4. dateStr is a date string. Compression is just the factor, ie 40. ffmpeg() …
0
votes
1 answer

FFMPEG multiple screenshots command

iam trying to code a function which creates images from video files using ffmpeg. But now i want to know how can i make that with ffmpeg commands exactly, because i use wrapper and now i have some limitations, so i must go in the native way. So,…
0
votes
0 answers

Rotate text in ffmpeg

ffmpeg -y -i test.png -i test.mp4 -filter_complex "[1:v]scale=1152:648,rotate=0:c=black@0:ow=rotw(0):oh=roth(0)[rotate0];[0:v][rotate0]overlay=304.2:172.29,drawtext=fontfile=test.ttf:text='hi…
0
votes
1 answer

FFmpeg getting issue while creating input with png ,video,draw text

I am getting an error "Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_drawtext_3" for the below command, I don't know where it is going wrong. Can anyone help with this issue? ffmpeg -i test.png -i test.mp4 -y…
0
votes
0 answers

Can you make fluent-ffmpeg use a copy of ffmpeg running inside a Docker container?

I have some nodejs code in a folder on a host machine that has an npm module that requires an environment variable to be set in order to utilize an executable called FFmpeg. I have a containerized FFmpeg along with its dependencies for development…
Bdyce
  • 332
  • 2
  • 11
0
votes
1 answer

fulent-ffmpeg arguments inputs are invalid | nodejs

how would I write this command ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 4000k -bufsize 5000k -vf scale=-1:720 output.mp4 as a node fluent-ffmpeg command? what…
Dean Van Greunen
  • 5,060
  • 2
  • 14
  • 28
0
votes
1 answer

Is it possible to run FFmpeg or some similar library on client-side?

I am currently trying to run ffmpeg through fluent-ffmpeg (from node_modules) on the client-side, in a video player application that uses RequireJS. I've looked at https://requirejs.org/docs/node.html#2, however this concerns the modules that run on…
0
votes
2 answers

How can i make fluent-ffmpeg to work in angular 8

I'have installed 'fluent-ffmpeg' plugin in my project and I added it to my angular project this way var ffmpeg = require('fluent-ffmpeg') and i also used this method import * as ffmpeg from 'fluent-ffmpeg' I'm getting the following issues while…
Js doee
  • 333
  • 1
  • 10
  • 18
0
votes
1 answer

electron app fluent-ffmpeg " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"

I am trying to run an ffmpeg command in my electron app. I have created the function ffmpegTest() based off instructions for setting up ffmpeg here: https://alexandercleasby.dev/blog/use-ffmpeg-electron and the example query for ffmpeg-fluent…
Martin
  • 1,336
  • 4
  • 32
  • 69
0
votes
2 answers

ffmpeg Option not found `var_stream_map a:0 a:1`

I am using fluent ffmpeg with ffmpeg v4.1.3 for HLS mukti bitrate streaming but I m not able to use -var_stream_map config it says option, not found but running this command outside fluent-ffmpeg works fine Here is my code const stream =…
Hassnain Alvi
  • 87
  • 2
  • 12
0
votes
1 answer

Error: ffmpeg exited with code 1 on AWS Lambda

I am using fluent-ffmpeg nodejs package to run ffmpeg for audio conversion on AWS Lambda. I am using this FFmpeg layer for lambda. Here is my code const bitrate64 = ffmpeg("file.mp3").audioBitrate('64k'); bitrate64.outputOptions([ …
0
votes
1 answer

Fluent-FFmpeg Error: ffprobe exited with code 1

I'm using a Lambda function to split a given file into pieces, and often I receive an error during the file processing: { "errorType": "Error", "errorMessage": "ffprobe exited with code 1\nffprobe version 4.2.2-static…
Thiago Cardoso
  • 503
  • 7
  • 13