Crush on second instance of ffmpeg
wiedymi opened this issue · 1 comments
wiedymi commented
Version information
- fluent-ffmpeg version: 2.1.3
- ffmpeg version: 7
- OS: MacOs
Code to reproduce
const output = `./videos/${videoId}/converted.mp4`;
ffmpeg(filePath)
.addOptions([
"-sn",
"-movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov",
"-acodec aac",
"-ac 2",
"-vcodec libx264",
`-map 0:v:0`,
`-map 0:a:0`,
])
.addInputOptions(["-hwaccel_output_format yuv420p"])
.format("mp4")
.on("end", () => {
res(output);
})
.save(output);
// second ffmpeg instance cause the issue
ffmpeg(output)
.outputOptions([
`-c:a copy`,
"-ac 2",
`-c:v copy`,
`-crf 24`,
`-preset veryfast`,
`-x264opts keyint=48:min-keyint=48:no-scenecut`,
`-r 24`,
`-map 0`,
])
.size(`?x${variant}`)
.aspect(aspectRatio)
.on("end", () => {
res(output);
})
.save('output.mp4');
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
Converstion started sucessfully
Observed results
Error: ffmpeg exited with code 178: Error opening output file ./videos/cd51dfb2-e38e-4893-916c-15e9e9b65de7/fragmented.1080.mp4.
Error opening output files: Function not implemented
Checklist
- I have read the FAQ
- I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
- I have included full stderr/stdout output from ffmpeg
wiedymi commented
Closed.