使用 C#,
如何使用 DrirectShow 连接两个视频文件(.avi 文件)..?请帮忙!
以下代码仅用于解释问题...
VideoSpanCollection newList = new VideoSpanCollection();
int j;
for(int i=0; i<oldItems.Count; i = j)
{
for(j=i+1;
j<oldItems.Count &&
oldItems[j].File.FullName == oldItems[j-1].File.FullName &&
Math.Abs(oldItems[j].StartPosition - oldItems[j-1].StopPosition) < 0.5;
j++);
VideoSpan newSpan = new VideoSpan();
newSpan.File = oldItems[i].File;
newSpan.StartPosition = oldItems[i].StartPosition;
newSpan.StopPosition = oldItems[j-1].StopPosition;
AddSpanToListView(newSpan, -1);
}