Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-03-2008, 02:53 PM   #1
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
Question Merging two .mpg files, of which first one broken

Hello.. I need to merge two .mpeg files realizzed with xvidcap.
The problem is that doing the first one xvidcap crashed. I can view and listen the video correctly with kaffeine or mplayer, but when I go opening e.g. with avidemux or kino they refuse to open it.

How can I "repair" it or even better directly merge them from command line??
Old 08-03-2008, 04:31 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 68
If you can play it with mplayer, then you should be able to re-encode it using mencoder (which is usually packaged with mplayer).

I think you can directly merge MPEG videos by simply concatenating them. I'm not sure if that's technically acceptable, but mplayer seems to cope with it:
cat file1.mpeg file2.mpeg > merged.mpeg
Old 08-03-2008, 04:55 PM   #3
Registered: Apr 2006
Posts: 49

Original Poster
Rep: Reputation: 15
thanks.. I already tryed with mencoder but then the resulting video is not working..

I ended up re-creating my screencast... :-(


avidemux, mpeg, xvidcap

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
Merging ,pdf files satimis Linux - General 6 11-21-2007 09:31 PM
Merging Two Files using C++ ckoniecny Programming 5 09-26-2006 10:00 AM
merging mpg files karhu Linux - Software 4 07-28-2005 06:25 AM
merging files using perl pantera Programming 1 06-03-2004 01:56 PM
merging log files help please digitalgravy Linux - Newbie 3 12-10-2003 03:26 PM

All times are GMT -5. The time now is 06:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration