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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 RenderVideo in memory

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
r.federiconi Posted - Jan 25 2013 : 03:03:40
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
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jan 28 2013 : 04:09:04
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);