secile / UsbCamera

C# source code for using usb camera and web camera in WinForms/WPF. With only single CSharp source code. No external library required.
MIT License
179 stars 55 forks source link

Expand camera image #11

Closed Elgamily closed 2 years ago

Elgamily commented 2 years ago

How to make the camera image size be the same size of the PictureBox?

secile commented 2 years ago

Hello, Thank you for your question.

You can specify camera image size by UsbCamera constructor 2nd parameter. But supported image size is depend on your camera hardware. You can know supported size by UsbCamera.GetVideoFormat( ).

To change image size same with PictureBox, you have to change bitmap size like this.

var org_bmp = camera.GetBitmap();
var new_bmp = new Bitmap(org_bmp, pictureBox1.Size);
Elgamily commented 2 years ago

There is some missing parts in the image of the camera that are not drawn.

On Tue, 1 Feb 2022 at 08:39 secile @.***> wrote:

Hello, Thank you for your question.

You can specify camera image size by UsbCamera constructor 2nd parameter. But supported image size is depend on your camera hardware. You can know supported size by UsbCamera.GetVideoFormat( ).

To change image size same with PictureBox, you have to change bitmap size like this.

var org_bmp = camera.GetBitmap();var new_bmp = new Bitmap(org_bmp, pictureBox1.Size);

— Reply to this email directly, view it on GitHub https://github.com/secile/UsbCamera/issues/11#issuecomment-1026552446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIEUGMQRLFBOVU2UV2JZDTUY6E4DANCNFSM5NGMMBDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

secile commented 2 years ago

I don't understand what problem happens. Please explain more detail and show me your code and image that has problem.

Elgamily commented 2 years ago

Hello,

Look at both photos the 1st photo is the photo that is created by the liberary and 2nd photo is the original photo. There is a difference between both of them. The photo that is created by the liberary doesn’t draw all of the pixels in the original photo. What should I do?

Best regards, Hassan Elgamily

On Fri, 4 Mar 2022 at 00:08 secile @.***> wrote:

I don't understand what problem happens. Please explain more detail and show me your code and image that has problem.

— Reply to this email directly, view it on GitHub https://github.com/secile/UsbCamera/issues/11#issuecomment-1058624769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIEUGODCJGTAHNVH3BIEHDU6FA47ANCNFSM5NGMMBDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

secile commented 2 years ago

Thank you for your reply. But, I think there is no attached photo file. Could you confirm it?

Elgamily commented 2 years ago

2B6EE2E0-F546-47F0-A218-BD40FC6535FC DE157032-184D-4027-AB59-A52478B3BFEB Sorry, these are the two photos.

secile commented 2 years ago

1st photo is the photo that is created by camera.GetBitmap()?
And 2nd photo is captured by another app (for example, Windows Camera app)?

secile commented 2 years ago

I think 2nd photo's aspect ratio is different from 1st photo. Could you check VideoFormat your camera supports? Execute below and let me know result.

// check format.
int cameraIndex = 0;
UsbCamera.VideoFormat[] formats = UsbCamera.GetVideoFormat(cameraIndex);
for(int i=0; i<formats.Length; i++) Console.WriteLine("{0}:{1}", i, formats[i]);
Elgamily commented 2 years ago

These are the results:

0:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={640, 480}, MinCroppingSize={640, 480}, MaxCroppingSize={640, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 480}, MaxOutputSize={640, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=24576000, MaxBitsPerSecond=147456000,

1:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={640, 480}, MinCroppingSize={640, 480}, MaxCroppingSize={640, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 480}, MaxOutputSize={640, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=24576000, MaxBitsPerSecond=147456000,

2:[Video], [YUY2], {Width=160, Height=120}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={160, 120}, MinCroppingSize={160, 120}, MaxCroppingSize={160, 120}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={160, 120}, MaxOutputSize={160, 120}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=1536000, MaxBitsPerSecond=9216000,

3:[Video], [YUY2], {Width=160, Height=120}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={160, 120}, MinCroppingSize={160, 120}, MaxCroppingSize={160, 120}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={160, 120}, MaxOutputSize={160, 120}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=1536000, MaxBitsPerSecond=9216000,

4:[Video], [YUY2], {Width=176, Height=144}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={176, 144}, MinCroppingSize={176, 144}, MaxCroppingSize={176, 144}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={176, 144}, MaxOutputSize={176, 144}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=2027520, MaxBitsPerSecond=12165120,

5:[Video], [YUY2], {Width=176, Height=144}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={176, 144}, MinCroppingSize={176, 144}, MaxCroppingSize={176, 144}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={176, 144}, MaxOutputSize={176, 144}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=2027520, MaxBitsPerSecond=12165120,

6:[Video], [YUY2], {Width=320, Height=176}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={320, 176}, MinCroppingSize={320, 176}, MaxCroppingSize={320, 176}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 176}, MaxOutputSize={320, 176}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=4505600, MaxBitsPerSecond=27033600,

7:[Video], [YUY2], {Width=320, Height=176}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={320, 176}, MinCroppingSize={320, 176}, MaxCroppingSize={320, 176}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 176}, MaxOutputSize={320, 176}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=4505600, MaxBitsPerSecond=27033600,

