Open MasterProvider opened 1 year ago
You should be able to do something like
command.pipe(response)
When using pipe
there might be a need to use format
as mentioned in #802 here
You should be able to do something like
command.pipe(response)
When using
pipe
there might be a need to useformat
as mentioned in #802 here
It doesn't work with the app directory do you have any other solutions?
Version information
Code to reproduce
import fs from 'fs'; import ffmpeg from 'fluent-ffmpeg';
export async function GET(request, { params }) {
}
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
stream transcoded video in Nextjs api route
Observed results