开发者

Clipping video in Directshow

I need to clip a video into smaller videos( of same format) of t开发者_如何学编程he same size.I am using Directshow .I have been able to extract frames from the video but I am not sure how to proceed with extracting video from the file .Could someone help me with this ?


First, I'm not sure about creating smaller clips of the same size. I assume you mean that you want shorter clips of the same dimension. If you are happy to start at the nearest preceding key frame, then you don't want to decompress it and recompress it. So in this case, I would connect the demux filter to a mux and then a file writer. You should be able to use IMediaSeeking (on the mux, or possibly the demux output pins) to select the right segment.

G

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