8:[Video], [YUY2], {Width=320, Height=240}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={320, 240}, MinCroppingSize={320, 240}, MaxCroppingSize={320, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 240}, MaxOutputSize={320, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=6144000, MaxBitsPerSecond=36864000,

9:[Video], [YUY2], {Width=320, Height=240}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={320, 240}, MinCroppingSize={320, 240}, MaxCroppingSize={320, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 240}, MaxOutputSize={320, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=6144000, MaxBitsPerSecond=36864000,

10:[Video], [YUY2], {Width=352, Height=288}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={352, 288}, MinCroppingSize={352, 288}, MaxCroppingSize={352, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={352, 288}, MaxOutputSize={352, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8110080, MaxBitsPerSecond=48660480,

11:[Video], [YUY2], {Width=352, Height=288}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={352, 288}, MinCroppingSize={352, 288}, MaxCroppingSize={352, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={352, 288}, MaxOutputSize={352, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8110080, MaxBitsPerSecond=48660480,

12:[Video], [YUY2], {Width=432, Height=240}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={432, 240}, MinCroppingSize={432, 240}, MaxCroppingSize={432, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={432, 240}, MaxOutputSize={432, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8294400, MaxBitsPerSecond=49766400,

13:[Video], [YUY2], {Width=432, Height=240}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={432, 240}, MinCroppingSize={432, 240}, MaxCroppingSize={432, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={432, 240}, MaxOutputSize={432, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8294400, MaxBitsPerSecond=49766400,

14:[Video], [YUY2], {Width=544, Height=288}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={544, 288}, MinCroppingSize={544, 288}, MaxCroppingSize={544, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={544, 288}, MaxOutputSize={544, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=12533760, MaxBitsPerSecond=75202560,

15:[Video], [YUY2], {Width=544, Height=288}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={544, 288}, MinCroppingSize={544, 288}, MaxCroppingSize={544, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={544, 288}, MaxOutputSize={544, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=12533760, MaxBitsPerSecond=75202560,

16:[Video], [YUY2], {Width=640, Height=360}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={640, 360}, MinCroppingSize={640, 360}, MaxCroppingSize={640, 360}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 360}, MaxOutputSize={640, 360}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=18432000, MaxBitsPerSecond=110592000,

17:[Video], [YUY2], {Width=640, Height=360}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={640, 360}, MinCroppingSize={640, 360}, MaxCroppingSize={640, 360}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 360}, MaxOutputSize={640, 360}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=18432000, MaxBitsPerSecond=110592000,

18:[Video], [YUY2], {Width=752, Height=416}, 400000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={752, 416}, MinCroppingSize={752, 416}, MaxCroppingSize={752, 416}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={752, 416}, MaxOutputSize={752, 416}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=400000, MaxFrameInterval=2000000, MinBitsPerSecond=25026560, MaxBitsPerSecond=125132800,

19:[Video], [YUY2], {Width=752, Height=416}, 400000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={752, 416}, MinCroppingSize={752, 416}, MaxCroppingSize={752, 416}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={752, 416}, MaxOutputSize={752, 416}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=400000, MaxFrameInterval=2000000, MinBitsPerSecond=25026560, MaxBitsPerSecond=125132800,

20:[Video], [YUY2], {Width=800, Height=448}, 500000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={800, 448}, MinCroppingSize={800, 448}, MaxCroppingSize={800, 448}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 448}, MaxOutputSize={800, 448}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=28672000, MaxBitsPerSecond=114688000,

21:[Video], [YUY2], {Width=800, Height=448}, 500000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={800, 448}, MinCroppingSize={800, 448}, MaxCroppingSize={800, 448}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 448}, MaxOutputSize={800, 448}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=28672000, MaxBitsPerSecond=114688000,

22:[Video], [YUY2], {Width=800, Height=600}, 500000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={800, 600}, MinCroppingSize={800, 600}, MaxCroppingSize={800, 600}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 600}, MaxOutputSize={800, 600}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=38400000, MaxBitsPerSecond=153600000,

23:[Video], [YUY2], {Width=800, Height=600}, 500000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={800, 600}, MinCroppingSize={800, 600}, MaxCroppingSize={800, 600}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 600}, MaxOutputSize={800, 600}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=38400000, MaxBitsPerSecond=153600000,

24:[Video], [YUY2], {Width=864, Height=480}, 500000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={864, 480}, MinCroppingSize={864, 480}, MaxCroppingSize={864, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={864, 480}, MaxOutputSize={864, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=33177600, MaxBitsPerSecond=132710400,

25:[Video], [YUY2], {Width=864, Height=480}, 500000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={864, 480}, MinCroppingSize={864, 480}, MaxCroppingSize={864, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={864, 480}, MaxOutputSize={864, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=500000, MaxFrameInterval=2000000, MinBitsPerSecond=33177600, MaxBitsPerSecond=132710400,

26:[Video], [YUY2], {Width=960, Height=544}, 666666, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={960, 544}, MinCroppingSize={960, 544}, MaxCroppingSize={960, 544}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 544}, MaxOutputSize={960, 544}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=666666, MaxFrameInterval=2000000, MinBitsPerSecond=41779200, MaxBitsPerSecond=125337600,

27:[Video], [YUY2], {Width=960, Height=544}, 666666, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={960, 544}, MinCroppingSize={960, 544}, MaxCroppingSize={960, 544}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 544}, MaxOutputSize={960, 544}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=666666, MaxFrameInterval=2000000, MinBitsPerSecond=41779200, MaxBitsPerSecond=125337600,

28:[Video], [YUY2], {Width=960, Height=720}, 1000000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={960, 720}, MinCroppingSize={960, 720}, MaxCroppingSize={960, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 720}, MaxOutputSize={960, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=55296000, MaxBitsPerSecond=110592000,

29:[Video], [YUY2], {Width=960, Height=720}, 1000000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={960, 720}, MinCroppingSize={960, 720}, MaxCroppingSize={960, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 720}, MaxOutputSize={960, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=55296000, MaxBitsPerSecond=110592000,

30:[Video], [YUY2], {Width=1024, Height=576}, 1000000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1024, 576}, MinCroppingSize={1024, 576}, MaxCroppingSize={1024, 576}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1024, 576}, MaxOutputSize={1024, 576}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=47185920, MaxBitsPerSecond=94371840,

31:[Video], [YUY2], {Width=1024, Height=576}, 1000000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1024, 576}, MinCroppingSize={1024, 576}, MaxCroppingSize={1024, 576}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1024, 576}, MaxOutputSize={1024, 576}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=47185920, MaxBitsPerSecond=94371840,

32:[Video], [YUY2], {Width=1184, Height=656}, 1000000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1184, 656}, MinCroppingSize={1184, 656}, MaxCroppingSize={1184, 656}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1184, 656}, MaxOutputSize={1184, 656}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=62136320, MaxBitsPerSecond=124272640,

33:[Video], [YUY2], {Width=1184, Height=656}, 1000000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1184, 656}, MinCroppingSize={1184, 656}, MaxCroppingSize={1184, 656}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1184, 656}, MaxOutputSize={1184, 656}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1000000, MaxFrameInterval=2000000, MinBitsPerSecond=62136320, MaxBitsPerSecond=124272640,

34:[Video], [YUY2], {Width=1280, Height=720}, 2000000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1280, 720}, MinCroppingSize={1280, 720}, MaxCroppingSize={1280, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 720}, MaxOutputSize={1280, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1333333, MaxFrameInterval=2000000, MinBitsPerSecond=73728000, MaxBitsPerSecond=147456000,

35:[Video], [YUY2], {Width=1280, Height=720}, 2000000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1280, 720}, MinCroppingSize={1280, 720}, MaxCroppingSize={1280, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 720}, MaxOutputSize={1280, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1333333, MaxFrameInterval=2000000, MinBitsPerSecond=73728000, MaxBitsPerSecond=147456000,

36:[Video], [YUY2], {Width=1280, Height=960}, 2000000, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1280, 960}, MinCroppingSize={1280, 960}, MaxCroppingSize={1280, 960}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 960}, MaxOutputSize={1280, 960}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1333333, MaxFrameInterval=2000000, MinBitsPerSecond=98304000, MaxBitsPerSecond=196608000,

37:[Video], [YUY2], {Width=1280, Height=960}, 2000000, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1280, 960}, MinCroppingSize={1280, 960}, MaxCroppingSize={1280, 960}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 960}, MaxOutputSize={1280, 960}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=1333333, MaxFrameInterval=2000000, MinBitsPerSecond=98304000, MaxBitsPerSecond=196608000,

