LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-03-2008, 01:53 PM   #1
sylvaticus
Member
 
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, 03:31 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If you can play it with mplayer, then you should be able to re-encode it using mencoder (which is usually packaged with mplayer).
http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html

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:
Code:
cat file1.mpeg file2.mpeg > merged.mpeg
 
Old 08-03-2008, 03:55 PM   #3
sylvaticus
Member
 
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... :-(
 
  


Reply

Tags
avidemux, mpeg, xvidcap



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 PM.

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