This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
Groups: Registered
Posts: 10
I am usig FLV_H263 to capture. I am trying to control the encoder ie bitrate. But the LMH263 seems not to control this encoder. Here is the code I am using in VB .net
AxltmmCaptureCtrl1.TargetFormat = LTMMLib.ltmmCapture_TargetFormat.ltmmCapture_TargetFormat_FLV_H263
Dim H3 As New LMH263Encoder
H3.UseQuality = False
H3.UsePredefinedBitrate = False
H3.CustomBitrate = 30000
AxltmmCaptureCtrl1.TargetFile = "c:\mgepstream1.flv"
Groups: Registered
Posts: 10
Why can't I use TargetFormat_FLV_H263 in Capture.exe?
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Declaring an instance of encoder does not make our ltmmCapture control use that encoder. You should not use any compressors with the FLV H263 format because LEADTOOLS will automatically set the audio and video compressors for this format.
Groups: Registered
Posts: 10
I did it that way, because, one of LEADTOOLS, support persons sent me an example and that is what was in the example.
What Should I use?
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Bill,
I found the ticket in which you discussed this with Jigar.
In the code that Jigar sent you, he did NOT declare a new instance of the encoder.
Instead, he retrieved the encoder already inserted by our control using ltmmCapture.GetSubObject().
Using Jigar's approach, you should be able to control encoder settings.
Groups: Registered
Posts: 10
I have moved my post to here as you asked...
I have now tried it several ways.....including ltmmCapture.GetSubObject(), but I can not change FPS or Bitrate.
I might be doing something wrong with ltmmCapture.GetSubObject().
Can you send me a link ot n example of GetSubObject.?
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Here's a link to a sample code:
http://www.leadtools.com/Help/LEADTOOLS/v16/multimedia/com/Ocx_vbt/DirectlyAccesstheDirectShowObjectsExVB.htm
Or you can find it in the help topic 'Directly Access the DirectShow Objects (Visual Basic)' in our Multimedia COM help file.
If you want to see how to set the BitRate with GetSubObject() Method, please see the sample code in this page:
http://www.leadtools.com/Help/LEADTOOLS/v15/multimedia/com/Video_Conferencing/A_Complete_Example_Server_and_Client.htm
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.