Find the answer to your Linux question:
Results 1 to 5 of 5
GUI software to join 2 avi files into one, i have a 2 cd dvd rip, its 2 avi files i want to make em into 1...
  1. #1
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    183

    GUI software to join 2 avi files into one

    GUI software to join 2 avi files into one, i have a 2 cd dvd rip, its 2 avi files i want to make em into 1

  2. #2
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    There's actually a Windows program that's good for this called VirtualDub, and it runs okay under Wine. It's good because it can do direct stream copies of video and audio channels without re-encoding, which means high speed and no quality loss.

    There are lots of programs for Linux that'll work with AVI files, but as far as I know, most all of them will want to transcode the file, which is a slow process. One linux program that looks like it might do the job for you is Avidemux. It's available in synaptic.

    You should not simply do a binary join on AVI files because that violates the AVI structure; it should have a single index block at the end with the fourcc and keyframe data. Doing a binary join makes multiple (and sometimes conflicting) index blocks, confusing several players.
    ---
    In either editor, you open the first AVI file, then use "Append..." to open the second, third, and so on files. Set your codec options (both Audio and Video to "Copy" for a simple join), then "Save Video" to write the new AVI file. It must be a different name than any of the source files.

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I know you said gui, but it's pretty easy from the command line.

    Install mplayer and mencoder.

    Code:
    cat file.avi file2.avi file3.avi > joined-file.avi
    mencoder joined-file.avi -o final-output.avi -forceidx -ovc copy -oac copy

  4. #4
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    "Oh, I see wat u did ther"

    Do the binary join, then use mencoder to fix the index block. Nice.

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    This got me thinking and I was googling around and discovered there is an even easier command line tool, as part of the transcode package.

    From the man page,
    Code:
    avimerge -o big.avi -i my_file1.avi my_file2.avi my_file3.avi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...