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

Video - extract image from DASH m4s file using ffmpeg

I'm trying to create a thumbnail from a dash stream m4s file. I have the mpd, init.mp4 file and the m4s files. I have the code using nodeJS ffmpeg package that extracts image from an mp4 file: try { var process = new…
Yogevnn
  • 1,430
  • 2
  • 18
  • 37
0
votes
1 answer

Fluent-ffmpeg how to reduce the size of the output file without losing any sound

Is there any best practice to keep the size of the transcoded output file under a specific size? I need to keep it under <100 MB but somehow I end up with big output files. The problem is that my (test) video file is 600kb while the generated…
shamaleyte
  • 1,882
  • 3
  • 21
  • 38
0
votes
1 answer

Transcode Webm to Audio file (fluent-ffmpeg)

I have a video file and its properties are as the following when I check via the ffprobe command; My purpose is to take the audio file only and its size should not be >100mb. Is there any proper way of doing it in an NPM project? ffprobe…
shamaleyte
  • 1,882
  • 3
  • 21
  • 38
0
votes
1 answer

How to use codec type properly in NPM

Trying to use '-acodec libopus' in my npm project as I use in the command line like in the following format; ffmpeg -acodec libopus -i 1.webm 1.wav This works perfectly! But I would like to make it possible in my NPM project. How can I set the…
shamaleyte
  • 1,882
  • 3
  • 21
  • 38
0
votes
2 answers

Error: ffprobe exited with code 1

I'm trying to use fluent-ffmpeg in firebase functions to take screenshot of uploaded video but keep on getting this error: Error: Error: ffprobe exited with code 1 ffprobe version N-83692-gb8a7dcbde2-static http://johnvansickle.com/ffmpeg/ …
Rishabh Chandel
  • 725
  • 1
  • 11
  • 28
0
votes
1 answer

FFmpeg stream dynamic png

I would like to know if its possible to stream a png or any kind of image using ffmpeg. I would like to generate the image contiously using nodejs that updates every 10 seconds. I would like to display game stats with this in a corner and mix it…
Playdome.io
  • 3,137
  • 2
  • 17
  • 34
0
votes
0 answers

What is wrong with this code? Not working on Windows 10 / Ubuntu 14

Trying to convert a .gif to .mp4 : var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var ffmpeg = require('fluent-ffmpeg'); var proc = new ffmpeg({ source: 'myfile.gif' }) .withAspect('4:3') …
Somename
  • 3,376
  • 16
  • 42
  • 84
0
votes
1 answer

ffmpeg output files differ

The following code outputs differing files. Why? I used both the diff command and cmp which says they start to differ at byte 15. I also tried changing the argument to toFormat() from 'ogg' to 'mp3'. Same results. ffmpeg( './original/test.mp3' ) …
Kacy
  • 3,330
  • 4
  • 29
  • 57
0
votes
1 answer

FFMPEG-How can i mix mutilple audio streams with a video having embedded audio?

How can i mix mutilple audio streams with a video having embedded audio? Eg i am having video.mp4 which has embedded audio stream. I want to mix one or more audio streams with it,keeping the orignal embedded audio stream. How can i do it? Thanks.
hack
  • 1,403
  • 2
  • 14
  • 20
0
votes
0 answers

AWS Lambda function for modify video

I want to create a Lambda function that invoked whenever someone uploads to the S3 bucket. The purpose of the function is to take the uploaded file and if its a video file (mp4) so make a new file which is a preview of the last one (using ffmpeg). …
0
votes
1 answer

FFMPEG - How to get supported code list for specific file or Container for enumeration

I want to find supported codec for specific file like(.avi,.mp4, .mov) for enumeration and encoding. I Was enable to find list of codec support for which container. Using ffmpeg
Parwez Akhtar
  • 243
  • 1
  • 3
  • 13
0
votes
1 answer

Multiple files output in fluent-ffmpeg

Is it possible to add multiple files as input to fluent-ffmpeg and get output for all provided files..? Edit 1: var commonPath = __dirname + '/path/to/file/'; ffmpeg() .input(commonPath + 'file1.mp4') .output(commonPath + 'newFile1.avi') …
Lalit Goswami
  • 798
  • 1
  • 8
  • 21
0
votes
1 answer

Node ffmpeg - Square image to video image distortion

I have a problem. I used this code and got a 640x640 video but its converted from a 1280x720 and that's why I get distorted images. What am I doing wrong? I tried different codecs but I have the same problem. (My images res 640x640 ) var proc = new…
0
votes
1 answer

Convert images into video

I have some images in the folder. I want to convert all images into videos. But the problem is that when the resolution is different it shows the error. I don't want to stretch the images in the video. I just want to keep image size as it is. But it…
Disha Shukla
  • 133
  • 1
  • 11
0
votes
1 answer

ffmpeg mp3 streaming via node js

var fs = require('fs'); var child = require('child_process'); var http=require('http') var input_file = fs.createReadStream('./remo.mp3'); http.createServer(function (req,res) { var args = ['-ss',120, '-i', 'remo.mp3', '-f','mp3', 'pipe:1' // Output…
school boy
  • 1
  • 1
  • 2
1 2 3
24
25