Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: VideoConference: save photo and video
Started by ShodawN at 07-22-2008 11:03. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  07-22-2008, 11:03
ShodawN is not online. Last active: 7/16/2008 11:50:47 AM ShodawN

Top 500 Posts
Joined on 07-15-2008
Posts 11
VideoConference: save photo and video
Reply Quote
Hello,

I'm developing a videoconference application and i want to save (photo and video) on server and cliente sides.

I use ltmmCaptureCtrl to capture and send over the network.
   · Save video: ltmmConvertCtrl connected to ltmmCaptureCtrl.
   · Save photo: using callback.

And I use ltmmPlayCtrl to play data receiced over the network:
   · Save video: Retrieve lmNetDmx and set outputfilename property.
   · Save photo: using callback.

The problem of using callbacks is the performance. The callback lacks booth sending and receiving data.

How can i take photo and video when i'm on a videoconference without connection lost?

Thank you

   Report 
  07-22-2008, 11:18
jigar is not online. Last active: 12/12/2008 5:08:42 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 480
Re: VideoConference: save photo and video
Reply Quote
You can use the SaveStillDIB() or the SaveStillBitmap() method.  When are you taking a photo?  Is it on certain intervals or when the user presses a button?

LEADTOOLS Technical Support
   Report 
  07-22-2008, 17:24
ShodawN is not online. Last active: 7/16/2008 11:50:47 AM ShodawN

Top 500 Posts
Joined on 07-15-2008
Posts 11
Re: VideoConference: save photo and video
Reply Quote
Hello,

I had two questions ;P

===
Snapshot:
When i'm receiving or playing a video, i can use SaveStillDIB.
But when i'm sending or in preview mode i can't use it (bat state exception).
If i use a callback, when i'm creating a video file (avi) my cpu raise to 100% and get frame lost.
How can i take a snapshot in preview mode? and in capture mode?
===

===
Create avi :
ltmmCaptureCtrl State:
   · Preview: I use the TargetFile property.
   · Capture (Sending over network): I use new ltmmConvertCtrl to save the avi file

ltmmPlayCtrl:
   · Play (playing avi or receiving over network): I get the lmNetDmx object of the ltmmPlayCtrl and set the outputfilename property to save the avi file.

I'm doing rigth? there is another way to make it?
===

Thank you


   Report 
  07-23-2008, 17:39
jigar is not online. Last active: 12/12/2008 5:08:42 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 480
Re: VideoConference: save photo and video
Reply Quote
While capturing, you have to switch to STILL mode, which means you have to stop and start the capture.  While in preview mode, try changning the PreviewTap property to ltmmCapture_PreviewTap_Source.
LEADTOOLS Technical Support
   Report 
  07-28-2008, 6:02
ShodawN is not online. Last active: 7/16/2008 11:50:47 AM ShodawN

Top 500 Posts
Joined on 07-15-2008
Posts 11
Re: VideoConference: save photo and video
Reply Quote
Hello,

I try to se the PreviewTap property to ltmmCapture_PreviewTap_Source, but i have a state exception when i call to SaveStillDIB method.

When i'm capturing an avi file, i can stop and star capture in still mode to take the photo, but i need only one avi file.
Is there a way to take a photo when i'm creating one avi file?

Thank you

   Report 
  08-04-2008, 11:13
jigar is not online. Last active: 12/12/2008 5:08:42 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 480
Re: VideoConference: save photo and video
Reply Quote
In the capture control you will have to use the callback if you can't stop and start it.  So are you keeping the callback filter hooked to the control all the time or are you only hooking it when you need to take a snapshot?

From a couple posts back you mention using ltmmConvertCtrl.  Are you hooking the callback to that?  For the ltmmConvertCtrl you can just call the SaveStill methods.

LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Multimedia » Re: VideoConference: save photo and video

Powered by Community Server, by Telligent Systems