Matroska time code calculation issue

Raju Kumar <[email protected]> Wed, 18 Nov 2015 14:48:21 +0530
Newsgroups gmane.comp.multimedia.matroska.user
Message-ID <[email protected]>
Dear Matroska-Users,

I am workign on spliting video file which contains Matroska media 
container. To split out a MKVfile (generated from Matroska v2) into two 
sub files, I am performingbelow operation in my C# code on windows 
platform:

1.) Parse MKV file[EBML, Segment(Segment info, Seek head, 
Tracks,Clusters) with misc information].
2.) Split mkv file into two parts & applying Header information on both 
the files.

  * In first part of file, taking clusters fromstartto middle of file
    and updating headerfor length of segments. Generatedoutputfile is
    playable.
  * In second part of file, taking from middleto end of file and
    updating header, timecodeand previous cluster size. Generated output
    file is look likes a valid mkv file but not playable.We had cross
    checked this section using AVI-Mux tool.

As I could understand that my timecode calculation (Absolute Timecode = 
Block+Cluster for Block and for cluster Relative Timecode = Block) is 
not correct and also I could not conclude variable timecode calculation 
doing by AVI-Mux tool.

Can you please help me out to resolve timecode calculation issue? 
Appriciate if some one can share sample code to understand the same.

Thanks & Regards
Raju Kumar Ram

_______________________________________________
Matroska-users mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-users
Read Matroska-Users on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.user