Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-17-2007, 08:53 PM   #1
Registered: Oct 2005
Posts: 51

Rep: Reputation: 15
joining .ts and .mkv files


I was wondering if there was an application or command line on linux for joining .ts and .mkv video files. Under windows you could join .ts with : copy /b "film-name-part1.ts" "film.ts", unfortunately I could't find the linux equivalent. I've already tried avidemux but it refuses to open the files (I don't know if this matter but the video files are high-resolution 720p, 1080i...)

Any help appreciated
Old 01-17-2007, 11:03 PM   #2
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can not actually join MPEG-1/2/4 files together. The reason why you can not do this is because not all media players are compatible with this and sometimes produces a freeze when another different data packet is introduce. To the viewer, it is distracting when the media player is a compatible with this. In Linux, I suggest using transcode's utilities to combine the ts (Transport Stream) files. They do it correctly with minimal loss of audio and video sync. If transcode is compiled with Matroska support, it can also combine the files, but I have not yet tested it. Usually, Linux distributions do not come with Matroska support.

The dumb way to combine two or more video files in Linux:
cat >

The dumb way to combine two or more video files in DOS:
copy /b
Old 01-17-2007, 11:44 PM   #3
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 15
Thank you for your detailed answer Electro. I'll look into that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
joining fileds from separete files dominant Linux - Newbie 5 10-22-2006 01:01 PM
playing mkv files on mplayer joq Linux - Software 3 12-07-2004 07:24 AM
joining text files. chunky Programming 1 05-19-2004 10:42 AM
Joining *wmv files ? gazza Linux - Newbie 3 01-20-2004 12:48 PM
cat - joining files u02gtt Linux - Newbie 6 04-22-2002 08:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration