Cat Command - Terminal

Discussion in 'Mac Programming' started by thepope, Nov 30, 2007.

  1. macrumors newbie

    Joined:
    Jan 16, 2007
    #1
    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
     
  2. macrumors member

    Joined:
    Oct 3, 2006
    #2
    try

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

    >> appends rather than writes
     
  3. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #3
    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.
     
  4. macrumors member

    Joined:
    Oct 3, 2006
    #4
    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.
     

Share This Page