Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, October 12, 2011 11:46:24 PM(UTC)
Feinfinger

Groups: Registered
Posts: 7


Hallo,

i would like to change the quality settings of the mj2k encoder with the "LMMJ2KEncoderLib.LMMJ2KEncoder" class but how can i commit the changes i made in this class ?

VS2005/c#/LT17

LMMJ2KEncoderLib.LMMJ2KEncoder EC2k = new LMMJ2KEncoderLib.LMMJ2KEncoder();
                            EC2k.CompressionRatio = 45;
                            CC.VideoCaptureSizes[CalcVS].Selected = true;
                            CC.FrameRate = CalcFrameRate;
                            CC.VideoCompressors.MJ2k.Selected = true;
                            Application.DoEvents();
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, October 13, 2011 5:33:26 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

If you mean that you want to change the properties of the LEAD MJ2K encoder, you can use the captureCtrl1.GetSubObject() Method as follows:
+---------+
LMMJ2KEncoderLib.LMMJ2KEncoder EC2k = new LMMJ2KEncoderLib.LMMJ2KEncoder();
...
captureCtrl1.VideoCompressors.MJ2k.Selected = true;            

EC2k = captureCtrl1.GetSubObject(Leadtools.Multimedia.CaptureObject.VideoCompressor) as LMMJ2KEncoderLib.LMMJ2KEncoder;
EC2k.CompressionRatio = 45;

captureCtrl1.FrameRate = 5;
captureCtrl1.StartCapture(Leadtools.Multimedia.CaptureMode.VideoOrAudio);
...
+---------+

If you mean something else, please provide me with more details about your requirements.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Thursday, October 13, 2011 6:48:55 AM(UTC)
Feinfinger

Groups: Registered
Posts: 7


Thank you, this is how it works !
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.055 seconds.