LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-27-2005, 04:48 AM   #1
karhu
LQ Newbie
 
Registered: Jun 2005
Location: Finland (far away from home -> PERU)
Distribution: Fedora Core 3
Posts: 24

Rep: Reputation: 16
merging mpeg files


Hi,

I have recently downloaded a movie from Internet (with Azureus).

The movie was divided in 2 (big) mpg files and I would like to join them back together.

Is there an application that I can use to join this 2 mpg files ?


thanks in advance

----------------------------------------------------------
edited:
----------
I found some information using Google...


> According to an article in Linux Journal you can just cat the files together:
>
> cat *.mpg > video.mpg
>
> This seems to be entirely too easy.
>The LJ article is online. It has the answer to you movie making question >as well.
>
> http://www.linuxjournal.com/article.php?sid=6953


therefore, if I can join 2 or more mpg files together using 'cat',

Can I divide a mpg in smaller files using 'split' ? (and every piece still be recognized as a mpg movie by mplayer ? )



Last edited by karhu; 08-09-2005 at 07:57 AM.
 
Old 07-27-2005, 05:33 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Something like this might work:

cat file1.mpeg file2 mpeg | mencoder -aoc copy -voc copy -o output.mpeg

(Taken from the mplayer-users mailing list, where it's also noted there might be synchronisation problems).
 
Old 07-27-2005, 05:37 AM   #3
karhu
LQ Newbie
 
Registered: Jun 2005
Location: Finland (far away from home -> PERU)
Distribution: Fedora Core 3
Posts: 24

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by maroonbaboon
Something like this might work:

cat file1.mpeg file2 mpeg | mencoder -aoc copy -voc copy -o output.mpeg

(Taken from the mplayer-users mailing list, where it's also noted there might be synchronisation problems).

thanks for the reply.

btw, if the first part of the command
Quote:
cat file1.mpeg file2 mpeg
is already joining the mpgeg files. then, what is the second part of the command doing ?

Quote:
mencoder -aoc copy -voc copy -o output.mpeg
 
Old 07-27-2005, 06:31 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I'm sure an mpeg files is much more than just a sequence of pictures, each with its own bit of sound. For example I guess each file has some sort of header giving picture size and so on, which you don't want stuck in the middle of the joined file. Of course if your player is smart enough it can probably deal with that, so e.g.

cat 1.mpeg 2.mpeg | mplayer -

is probably fine.

Passing through mencoder should ensure that the output conforms to the mpeg format, although carrying sound/picture synch across the join might be a problem.
 
Old 07-28-2005, 05:25 AM   #5
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
try

http://mpgtx.sourceforge.net/
 
  


Reply



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 movie files ZaphyR Linux - Software 4 09-05-2004 08:26 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
mpg files MC62189 Linux - Newbie 3 01-14-2003 09:56 PM

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

All times are GMT -5. The time now is 02:17 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