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

ffmpeg error: Too large number of skipped frames xxxxx > 60000

I try to record on RasperryPI from usb Cam (/dev/video0) using segments to obtain sliced video. The command I'm using is: ffmpeg -input_format mjpeg -video_size 640x480 -i /dev/video0 -y -y -f v4l2 -an -pix_fmt yuv420p -codec copy -f segment…
Fulkron
  • 1,013
  • 2
  • 14
  • 22
0
votes
2 answers

Streaming ffmpeg output directly to dispatcher

I'm trying to play music with my discord bot and I want to use ffmpeg to specify the start of the music, which works perfectly fine, but I can only download the music with ffmpeg and then play it. I want ffmpeg to process it and then also stream it…
0
votes
1 answer

Fluent-ffmpeg : Output with label 'screen0' doesnot exist in any diferent filter graph, or was already used elsewhere

I'm trying to take video frame by frame using fluent-ffmpeg, to create video masking and some kin of like experiment video editor. But when I do that by screenshots it says ffmpeg exited with code 1: Output with label 'screen0' does not exist in any…
mandaputtra
  • 922
  • 3
  • 18
  • 36
0
votes
1 answer

Changing volume halfway through video using FFmpeg?

I'm trying to use the fluent-ffmpeg NPM module in an application to decrease the volume of the audio in the first half of a video, then increase the volume when it reaches the midway point. I've wrote this code to try to do that: const ffmpeg =…
Essem
  • 311
  • 2
  • 11
0
votes
1 answer

Convert GIF to MP4 with ffmpeg with palette color

Palettegen is ok: ffmpeg() .input('temp/' + input.hash) .outputOptions(["-vf fps=15,scale=320:-1:flags=lanczos,palettegen"]) .output('temp/palette.png') the conversion using the palette return a error: Error: Cannot find a matching stream for…
NAG
  • 341
  • 6
  • 29
0
votes
1 answer

Concatenating multiple mp4 files with FFMPEG is giving buggy output file

Hi I'm using ffmpeg to concatenate several mp4 files that I downloaded. Usually they don't have the same encoding so I'm trying to encode them to have the same audio bitrate & resolution, the files output are converted correctly, but when I…
Luis Doe
  • 1
  • 1
0
votes
1 answer

Ffmpeg x11grab exported video 16:9 is distorded

using fluent ffmepg with ffmpeg version 3.4.4. Capturing screen using x11grab with that setup : videoCommand .addInput(display) .addInputOptions('-y', '-f' , 'x11grab' , '-draw_mouse',…
direxit
  • 367
  • 3
  • 18
0
votes
2 answers

Using nodejs fluent-ffmpeg to stream to icecast server

I'm trying to make an api call to express which calls ffmpeg outputing a stream to icecast. I can do this with child_process, but have found fluent-ffmpeg for nodejs. If I add .save('icecast://source:hackme@localhost:8000/test') I get an invalid…
Russ_ell
  • 53
  • 1
  • 7
0
votes
1 answer

Node js request huge amount of pictures

I am trying to request a huge amount of images on node js (n > 3000) and then save them into a folder. I have tried using request library and request-promise. The problem is that if the number of pictures is too big some pictures do not complete…
0
votes
1 answer

FFmpeg apply multiple filters (Logo overlay, Brightness change and text overlay)

I am trying to add three filters to a png file using ffmpeg in Android (I am using the writing mind lib). So far I managed to pull together the cmd: -i /storage/emulated/0/videoApp/temp/firstFrameOfMergedVideo.png -i…
A.Butakidis
  • 355
  • 1
  • 6
  • 16
0
votes
1 answer

Image to video conversion with ffmpeg

I'm trying to make a video showing one image per second using ffmpeg with node-fluent-ffmpeg. I'm using this code as shown on the examples, but I can only get a 1 second video. How can I modify the parameters to get 1 images per seconds and get a…
Matías González
  • 1,366
  • 3
  • 15
  • 30
0
votes
0 answers

Zip an audio file In NodeJS with archiver in fly

I use node-youtube-dl to have a stream to download a video and I want to convert it to mp3 using fluent-ffmmpeg. I also want to zip this mp3 audio to send to the client to download it but I cannot figure how to zip the mp3 audio. I find every corner…
dnp1204
  • 471
  • 5
  • 14
0
votes
0 answers

Reading file stream from Google Cloud Storage to ffmpeg (using fluent-ffmpeg)

I'm trying to run ffmpeg on a NodeJS backend with fluent-ffmpeg, reading input files from Google Cloud Storage. Everything works fine if I download the file first: const file = storage .bucket('example_bucket') …
ekuusi
  • 57
  • 8
0
votes
1 answer

Convert a JPG file to MP4 video using Node

I need to convert a JPG to 3-4sec long mp4 using NodeJS. Everywhere I search I find information about ffmpeg but nothing works for me. Currently I'm trying with fluent-ffmpeg. Here is my code: let ffmpegPath =…
0
votes
0 answers

fluent-ffmpeg: Unable to remove video screenshot after creation

I've the following code that creates a screenshot for the video I've uploaded; var thumbFileName = 'tmp_file.jpg'; ffmpegCommand = ffmpeg(videoFile) .on('end', function() { callback(null, tempUploadDir + thumbFileName) }) .on('error',…
mirg
  • 312
  • 2
  • 16