If you use Windows, then to cut and remove part of the video out of the whole video you better use DirectShow technology.
you can read about DirectShow...For example about a filters of DirectShow....
I think it will be helpful to you
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375454%28v=vs.85%29.aspx[
^]
http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/thread/ca127590-a35f-4928-a75f-785b4a4cae0f[
^]
DirectShow (sometimes abbreviated as DS or DShow), codename Quartz, is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams. It is the replacement for Microsoft's earlier Video for Windows technology.[1] Based on the Microsoft Windows Component Object Model (COM) framework, DirectShow provides a common interface for media across various programming languages, and is an extensible, filter-based framework that can render or record media files on demand at the request of the user or developer. The DirectShow development tools and documentation were originally distributed as part of the DirectX SDK.
Regards,
Alex.