PDA

View Full Version : Cat Command - Terminal




thepope
Nov 30, 2007, 02:34 PM
I've tried using the Cat Command in the terminal but it won't join my two .avi files. Is this only Unix or can the Mac do it as well.

1. Open Terminal
2. Type "cat", then drag first (.avi), then add second (.avi)
3. put in ">"
4. and then type the title that you want the new file to have.
5. It will look live this:

cat movie1.avi movie2.avi > movie.avi

I've tried a few times, it creates the movie.avi, but it only has movie1.avi showing up.

Thanks in advance,
Roger



FatGolfer
Nov 30, 2007, 02:47 PM
try

cat movie1.avi > movie.avi
cat movie2.avi >> movie.avi

>> appends rather than writes

HiRez
Nov 30, 2007, 02:50 PM
I'm pretty sure you can't just append two AVI files together like that and have a joined movie that plays properly. There's a lot of other information in the files like header data. I could be wrong, but I doubt it would work.

EDIT: Here, try this tool (http://www.objectifmac.com/dvision.php).

FatGolfer
Nov 30, 2007, 02:56 PM
I'm pretty sure you can't just append two AVI files together like that and have a joined movie that plays properly. There's a lot of other information in the files like header data. I could be wrong, but I doubt it would work.

EDIT: Here, try this tool (http://www.objectifmac.com/dvision.php).

It works on Linux - don't know about OS X. The sound may jump out of sync but cat'ing them together should work fine.