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 : Friday, November 3, 2006 2:36:00 AM(UTC)

Neelima  
Neelima

Groups: Registered
Posts: 2


Hi

When I am trying to capture on using ltmmCapture_Mode_Video, it is working fine.But on using ltmmCapture_Mode_VideoAndAudio or ltmmCapture_Mode_Audio mode I am getting "Unexpected error".I have set the audio compressor property as PCM ,selected an audio device and have set the video input property as "Video Composite".Where have I gone wrong?

Regards

 

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 : Sunday, November 5, 2006 4:41:02 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


Neelima,
Please close your project and run one of the capture demos that ship with the toolkit such as "VB Multimedia Capture". Does it have more than one device under the Options => Audio Devices menu? If yes, please try all the listed devices to see if any of them works with our demo or not.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Sunday, November 5, 2006 6:40:24 PM(UTC)

Neelima  
Neelima

Groups: Registered
Posts: 2


Hi Amin,

It is working fine with your demo, but while I am using the same from code it fails.I would like to know what all properties have to set for audio?

 
#4 Posted : Monday, November 6, 2006 12:56:44 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


Neelima,
This is the minimum code needed to capture both audio and video. Please try it and if it works, add your own code on top of it. The object named Capture1 is a control of type LTMMLibCtl.ltmmCaptureCtrl:

Capture1.VideoDevices.Selection = 0
Capture1.AudioDevices.Selection = 0
Capture1.TargetFile = "c:\test.avi"
Capture1.TargetFormat = ltmmCapture_TargetFormat.ltmmCapture_TargetFormat_Avi
Capture1.StartCapture ltmmCapture_Mode_VideoAndAudio

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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-2020, Yet Another Forum.NET
This page was generated in 0.131 seconds.