Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Simultaneous Image and Video capture
Started by Qasem Lubani at 09-09-2008 8:27. Topic has 19 replies.

Print Search « Previous Thread Next Thread »
  09-09-2008, 8:27
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Simultaneous Image and Video capture
Reply Quote

The RasterImageFormat.Jpeg is the same as StillFormat_JPEG444
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  10-20-2008, 0:12
roadman is not online. Last active: 12/12/2008 4:56:50 AM roadman

Top 25 Posts
Joined on 06-27-2007
Posts 104
Re: Simultaneous Image and Video capture
Reply Quote

Hi Qasem,

I found that the size of output from RasterImageFormat.Jpeg(using video callback filter) & StillFormat_JPEG444 (using playback Ctrl) are not the same. Can you advise?

Video CallBack Filter
 RasterViewPerspective viewPerspective;
   try
   {
                if (!Session.captureMode || inCapturingStillImage)
                {
                    return;
                }

                if (bTopDown == 1)
                    viewPerspective = RasterViewPerspective.TopLeft;
                else
                    viewPerspective = RasterViewPerspective.BottomLeft;

                image = new RasterImage(
                    RasterMemoryFlags.User,
                    lWidth,
                    lHeight,
                    lBitCount,
                    RasterByteOrder.Bgr,
                    viewPerspective,
                    null,
                    IntPtr.Zero,
               0);
                image.SetUserData(new IntPtr(pData), lSize);

                codecs = new RasterCodecs();
                codecs.Save(image.Clone(), "abc.jpg",  RasterImageFormat.Jpeg, 24);
                inCapturingStillImage = false;
   }
   catch(System.Exception ex)
   {
                throw new Exception(ex.Message);
   }
            System.Windows.Forms.Application.DoEvents();
  }

 

Playback Control
axltmmPlayCtrl.SaveStillBitmap("abc.jpg", (int)LTMMLib.ltmmPlay_StillFormat.ltmmPlay_StillFormat_JPEG444, 2, 0, 1000);

 

The output file from video capture are follows:
640*480, 150*150 dpi, 24 bits = 218 KB

The output file from playback ctrl are follows:
640*480, 96*96 dpi, 24 bits = 304KB

 

How can get the same quality and size from two methods?


   Report 
  10-20-2008, 8:15
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Simultaneous Image and Video capture
Reply Quote

Try to set the Quality factor for the JPEG image prior to saving using the .NET code using:

codecs.Options.Jpeg.Save.QualityFactor = 2// or any other value(2-255);
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  12-12-2008, 0:02
roadman is not online. Last active: 12/12/2008 4:56:50 AM roadman

Top 25 Posts
Joined on 06-27-2007
Posts 104
Re: Simultaneous Image and Video capture
Reply Quote
I found the performance using the Video CallBack Filter (LEAD Video Callback Filter (2.0)) is is very poor when the capture size above 600 x XXX.

Would you please kindly advise any improvement on it?
   Report 
  12-12-2008, 2:52
roadman is not online. Last active: 12/12/2008 4:56:50 AM roadman

Top 25 Posts
Joined on 06-27-2007
Posts 104
Re: Simultaneous Image and Video capture
Reply Quote
The proble is due to the compressor, not the video callback. I will submit another post later. thanks
   Report 
Post
 Page 2 of 2 (20 items) « 1 2
LEAD Support Fo... » Enduser » Capture & Conve... » Re: Simultaneous Image and Video capture

Powered by Community Server, by Telligent Systems