location / {
root /var/www/myapp/dist;
try_files $uri /index.html;
}
export function index(request, response) {
ffmpeg()
.addInput('/1.mp3')
.addInput('/watermark.wavv')
.complexFilter([
{
filter : 'amix', options: { inputs : 2, duration : 'longest' }
}
])
.on('end', function (output) {
console.log(output, 'files have been merged and saved.')
})
.saveToFile('/2.mp3').run()
};
[object Object]