fluent-ffmpeg

Clipping audio/video with FFmpeg produces audio artifacts

偶尔善良 提交于 2021-01-29 07:18:02
问题 I am using FFmpeg, via the fluent-ffmpeg node.js library, to take in an mpeg-ts stream with H.264 video and AAC audio and extract specific segments with a filtergraph to then stream out. Unfortunately, FFmpeg appears to be adding priming packets to the AAC stream at the beginning of every retained clip, which results in noticeable audio artifacts on playback. Is there any way to turn that behavior off? 来源: https://stackoverflow.com/questions/64917498/clipping-audio-video-with-ffmpeg-produces

sandboxed electron app cant use ffmpeg (mac apple store)

喜夏-厌秋 提交于 2021-01-07 02:37:31
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Martin wants to draw more attention to this question. I am trying to build an electron application for the mac apple store that uses ffmpeg. I can use fluent-ffmpeg locally fine and It continues to work when I build my app for windows/mac/linux, but when I build a sandoxed Mac Apple Store (MAS) .app file and sign the .app file, fluent-ffmpeg does not work anymore, and throws an ffmpeg was killed

Add multiple images to video fluent-ffmpeg

空扰寡人 提交于 2020-12-29 08:44:26
问题 I manage to add a single image to a video starting at a certain time and ending at a certain time, but I cannot find a way to do this for multiple images. I use fluent-ffmpeg. This is the code I have: ffmpeg('../videos/testklein.mp4') .input('../src/test.png') .input('../src/0.png') .input('../src/1.png') .addOptions([ "-strict -2" ]) .complexFilter([ { filter: 'overlay', options: { x: 200, y: 200, enable: 'between(t,1,3)', }}, { filter: 'overlay', options: { x: 200, y: 200, enable: 'between

Add multiple images to video fluent-ffmpeg

心不动则不痛 提交于 2020-12-29 08:42:38
问题 I manage to add a single image to a video starting at a certain time and ending at a certain time, but I cannot find a way to do this for multiple images. I use fluent-ffmpeg. This is the code I have: ffmpeg('../videos/testklein.mp4') .input('../src/test.png') .input('../src/0.png') .input('../src/1.png') .addOptions([ "-strict -2" ]) .complexFilter([ { filter: 'overlay', options: { x: 200, y: 200, enable: 'between(t,1,3)', }}, { filter: 'overlay', options: { x: 200, y: 200, enable: 'between

Can I extract an audio clip (a single word) from the video and insert at different points/timeline of same video using FFMPEG/libvlcsharp?

霸气de小男生 提交于 2020-01-11 13:22:11
问题 I want to load a video that has a soundtrack, and I want it to take an audio clip of a single spoken word and I want the clip inserted at different points in the video. The output will be the new video. I also want to insert an image at certain points in the video (watermark). Can I do this using FFMPEG or libvlcsharp? 来源: https://stackoverflow.com/questions/59358375/can-i-extract-an-audio-clip-a-single-word-from-the-video-and-insert-at-differe

Inputing a List of Files for Concatenation with Node.js Module fluent-ffmpeg

自古美人都是妖i 提交于 2019-12-24 18:40:32
问题 Version information fluent-ffmpeg version: 2.1.2 ffmpeg version: 3.4.2 OS: Windows 10 Code to reproduce ffmpeg('C:/path/to/list.txt').mergeToFile('C:/path/to/out.mp4', 'C:/path/to/temp'); list.txt: file 'C:/path/to/chunk01.ts' file 'C:/path/to/chunk02.ts' file 'C:/path/to/chunk03.ts' file 'C:/path/to/chunk04.ts' Note: I've tried both absolute and relative paths, with the same result. Expected results A video file at C:/path/to/out.mp4 that matches the 4 files in list.txt, concatenated end-to

fluent ffmpeg size output option not working

半腔热情 提交于 2019-12-24 01:24:11
问题 Summary: I'm trying to limit output to 3mb, .outputOptions('-fs 3000000') isn't working for me, the file is coming back with a size of 119260428 or 119mb. Here is the code to try for yourself, all you need is a test.mp3 large enough that the resulting testoutput.ogg is > 3mb: var ffmpeg = require("fluent-ffmpeg"); var command = ffmpeg(); var convertToOGG = function(){ var fileName = 'test.mp3' ffmpeg.ffprobe(fileName, function(err, metadata) { command .input(fileName) .inputFormat("mp3")

How to use codec type properly in NPM

风流意气都作罢 提交于 2019-12-12 05:41:04
问题 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 parameters? This is what I have , but not working. The output file is broken in a way that some of the frames of the audio file are missing. It is like there is sound and then there is not. And vice versa. var proc = new ffmpeg({ source: file, nolog:

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

此生再无相见时 提交于 2019-12-12 04:15:21
问题 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 output.wav 4MB. It is quite far away from what I expected. var proc = new ffmpeg({ source: file, nolog: false }); proc.addInputOption('-acodec libopus'); format = "wav"; proc.addOptions([ '-f ' + format, '-ab 192000', '-ar 16000', '-vn' ]); This is how I