For a C # project, I'm experimenting with ffmpeg to extract a WAV file from a video file (on Windows). You can do this by running it on the command line as follows: "ffmpeg -i inputvid.avi +" additional options "+ extract.wav". This explicitly extracts the sound from the input .avi file to the specified .wav file.
Now I can easily run this command in C # to create the desired .wav file. However, I do not need this wav file so that it remains on the hard drive. For performance reasons, it would be much better if ffmpeg could temporarily store this file in memory, which can be used in my C # program. After running my WAV program, the file is no longer needed.
So, the actual question is: can I redirect the output file from the program to memory? And if possible, how can I read this in C #?
I know this is a long shot, and I very much doubt it, if possible, but I can always ask ...
Thanks in advance.
source
share