How to use the setFfmpegPath function from fluent-ffmpeg

Find comprehensive JavaScript fluent-ffmpeg.setFfmpegPath code examples handpicked from public code repositorys.

176
177
178
179
180
181
182
183
184
185
186
    /**
     * Configure ffmpeg path
     * @param {string} path
     */
    static setFfmpegPath(path) {
        ffmpeg.setFfmpegPath(path);
    }
}


module.exports = Util;
fork icon0
star icon0
watch icon1

+ 7 other calls in file

193
194
195
196
197
198
199
200
201
202
const readStream = nodeFs.createReadStream(streamURL);
const outputStreamFile = nodeFs.createWriteStream(
  "D:\\Downloads\\outputFile.mp4"
);

ffmpeg.setFfmpegPath(ffmpegPath);

ffmpeg(readStream)
  .format("mp4")
  .videoCodec("libx264")
fork icon0
star icon0
watch icon1