38:[Video], [MJPG], {Width=640, Height=480}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={640, 480}, MinCroppingSize={640, 480}, MaxCroppingSize={640, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 480}, MaxOutputSize={640, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=24576000, MaxBitsPerSecond=147456000,

39:[Video], [MJPG], {Width=640, Height=480}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={640, 480}, MinCroppingSize={640, 480}, MaxCroppingSize={640, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 480}, MaxOutputSize={640, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=24576000, MaxBitsPerSecond=147456000,

40:[Video], [MJPG], {Width=160, Height=120}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={160, 120}, MinCroppingSize={160, 120}, MaxCroppingSize={160, 120}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={160, 120}, MaxOutputSize={160, 120}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=1536000, MaxBitsPerSecond=9216000,

41:[Video], [MJPG], {Width=160, Height=120}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={160, 120}, MinCroppingSize={160, 120}, MaxCroppingSize={160, 120}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={160, 120}, MaxOutputSize={160, 120}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=1536000, MaxBitsPerSecond=9216000,

42:[Video], [MJPG], {Width=176, Height=144}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={176, 144}, MinCroppingSize={176, 144}, MaxCroppingSize={176, 144}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={176, 144}, MaxOutputSize={176, 144}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=2027520, MaxBitsPerSecond=12165120,

43:[Video], [MJPG], {Width=176, Height=144}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={176, 144}, MinCroppingSize={176, 144}, MaxCroppingSize={176, 144}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={176, 144}, MaxOutputSize={176, 144}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=2027520, MaxBitsPerSecond=12165120,

44:[Video], [MJPG], {Width=320, Height=176}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={320, 176}, MinCroppingSize={320, 176}, MaxCroppingSize={320, 176}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 176}, MaxOutputSize={320, 176}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=4505600, MaxBitsPerSecond=27033600,

45:[Video], [MJPG], {Width=320, Height=176}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={320, 176}, MinCroppingSize={320, 176}, MaxCroppingSize={320, 176}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 176}, MaxOutputSize={320, 176}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=4505600, MaxBitsPerSecond=27033600,

