I'm using FFMPEG library to manipulate video on user upload.
public async Task ManageVide(IFormFile file)
{
... process file
string command = $"-i inputFile.mp4 -vf -s 800x600 outFile.mp4";
...
}
is it possible to use memory stram as an input and output of the ffmpeg command? I read somewhere that for this can be used ffmpeg pipe. But I don't know how to structure the command
public async Task ManageVide(MemoryStream stream)
{
string command = $"-i pipe:{stream} -vf -s 800x600 test.mp4";
...
}