ffmpeg.js
ffmpeg.js copied to clipboard
Executing the ffmpeg command
Is it possible to execute such a command?
in php I do it like this:
exec('ffmpeg -f concat -stream_loop -1 -i list.txt -i audio/bg.mp3 -filter_complex "[0]volume=2dB,aformat=fltp,pan=stereo|c0=c0|c1=c0[a0];[1]volume=0.5dB,aformat=fltp,pan=stereo|c0=c0|c1=c1[a1];[a0][a1]amix=inputs=2:duration=longest,aformat=fltp[a]" -map "[a]" -strict -2 -y '.$config['audio_output_dir'].'/cp.mp3');
list.txt: file audio/intro.mp3 file audio/10.mp3 file audio/3.mp3 file audio/4.mp3 file audio/5.mp3