fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.97k stars 881 forks source link

How to run complex filter command #1166

Open joshblitstein opened 2 years ago

joshblitstein commented 2 years ago

I need to reporduce this command but programmatically using fluent please help ffmpeg -y -i input1.mp3 -i input2.mp3 -filter_complex "[0:0][1:0] amix=inputs=2:duration=shortest" -c:a libmp3lame output.mp3

laggingreflex commented 2 years ago

.complexFilter()?

ffmpeg
 .input('input1.mp3')
 .input('input2.mp3')
 .complexFilter([{
   inputs: ['0:0', '1:0'],
   filter: 'amix',
   options: {
    inputs: 2,
    duration: 'shortest'
   },
  }])
ddm50 commented 1 year ago

why do you have to make everything so complicated? cant use a simple command. instead have to deal with this json junk.