FFMpegCore
FFMpegCore copied to clipboard
Can't convert from .avi to .mp4
Hi there. I have memory stream of video file and want to get stream again. readme.md seems to be outdated, and tests do not cover what i need. Any help is appreciated
var reader = new StreamPipeSink(memoryStream);
var writer = new RawVideoPipeSource(BitmapSource.CreateBitmaps(128, System.Drawing.Imaging.PixelFormat.Format24bppRgb, 128, 128));
FFMpegArguments
.FromPipe(writer)
.WithVideoCodec(VideoCodec.LibX264)
.ForceFormat("mp4")
.OutputToPipe(reader)
.ProcessSynchronously();
memory.Position = 0;
Did you seek the memorystream to index 0 from the beginning before passing it into the StreamPipeSink ctor?
Closing due to inactivity