By writing code to read the video files and combining them. This is a vague question which leaves a lot out. What type of files? Do you have a codec for the files or do you have to write your own? What do you mean by 'join'? What have you done so far?