46:[Video], [MJPG], {Width=320, Height=240}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={320, 240}, MinCroppingSize={320, 240}, MaxCroppingSize={320, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 240}, MaxOutputSize={320, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=6144000, MaxBitsPerSecond=36864000,

47:[Video], [MJPG], {Width=320, Height=240}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={320, 240}, MinCroppingSize={320, 240}, MaxCroppingSize={320, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={320, 240}, MaxOutputSize={320, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=6144000, MaxBitsPerSecond=36864000,

48:[Video], [MJPG], {Width=352, Height=288}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={352, 288}, MinCroppingSize={352, 288}, MaxCroppingSize={352, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={352, 288}, MaxOutputSize={352, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8110080, MaxBitsPerSecond=48660480,

49:[Video], [MJPG], {Width=352, Height=288}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={352, 288}, MinCroppingSize={352, 288}, MaxCroppingSize={352, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={352, 288}, MaxOutputSize={352, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8110080, MaxBitsPerSecond=48660480,

50:[Video], [MJPG], {Width=432, Height=240}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={432, 240}, MinCroppingSize={432, 240}, MaxCroppingSize={432, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={432, 240}, MaxOutputSize={432, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8294400, MaxBitsPerSecond=49766400,

51:[Video], [MJPG], {Width=432, Height=240}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={432, 240}, MinCroppingSize={432, 240}, MaxCroppingSize={432, 240}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={432, 240}, MaxOutputSize={432, 240}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=8294400, MaxBitsPerSecond=49766400,

52:[Video], [MJPG], {Width=544, Height=288}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={544, 288}, MinCroppingSize={544, 288}, MaxCroppingSize={544, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={544, 288}, MaxOutputSize={544, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=12533760, MaxBitsPerSecond=75202560,

53:[Video], [MJPG], {Width=544, Height=288}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={544, 288}, MinCroppingSize={544, 288}, MaxCroppingSize={544, 288}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={544, 288}, MaxOutputSize={544, 288}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=12533760, MaxBitsPerSecond=75202560,

54:[Video], [MJPG], {Width=640, Height=360}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={640, 360}, MinCroppingSize={640, 360}, MaxCroppingSize={640, 360}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 360}, MaxOutputSize={640, 360}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=18432000, MaxBitsPerSecond=110592000,

55:[Video], [MJPG], {Width=640, Height=360}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={640, 360}, MinCroppingSize={640, 360}, MaxCroppingSize={640, 360}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={640, 360}, MaxOutputSize={640, 360}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=18432000, MaxBitsPerSecond=110592000,

56:[Video], [MJPG], {Width=752, Height=416}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={752, 416}, MinCroppingSize={752, 416}, MaxCroppingSize={752, 416}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={752, 416}, MaxOutputSize={752, 416}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=25026560, MaxBitsPerSecond=150159360,

57:[Video], [MJPG], {Width=752, Height=416}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={752, 416}, MinCroppingSize={752, 416}, MaxCroppingSize={752, 416}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={752, 416}, MaxOutputSize={752, 416}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=25026560, MaxBitsPerSecond=150159360,

58:[Video], [MJPG], {Width=800, Height=448}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={800, 448}, MinCroppingSize={800, 448}, MaxCroppingSize={800, 448}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 448}, MaxOutputSize={800, 448}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=28672000, MaxBitsPerSecond=172032000,

59:[Video], [MJPG], {Width=800, Height=448}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={800, 448}, MinCroppingSize={800, 448}, MaxCroppingSize={800, 448}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 448}, MaxOutputSize={800, 448}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=28672000, MaxBitsPerSecond=172032000,

60:[Video], [MJPG], {Width=800, Height=600}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={800, 600}, MinCroppingSize={800, 600}, MaxCroppingSize={800, 600}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 600}, MaxOutputSize={800, 600}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=38400000, MaxBitsPerSecond=230400000,

61:[Video], [MJPG], {Width=800, Height=600}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={800, 600}, MinCroppingSize={800, 600}, MaxCroppingSize={800, 600}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={800, 600}, MaxOutputSize={800, 600}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=38400000, MaxBitsPerSecond=230400000,

62:[Video], [MJPG], {Width=864, Height=480}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={864, 480}, MinCroppingSize={864, 480}, MaxCroppingSize={864, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={864, 480}, MaxOutputSize={864, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=33177600, MaxBitsPerSecond=199065600,

63:[Video], [MJPG], {Width=864, Height=480}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={864, 480}, MinCroppingSize={864, 480}, MaxCroppingSize={864, 480}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={864, 480}, MaxOutputSize={864, 480}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=33177600, MaxBitsPerSecond=199065600,

64:[Video], [MJPG], {Width=960, Height=544}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={960, 544}, MinCroppingSize={960, 544}, MaxCroppingSize={960, 544}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 544}, MaxOutputSize={960, 544}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=41779200, MaxBitsPerSecond=250675200,

65:[Video], [MJPG], {Width=960, Height=544}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={960, 544}, MinCroppingSize={960, 544}, MaxCroppingSize={960, 544}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 544}, MaxOutputSize={960, 544}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=41779200, MaxBitsPerSecond=250675200,

66:[Video], [MJPG], {Width=960, Height=720}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={960, 720}, MinCroppingSize={960, 720}, MaxCroppingSize={960, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 720}, MaxOutputSize={960, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=55296000, MaxBitsPerSecond=331776000,

67:[Video], [MJPG], {Width=960, Height=720}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={960, 720}, MinCroppingSize={960, 720}, MaxCroppingSize={960, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={960, 720}, MaxOutputSize={960, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=55296000, MaxBitsPerSecond=331776000,

68:[Video], [MJPG], {Width=1024, Height=576}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1024, 576}, MinCroppingSize={1024, 576}, MaxCroppingSize={1024, 576}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1024, 576}, MaxOutputSize={1024, 576}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=47185920, MaxBitsPerSecond=283115520,

69:[Video], [MJPG], {Width=1024, Height=576}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1024, 576}, MinCroppingSize={1024, 576}, MaxCroppingSize={1024, 576}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1024, 576}, MaxOutputSize={1024, 576}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=47185920, MaxBitsPerSecond=283115520,

70:[Video], [MJPG], {Width=1184, Height=656}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1184, 656}, MinCroppingSize={1184, 656}, MaxCroppingSize={1184, 656}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1184, 656}, MaxOutputSize={1184, 656}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=62136320, MaxBitsPerSecond=372817920,

71:[Video], [MJPG], {Width=1184, Height=656}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1184, 656}, MinCroppingSize={1184, 656}, MaxCroppingSize={1184, 656}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1184, 656}, MaxOutputSize={1184, 656}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=62136320, MaxBitsPerSecond=372817920,

72:[Video], [MJPG], {Width=1280, Height=720}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1280, 720}, MinCroppingSize={1280, 720}, MaxCroppingSize={1280, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 720}, MaxOutputSize={1280, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=73728000, MaxBitsPerSecond=442368000,

73:[Video], [MJPG], {Width=1280, Height=720}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1280, 720}, MinCroppingSize={1280, 720}, MaxCroppingSize={1280, 720}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 720}, MaxOutputSize={1280, 720}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=73728000, MaxBitsPerSecond=442368000,

