LEADTOOLS Support
Multimedia
Multimedia SDK Questions
Re: Unexpected error on using ltmmCapture_Mode_VideoAndAudio
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, November 3, 2006 2:36:00 AM(UTC)
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
#2
Posted
:
Sunday, November 5, 2006 4:41:02 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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.
#3
Posted
:
Sunday, November 5, 2006 6:40:24 PM(UTC)
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)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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.
LEADTOOLS Support
Multimedia
Multimedia SDK Questions
Re: Unexpected error on using ltmmCapture_Mode_VideoAndAudio
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.