I'm trying to use the fluent-ffmpeg
NPM module in an application to decrease the volume of the audio in the first half of a video, then increase the volume when it reaches the midway point. I've wrote this code to try to do that:
const ffmpeg = require("fluent-ffmpeg");
ffmpeg("test.mp4")
.audioFilters("volume=enable='between(t,0,t/2)':volume='0.25'", "volume=enable='between(t,t/2,t)':volume='1'")
.save("output.mp4");
However, whenever I run this code, the volume levels of output.mp4
are exactly the same as test.mp4
. What do I do?