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

stream video from rtsp with frame rate of 1 fps

i am trying to stream only one frame per second from rtsp , I am using ffmpeg with following command ffmpeg.exe -i rtsp:/XXXXX -q:v 1 -vf fps=fps=1 -f mpegts udp://Y.Y.Y.Y:ZZ but i receive higher rate than 1 fps. P.S Capturing frame in 1 fps and…
Robob
  • 329
  • 2
  • 6
  • 19
0
votes
0 answers

node-fluent-ffmpeg editing video start time when merging

I am trying to understand if this is valid, to add in the setStartTime option half way through merging my audio: new FFmpeg({ source: '/path/to/part1.avi' }) .setStartTime(120) .mergeAdd('/path/to/part2.avi') …
DarkArtistry
  • 434
  • 1
  • 6
  • 22
0
votes
1 answer

Possible to delete data read from readable stream?

I have some ffmpeg processes running in order and all writing into one stream (fs.createWriteStream). Is it possible to delete the data read through fs.createReadStream from the file? I want to run the script 24/7 and want the stream to act like a…
Henry
  • 15
  • 1
  • 8
0
votes
1 answer

FFMPEG Streaming Youtube Live

I am streaming live video on youtube live using ffmpeg sdk av_interleaved_write_frame(m_pAvFmtCntx, pkt); av_interleaved_write_frame taking more than 60 millisecond to write packet . How to optimize time?
0
votes
2 answers

fluent-ffmpeg: how split stereo mp3 to 2 mono file in node.js?

I'm trying to convert an mp3 file stereo to 2 mp3 mono node's fluent-ffmpeg module. This is example for terminal: ffmpeg -i stereo.wav -map_channel 0.0.0 left.wav -map_channel 0.0.1 right.wav I need the implementation of this functionality in…
obsidian
  • 1
  • 1
0
votes
1 answer

Subtitle Encoding using ffmpeg

I want to read and write subtitle stream ffmpeg -i E:/Video/Waka.mp4 -vf subtitles=E:/Video/Waka.srt out.mp4 equivalent code in c or c++ and please provide how to add subtitle stream and encoding parameter, what is procedure to read subtitle…
0
votes
0 answers

ffmpeg command making 0 bytes file when attempting to compress mp4 video

Whenever I am running this script, it compresses my MP4 video but the output is 0 bytes. It works well for AVI & FLV format. Please help me understand what I am doing wrong? @session_start(); @include_once("start.php"); $command =…
Riyaz Khan
  • 23
  • 1
  • 9
0
votes
0 answers

Is it possible to get only the total number of black frames from a video clip using ffmpeg (windows user)?

I have a .avi video clip which runs for 30 minutes with 30 fps. I want to know the total number of black frames in that clip instead of showing every black frame. Is it possible to do it using ffmpeg?
raaki
  • 1
0
votes
1 answer

ffmpeg complex filter - multiple crops on black background

We are attempting to process a video file by cropping it into several pieces and arranging it on a black background which is exactly 1920x1080. The following command runs but it never completes and we have to kill the process. Is there something…
Kevin O'Hara
  • 337
  • 3
  • 14
0
votes
1 answer

alpha support for fluent-ffmpeg complexFilter drawtext?

I am able to use ffmpeg from a console and get a text to fade in and out, but am trying, and failing, to use the alpha option in the fluent-ffmpeg. This works: ffmpeg -i testvideo.mp4 -filter_complex…
mgd
  • 1
  • 1
0
votes
0 answers

Ffmpeg. Can I loop to different frames in simultaneously

My abstract example(it doesn't work). ffmpeg -i video.mp4 -filter_complex "loop=20:1:1;loop=20:1:100" -y output.mp4 Thanks.
0
votes
1 answer

nodejs get mp4 file thumbnail quickly

I want to have a thumbnail of 0.0 sec of a video. Currently I am using node-fluent-ffmpeg to generate thumbnail. Following is the code: ffmpeg(tempLocalFile) .screenshots({ timestamps: [0.0], filename: 'xx.png', …
user1590595
  • 795
  • 2
  • 13
  • 37
0
votes
1 answer

Writing Tee Pseudo muxer of FFMPEG by C++ code

Is there anyone who knows how to use Tee pseudo muxer of ffmpeg by c++ code. Kindly guide in doing this. I am working on getting multiple outputs of muxed transport stream (ts) data. I am able to mux aac and h264 in ts. But i have to get muxed ts…
0
votes
0 answers

Ffmpeg/Fluent-Ffmpeg: Output File Does Not Reflect Input Parameters

Use Case When a user records an audio file and uploads to firebase storage, run a trigger that crops a clip of that file and saves it to a "preview" directory. Problem When the file arrives on the server, it is just dead air before the start time…
Peter
  • 5,251
  • 16
  • 63
  • 98
0
votes
1 answer

Converting AWS Polly Audio Stream with fluent-ffmpeg

I am trying to convert an audio stream from Amazon AWS Polly in Node.js using fluent-ffmpeg. The documentation says that I can convert a stream, which is what the output of Polly provides, but I am getting an "Invalid input"…
Joel
  • 1,579
  • 3
  • 12
  • 19