74:[Video], [MJPG], {Width=1280, Height=960}, 333333, [VideoInfo], Guid=05589f80-c356-11ce-bf01-00aa0055595a, VideoStandard=0, InputSize={1280, 960}, MinCroppingSize={1280, 960}, MaxCroppingSize={1280, 960}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 960}, MaxOutputSize={1280, 960}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=98304000, MaxBitsPerSecond=589824000,

75:[Video], [MJPG], {Width=1280, Height=960}, 333333, [VideoInfo2], Guid=f72a76a0-eb0a-11d0-ace4-0000c0cc16ba, VideoStandard=0, InputSize={1280, 960}, MinCroppingSize={1280, 960}, MaxCroppingSize={1280, 960}, CropGranularityX=1, CropGranularityY=1, CropAlignX=1, CropAlignY=1, MinOutputSize={1280, 960}, MaxOutputSize={1280, 960}, OutputGranularityX=1, OutputGranularityY=1, StretchTapsX=0, StretchTapsY=0, ShrinkTapsX=0, ShrinkTapsY=0, MinFrameInterval=333333, MaxFrameInterval=2000000, MinBitsPerSecond=98304000, MaxBitsPerSecond=589824000,

On Fri, 4 Mar 2022 at 16:51 secile @.***> wrote:

