FFMpegCore icon indicating copy to clipboard operation
FFMpegCore copied to clipboard

Can't convert from .avi to .mp4

Open thatwickguy opened this issue 6 years ago • 2 comments

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;

thatwickguy avatar Sep 03 '20 15:09 thatwickguy

Did you seek the memorystream to index 0 from the beginning before passing it into the StreamPipeSink ctor?

rosenbjerg avatar Oct 24 '20 16:10 rosenbjerg

Closing due to inactivity

rosenbjerg avatar Dec 03 '20 17:12 rosenbjerg