Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectShow Editing

Status
Not open for further replies.

AnilkumarKV

Programmer
Jun 25, 2008
1
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.

i have modified the sample code 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



Thanks
Anil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top