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
 Save To Mpeg File
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
159 Posts

Posted - Sep 28 2015 :  16:43:36  Show Profile  Reply
Just starting out with IEVision, how do I save the video stream to a file in mpeg format ?


  if bCapture.Caption = 'Capture' then begin
    fVideoInput.ShowModal;
    bCapture.Caption:= 'Stop';
    fVideoInput.Connect;
    // show info
    iView.IO.DShowParams.GetCurrentVideoFormat(w, h, f);
    Label4.Caption := Format('Capturing at %dx%d %s', [w, h, f]);
    // start capture
    iView.IO.DShowParams.FileOutput:= 'D:\test.mpg';
    iView.IO.DShowParams.Run;
  end else begin
    bCapture.Caption:= 'Capture';
    fVideoInput.Disconnect;
  end;

...

procedure TfMain.iViewDShowNewFrame(Sender: TObject);
begin
  iView.IO.DShowParams.GetSample(iView.IEBitmap);
  iView.Update;
end;



Andy

xequte

39061 Posts

Posted - Sep 28 2015 :  23:48:10  Show Profile  Reply
Hi Andy

To output DirectShow in MPEG format you would need to have an MPEG Directshow filter installed.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

andyhill

Australia
159 Posts

Posted - Sep 29 2015 :  03:08:53  Show Profile  Reply
OK, but no where on this forum does it show how, please show in code how to accomplish this - thanks.

Andy
Go to Top of Page

xequte

39061 Posts

Posted - Sep 29 2015 :  03:36:07  Show Profile  Reply
Hi Andy

This is not something that you can do in code. ImageEn cannot modify your DirectShow configuration, only use it as configured. IOW, you would need to install the DirectShow filter manually.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

andyhill

Australia
159 Posts

Posted - Sep 30 2015 :  02:07:34  Show Profile  Reply
Nigel, I am asking for help.

Please advise URL for download filters -or- steps to get mpeg recording up and running using your IEVision.

Andy
Go to Top of Page

xequte

39061 Posts

Posted - Sep 30 2015 :  03:34:34  Show Profile  Reply
Hi Andy

I have not tested any of these, but a number come up on Google:

https://www.google.com/search?q=mpeg+directshow+filter


Also, please note that our DirectShow support is ImageEn rather than IEVision (to avoid confusing others reading this thread).


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: