ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 problems with s-video connection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Paruyr

Canada
14 Posts

Posted - Nov 19 2012 :  07:23:17  Show Profile  Reply
Hello

imageen 4.1.0
Delphi 7

We are having problem with s-video connection when try to show the video coming in from the camera connected to our computer with s-video cable. We use TImageenview component. When we try to switch to that s-video source it hangs and then the whole system crashes ad computer starts rebooting.
The same thing happens when we try the demo applications which come with imnageen installation.
Can anyone advice please ?

Thank you,
Paruyr.

Paruyr

Ronald

Netherlands
17 Posts

Posted - Nov 20 2012 :  11:53:17  Show Profile  Reply
Hi,

ImageEn is a wonderful product. however, for video handling, you may want to have a look at DSPack, which is siuted for video.

http://code.google.com/p/dspack/downloads/list

Regards, Ronald
Go to Top of Page

fab

1310 Posts

Posted - Nov 23 2012 :  10:49:43  Show Profile  Reply
How do you switch to the s-video source? Are you using DirectShow examples?
Go to Top of Page

Paruyr

Canada
14 Posts

Posted - Nov 26 2012 :  07:33:03  Show Profile  Reply
I am getting the list using ...IO.DShowParams.VideoInputs
and then ...IO.DShowParams.SetVideoInput to setup the input.

Paruyr
Go to Top of Page

fab

1310 Posts

Posted - Dec 03 2012 :  00:44:00  Show Profile  Reply
Please could you post the code?
Go to Top of Page

Paruyr

Canada
14 Posts

Posted - Dec 03 2012 :  12:16:14  Show Profile  Reply
Thank you for helping me, fabrizio

here is the code:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ieview, imageenview;

type
TForm1 = class(TForm)
ImageEnView1: TImageEnView;
ComboBox1: TComboBox;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure ImageEnView1DShowNewFrame(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
{ load video input list }
combobox1.items := imageenview1.IO.DShowParams.VideoInputs;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
{ activate vidoe for selected surce }
imageenview1.IO.DShowParams.Disconnect;
imageenview1.IO.DShowParams.SetVideoInput(combobox1.itemindex);
imageenview1.IO.DShowParams.EnableSampleGrabber := true;
imageenview1.IO.DShowParams.RenderAudio := true;
imageenview1.IO.DShowParams.Connect;
imageenview1.IO.DShowParams.Run;
end;

procedure TForm1.ImageEnView1DShowNewFrame(Sender: TObject);
begin
{show frame }
with (Sender as timageenview)
do begin
IO.DShowParams.GetSample(IEBitmap);
Update;
end;
end;

end.


Paruyr
Go to Top of Page

fab

1310 Posts

Posted - Dec 14 2012 :  04:10:52  Show Profile  Reply
Hi,
first parameter of SetVideoInput should be the capture card. The second (optional) parameter specifies the actual input of that card. Please try to execute:

imageenview1.IO.DShowParams.SetVideoInput(combobox1.itemindex, 1);

or

imageenview1.IO.DShowParams.SetVideoInput(combobox1.itemindex, 2);

etc...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: