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
 RenderVideo in memory
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

r.federiconi

Italy
6 Posts

Posted - Jan 25 2013 :  03:03:40  Show Profile  Reply
if I set RenderVideo and GetVideoRenderNativeSize this mode It’s required to set also FileOutput unfortunally.. I would like use VMR mode without capure the video in a file.. is it possible?

with ImageEnView1.IO.DShowParams do
begin
Disconnect;
w := VideoFormats[comboboxVideoFormat.ItemIndex].MaxWidth;
h := VideoFormats[comboboxVideoFormat.ItemIndex].MaxHeight;
SetVideoInput(comboboxVideoDevice.ItemIndex, 0, w, h); // set the second parameter if you have more than one camera with same name
// enable video and audio rendering
RenderVideo := true;
// set output file
FileOutput := “c:\video.avi”;
// connect to the video input
Connect;
GetVideoRenderNativeSize(w, h);
ImageEnView1.Proc.ImageResize(w, h);
Run;
end

fab

1310 Posts

Posted - Jan 28 2013 :  04:09:04  Show Profile  Reply
Next version will have a new property in DShowParams (CaptureMode) which enables VMR also when FileOutput is empty.
You can try it now, just opening ieds.pas and in TIEDirectShow.StdConnect replace:

fBuilder.RenderStream(@PIN_CATEGORY_CAPTURE, @MEDIATYPE_Video, fCurVideoInput, inter, ppf);

with

fBuilder.RenderStream(@PIN_CATEGORY_PREVIEW, @MEDIATYPE_Video, fCurVideoInput, inter, ppf);
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: