Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I wish to create a simple tool to open a video file ( for example an AVI, or wmv file) and allow user to edit the video file.

 

For example the user should be able to mark different portions of video and copy it to new video. So that the new movie file contains the selected parts only.

 

I read that DirectShow editing service allow us to do the job.

have modified the sample code http://msdn.microsoft.com/en-us/library/ms787592(VS.85).aspx and no luck so far. I think i am missing something, since my knowledge in DirectX and grphics is very poor, I cant figure it out.

 

I added the following lines to get the splitable interface

 

IAMTimelineSplittable *pSplittable = NULL;

HRESULT hr = pSourceObj->QueryInterface(IID_IAMTimelineSplittable, (void **)&pSplittable);

 

and called the SplitAt function to split time line

 

hr = pSplittable->SplitAt2(5);

 

All thease function return success ( S_OK) and then i render the Timeline to file, it is same as the orginal file. No Splits actually happened.

Why? Any idea

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...