Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 30, 2007, 03:34 PM   #1
thepope
macrumors newbie
 
Join Date: Jan 2007
Cat Command - Terminal

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
thepope is offline   0 Reply With Quote
Old Nov 30, 2007, 03:47 PM   #2
FatGolfer
macrumors member
 
Join Date: Oct 2006
try

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

>> appends rather than writes
__________________
Mac Pro Quad 2.66Ghz - MacBook Pro 15.4" 2.33Ghz C2D - Powerbook 12" G4 1.5Ghz - iPod Touch 16GB - iPod Nano 6GB
FatGolfer is offline   0 Reply With Quote
Old Nov 30, 2007, 03:50 PM   #3
HiRez
macrumors 601
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: Western US
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.
__________________
Go outside, the graphics are amazing!
HiRez is offline   0 Reply With Quote
Old Nov 30, 2007, 03:56 PM   #4
FatGolfer
macrumors member
 
Join Date: Oct 2006
Quote:
Originally Posted by HiRez View Post
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.
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.
__________________
Mac Pro Quad 2.66Ghz - MacBook Pro 15.4" 2.33Ghz C2D - Powerbook 12" G4 1.5Ghz - iPod Touch 16GB - iPod Nano 6GB
FatGolfer is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
UUID Command in Terminal? cdoolittle17 Mac Programming 3 Feb 28, 2014 01:54 PM
Usage of the cat command brainwave89 Mac Applications and Mac App Store 4 Jan 6, 2014 12:55 AM
Terminal command andynewfriends Mac Basics and Help 0 Jun 11, 2013 02:25 PM
Delay command in Terminal Darundal Mac Programming 4 May 13, 2013 06:02 AM
Need command in terminal chadteetzen OS X 1 Jun 8, 2012 11:55 PM

Forum Jump

All times are GMT -5. The time now is 07:51 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC