I have 100 jpegs.
I use ffmpeg to encode to a video file which is written to a hard drive.
Is there a way to pipe it directly to a byte/stream?
I am using C# and I am using the process class to initate ffmpeg.
Thanks
I have 100 jpegs.
I use ffmpeg to encode to a video file which is written to a hard drive.
Is there a way to pipe it directly to a byte/stream?
I am using C# and I am using the process class to initate ffmpeg.
Thanks
Instead of running ffmpeg process you should directly access ffmpeg library from your code. For example, check out AForge.Net. Among other things it has a ffmpeg managed wrapper. You are intersted in
AForge.Video.FFMPEG.VideoFileWriter
class, which does exactly that - writes images to video file stream using specified encoder. See online documentation for details.I have found this post few weeks ago when I was looking for answer for my problem. I tried to start ffmpeg process and pass arguments to it but it take sooo long to do everything. At this point I use Xabe.FFmpeg as it doing this out of the box and don't have to worry about ffmpeg executables because have feature to download latest version.
in case anyone wanted to know. Adding '-' at the end of the arguments will redirect the stream to standard output which can be caught if you subscribe to the OutputDataReceived event of the process class.