CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2010

    Cropping Video in Directshow

    I want to crop a video(.wmv) into smaller equally sized videos.I 've been trying to search a lot on google and this forum but havent found much that would help.I Am pretty sure there must be code to clip video into pieces .Could anyone help me with this?
    I am using Directshow and till now I have written code to extract frames from .wmv file.

  2. #2
    Join Date
    Oct 2005

    Re: Cropping Video in Directshow

    Hi rty,

    Need some more information,

    What format are the frames?
    What do you want to do with the video once the frame(s) are cropped into pieces?

    Learning somthing new every day!

  3. #3
    Join Date
    Jun 2010

    Re: Cropping Video in Directshow

    Thanks for replying.I want to crop a video into smaller portions( a given .AVI file broken down in smaller .AVI files).Till now ( from what I could get off the internet) I am doing the following :
    Source(Async Reaer)->AVI splitter->AVI mux->File Writer .
    When I query the output pins of AVI splitter I get only one pin and I use IMediaSeeking on this .The results give me S_OK but the video is not clipped( entire video is rewritten) .If you want I can paste the code.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.