C#合并Flv文件
白云 2011-04-08 04:50:45 C#怎样编码合并俩个Flv文件,不要借助其他软件,只通过C#写的代码?
我试过一个办法
byte[] B1=File.ReadAllBytes(@"D:\flv1.flv");
byte[] B2=File.ReadAllBytes(@"D:\flv2.flv");
byte[] Btemp=new byte[B2.Length-13];
for(int i=0;i<Btemp.Length;i++)
{
Btemp[i]=B2[i+13];
}
BinaryWriter BW=new BinaryWriter(File.Opne(@"D:\result.flv",FileMode.Create));
BW.Write(B1);
BW.Write(Btemp);
BW.Close();
用这个方法有些Flv文件可以,有些却不可以,并且进度条出现不能拖动的问题。
求高手给出一个好的合并方法,谢谢了