Closed wiedymi closed 4 months ago
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)
Converstion started sucessfully
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
Closed.
Version information
Code to reproduce
(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