I think 2nd photo's aspect ratio is different from 1st photo. Could you check VideoFormat your camera supports? Execute below and let me know result.

// check format.int cameraIndex = 0;UsbCamera.VideoFormat[] formats = UsbCamera.GetVideoFormat(cameraIndex);for(int i=0; i<formats.Length; i++) Console.WriteLine("{0}:{1}", i, formats[i]);

— Reply to this email directly, view it on GitHub https://github.com/secile/UsbCamera/issues/11#issuecomment-1059281294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIEUGKFL3HLJPGV234XA3TU6IWPZANCNFSM5NGMMBDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

secile commented 2 years ago

How did you create UsbCamera class? According to your photo1, photo1's asspect ratio might be 4:3, so you might choose 640x480? If so, you might create UsbCamera class like this?

var camera = new UsbCamera(cameraIndex, formats[0]);

photo2' aspect ratio may be 16:9, so you have to choose VideoFormat of 16:9. For example formats[32] size is 1280x720. Please test below.

var camera = new UsbCamera(cameraIndex, formats[34]);
secile commented 2 years ago

Please choose your most appropriate video format.

0:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo],
1:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo2],
2:[Video], [YUY2], {Width=160, Height=120}, 333333, [VideoInfo],
3:[Video], [YUY2], {Width=160, Height=120}, 333333, [VideoInfo2],
...
34:[Video], [YUY2], {Width=1280, Height=720}, 2000000, [VideoInfo],
35:[Video], [YUY2], {Width=1280, Height=720}, 2000000, [VideoInfo2],
...
74:[Video], [MJPG], {Width=1280, Height=960}, 333333, [VideoInfo],
75:[Video], [MJPG], {Width=1280, Height=960}, 333333, [VideoInfo2],

VideoFormat has a lot of information, but what you are interested in may be size. For now, please ignore [YUY2] or [MJPG], and [VideoInfo] or [VideoInfo2]. If you don't know, choose [YUY2] and [VideoInfo].

Elgamily commented 2 years ago

I’m using the first result (0:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo]), but as you can see in the screenshots that show you before, the pictures are not identical.

On Mon, 7 Mar 2022 at 16:03 secile @.***> wrote:

Please choose your most appropriate video format.

0:[Video], [YUY2], {Width=640, Height=480}, 333333, [VideoInfo]

VideoFormat has a lot of information, but what you are interested in is size. Please ignore [YUY2] or [MJPG], and [VideoInfo] or [VideoInfo2]. For now, choose [YUY2] and [VideoInfo].

— Reply to this email directly, view it on GitHub https://github.com/secile/UsbCamera/issues/11#issuecomment-1060782746, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIEUGNQYAONWOSNVVZA35LU6YLCJANCNFSM5NGMMBDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

secile commented 2 years ago

Did you read my two previous messages? Are you try below?

var camera = new UsbCamera(cameraIndex, formats[34]);

I think your problem's reason is difference of aspect rate. If this is not the solution of your problem, I have nothing any other idea.

Elgamily commented 2 years ago

It’s working after trying this. Many thanks for your help.

On Tue, 8 Mar 2022 at 03:08 secile @.***> wrote:

Did you read my two previous messages? Are you try below?

var camera = new UsbCamera(cameraIndex, formats[34]);

I think your problem's reason is difference of aspect rate. If this is not the solution of your problem, I have nothing any other idea.

— Reply to this email directly, view it on GitHub https://github.com/secile/UsbCamera/issues/11#issuecomment-1061332250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIEUGLZV2HKM5WBXVQAIVDU62ZA5ANCNFSM5NGMMBDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

secile commented 2 years ago

It is very nice. thank you.