|
|
how to join files in terminal
|
|
|
|
Junior Member
Join Date: Dec 1999
Location: Loveland, CO, USA
Status:
Offline
|
|
how do i join files (types mp3 and mpg) in the terminal? i tried:
cat 1.mpg 2.mpg > 3.mpg
the result was a file that was the right size, but would only play the contents of the first file (1.mpg).
i know there are a coouple shareware programs like rosetta that claim to join files, but i'd rather do it in the terminal.
any advice?
/eric
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jun 2002
Location: UK
Status:
Offline
|
|
`mpgtx' should have joining option... but use it with caution, as far as I know it's just a beta...
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Sep 2002
Status:
Offline
|
|
Originally posted by weric:
how do i join files (types mp3 and mpg) in the terminal? i tried:
cat 1.mpg 2.mpg > 3.mpg
the result was a file that was the right size, but would only play the contents of the first file (1.mpg).
i know there are a coouple shareware programs like rosetta that claim to join files, but i'd rather do it in the terminal.
any advice?
/eric
cat my-file.mpg.000 >> my-new.mpg
cat my-file.mpg.001 >> my-new.mpg
Or, using your example:
cat 1.mpg >> new.mpg
cat 2.mpg >> new.mpg
Make sure you use '>>' and not >
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status:
Offline
|
|
Originally posted by weric:
cat 1.mpg 2.mpg > 3.mpg
This sounds like a fishy operation to me anyway. Don't mp3's have header information? If they do, then you've got the 1.mpg header on a file that's just a lot bigger (implying that the 2.mpg information will be ignored). Thus you'd need a "smart" cat operation that can actually write the new header correctly.
But I'm no expert on mp3s...
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jun 2002
Location: UK
Status:
Offline
|
|
Originally posted by qyn:
This sounds like a fishy operation to me anyway. Don't mp3's have header information? If they do, then you've got the 1.mpg header on a file that's just a lot bigger (implying that the 2.mpg information will be ignored). Thus you'd need a "smart" cat operation that can actually write the new header correctly.
But I'm no expert on mp3s...
It is "fishy" and that's why I told to use `mpgtx' that takes care of the header information... or should... I haven't been following the latest CVSs
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Dec 1999
Location: Loveland, CO, USA
Status:
Offline
|
|
i installed mpgtx 1.3 and it works perfectly. thanks for the help.
/eric
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|