Recording-video-with-c- icon indicating copy to clipboard operation
Recording-video-with-c- copied to clipboard

Error: Bitmap size must be the same as video size

Open syszone opened this issue 6 years ago • 2 comments

I'm getting this error "Bitmap size must be the same as video size, which was specified on opening video file" when I try to start recording.

syszone avatar Sep 05 '18 09:09 syszone

Hi syszone - not sure you still need the answer to this, but it may be useful for others that come across this issue:

You can fix this by changing this line: _writer.Open(dialog.FileName, (int)Math.Round(Image.Width, 0), (int)Math.Round(Image.Height, 0));

to this: _writer.Open(dialog.FileName, Image.PixelWidth, Image.PixelHeight);

mfranchitti avatar Apr 08 '19 15:04 mfranchitti

@mfranchitti: thanks, it works

MohamedBenSfar avatar Jul 22 '20 19:07 MohamedBenSfar