如题 

解决方案 »

  1.   

    判断文件头 
    Media (rm),文件头:2E524D46 
    MPEG (mpg),文件头:000001BA 
    MPEG (mpg),文件头:000001B3 
      

  2.   

    http://www.google.com/search?q=C%23%20%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6%E7%9A%84%E7%9C%9F%E5%AE%9E%E7%B1%BB%E5%9E%8B&hl=zh-CN&newwindow=1&safe=off&client=firefox-a&hs=WYS&rls=org.mozilla%3Azh-CN%3Aofficial&aq=f&aqi=&aql=&oq=&gs_rfai=&nxpt=10.82832132800452658956
      

  3.   


    System.IO.FileStream fs = new System.IO.FileStream(hifile.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
            System.IO.BinaryReader r = new System.IO.BinaryReader(fs);
            string fileclass = "";
            byte buffer;
           
                buffer = r.ReadByte();
                fileclass = buffer.ToString();
                buffer = r.ReadByte();
                fileclass += buffer.ToString();       这样做的话 有些视频格式得到的 fileclass 是一样的
      

  4.   

    用上面的方法.mov和3gp是00
    avi和mpeg是一样的
    不知道还有没有其他的方法?