I have recently started watching the fab serialized movie Bloodspell, which is created entirely in Neverwinter Nights.
Bloodspell is released in a series of 6-7 MB files. So far they’re up to part 7. This certainly makes it easier to download on to my laptop and enjoy 10 minutes of Bloodspell at a time. However, I want to burn this to a DVD and watch all seven at once on my home DVD player. Before I did this I just wanted to string together the 7 .avi files into one larger file. (I can’t stand a mess!) Sounds like a simple request? Guess what, in my distro, Ubuntu, it is!
This will most likely work on just about any linux distro that includes the ability to install mplayer/mencoder.
First, let’s get the right programs.
sudo apt-get install mencoder mplayer
Now that the hard part is out of the way, we’re going to make use of the wonderful cat command. I’d renamed each Bloodspell video as b1.avi – b7.avi. Now to string them all end to end.
cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > bloodspell.avi
Now we’re 2/3 of the way there! Stringing together .avi files can cause a breakdown in the sync between video and sound. So, we’ll use mencoder to sort things out.
mencoder -forceidx -oac copy -ovc copy bloodspell.avi.avi -o bloodspell_final.avi
That’s it! You’ve got one contiguous .avi file now containing all seven bloodspell releases to date. This will of course work with other .avi files. It will also work with .mpg or .mpeg files as well.
Later we’ll discuss getting this .avi file on to a DVD so you can watch it anywhere.
geek out.
Technorati Tags: linux, ubuntu, avi, mpeg, join avi, i(heart).avi
Popularity: 17% [?]












August 7th, 2006 at 1:09 pm
This will also work:
mencoder -oac copy -ovc copy file1 file2 file3 … -o final_movie.mpg
and please stop talking about ubuntu like it was a godsend, everyone knows that archlinux is much much better
August 7th, 2006 at 1:19 pm
Hey, thanks for the mencoder tip. And what is this Archlinux that you speak of? Damn. Now I’ve got another distro I’ve got to go install and check out.
November 5th, 2007 at 8:03 am
avimerge from the transcode package was designed for this task. and as far as i know, it was created before ubuntu. ;P
avimerge -i b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi -o bloodspell.avi
http://www.transcoding.org/cgi-bin/transcode
November 5th, 2007 at 8:47 am
Excellent suggestion Phil. Thanks!
February 4th, 2008 at 7:50 pm
How can i fix this¿?
root@guille-desktop:/home/guille# apt-get install mplayer mencoder
Reading package lists… Done
Building dependency tree… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mencoder: Depends: libasound2 (> 1.0.14) but 1.0.10-2ubuntu4 is to be installed
Depends: libc6 (>= 2.6-1) but 2.3.6-0ubuntu20.5 is to be installed
Depends: libdvdread3 (>= 0.9.6) but 0.9.4-5.1 is to be installed
Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-1.1ubuntu12 is to be installed
Depends: libfreetype6 (>= 2.3.5) but 2.1.10-1ubuntu2.4 is to be installed
Depends: libgcc1 (>= 1:4.2.1) but 1:4.0.3-1ubuntu5 is to be installed
Depends: liblame0 (>= 3.97) but 3.96.1-1 is to be installed
Depends: libncurses5 (>= 5.6) but 5.5-1ubuntu3 is to be installed
Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5ubuntu0.3 is to be installed
Depends: libstdc++6 (>= 4.2.1) but 4.0.3-1ubuntu5 is to be installed
Depends: libx264-54 but it is not installable
Depends: zlib1g (>= 1:1.2.3.3.dfsg-1) but 1:1.2.3-6ubuntu4 is to be installed
mplayer: Depends: libasound2 (> 1.0.14) but 1.0.10-2ubuntu4 is to be installed
Depends: libatk1.0-0 (>= 1.13.2) but 1.11.4-0ubuntu1 is to be installed
Depends: libc6 (>= 2.6-1) but 2.3.6-0ubuntu20.5 is to be installed
Depends: libcaca0 (>= 0.99.beta11-1) but it is not installable
Depends: libcairo2 (>= 1.4.0) but 1.0.4-0ubuntu1.2 is to be installed
Depends: libcucul0 (>= 0.99.beta11-1) but it is not installable
Depends: libdbus-1-3 (>= 1.1.1) but it is not installable
Depends: libdbus-glib-1-2 (>= 0.74) but 0.60-6ubuntu8.1 is to be installed
Depends: libdvdread3 (>= 0.9.6) but 0.9.4-5.1 is to be installed
Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-1.1ubuntu12 is to be installed
Depends: libfreetype6 (>= 2.3.5) but 2.1.10-1ubuntu2.4 is to be installed
Depends: libgcc1 (>= 1:4.2.1) but 1:4.0.3-1ubuntu5 is to be installed
Depends: libggi2 (>= 1:2.2.1) but it is not going to be installed
Depends: libglib2.0-0 (>= 2.14.0) but 2.10.3-0ubuntu1 is to be installed
Depends: libgtk2.0-0 (>= 2.12.0) but 2.8.20-0ubuntu1.1 is to be installed
Depends: liblame0 (>= 3.97) but 3.96.1-1 is to be installed
Depends: libncurses5 (>= 5.6) but 5.5-1ubuntu3 is to be installed
Depends: libpango1.0-0 (>= 1.18.2) but 1.12.3-0ubuntu3 is to be installed
Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5ubuntu0.3 is to be installed
Depends: libpulse0 but it is not installable
Depends: libsdl1.2debian (>= 1.2.10-1) but 1.2.9-0.0ubuntu2 is to be installed
Depends: libstdc++6 (>= 4.2.1) but 4.0.3-1ubuntu5 is to be installed
Depends: libx264-54 but it is not installable
Depends: libxcomposite1 (>= 1:0.3-1) but it is not going to be installed
Depends: libxdamage1 (>= 1:1.1) but 1:1.0.2.2-0ubuntu2 is to be installed
Depends: libxfixes3 (>= 1:4.0.1) but 1:3.0.1.2-0ubuntu3 is to be installed
Depends: libxrandr2 (>= 2:1.2.0) but 1:1.1.0.2-0ubuntu4 is to be installed
Depends: zlib1g (>= 1:1.2.3.3.dfsg-1) but 1:1.2.3-6ubuntu4 is to be installed
E: Broken packages
root@guille-desktop:/home/guille#
February 4th, 2008 at 8:46 pm
guille, what version of Ubuntu are you running this on? Are you using non-stable repositories?
February 28th, 2008 at 3:48 am
Listen to what Mr. Pr0n said. Forget that UUOC and use mencoder directly
April 29th, 2008 at 3:56 pm
Try using Jfuse (http://www.jfuse.com). It joins all types of media files.
October 15th, 2008 at 12:30 am
using ubuntu 8.04, with mencoder installer. I joined the mpeg files using cat then encoded both ways first tried arsgeek instructions and joined 1 file, then used Mr Pr0n instructions and made a second file. The issue is that I have sound but no video ? any ideas….. thanks for the help
November 4th, 2008 at 2:22 pm
lalo: totem movie player does not show the video, but it is there. Try opening the file with mplayer or avidemux. However, there seems to be something wrong with the file created that way: both mplayer and avidemux refuse to fast forward it; I don’t know what causes that problem.
November 4th, 2008 at 3:15 pm
OK, I figured it out. If you want to merge mpg files you must use this:
mencoder -oac copy -ovc copy -of mpeg part1.mpg part2.mpg -o all.mpg
November 22nd, 2008 at 1:07 pm
come on… buy a real computer and use iMovie/Quicktime/After Effects/Nuke/…
January 4th, 2009 at 11:24 pm
Yea, what nic said! Blow all sorts of money on inferior crap that’s locked down hard and is prone to breaking just so you can be a fanboy too!
February 16th, 2009 at 6:34 pm
Thanks for the tutorial. it works great !
August 16th, 2009 at 10:23 am
works great, thanks.
September 14th, 2009 at 9:44 pm
Typo:
mencoder -forceidx -oac copy -ovc copy bloodspell.avi.avi -o bloodspell_final.avi
Should be:
mencoder -forceidx -oac copy -ovc copy bloodspell.avi -o bloodspell_final.avi
July 5th, 2010 at 7:14 pm
Thank you for walking me through the step by step process. I must admit I’m a total newbie to this. Nice job ASG for sorting out the correct and exact site. I could easily get lost.
October 14th, 2010 at 1:04 pm
Ran memcoder, I got great Picture, BUT NO SOUND.
Please HELP!
jack@ubuntu:~/Temp$ mencoder -forceidx -oac copy -ovc copy YJ.avi -o YJ-B.avi
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0×0 – 0x4da2d4a0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: Generated index table for 649309 chunks!
VIDEO: [DIVX] 720×480 24bpp 29.970 fps 886.6 kbps (108.2 kbyte/s)
[V] filefmt:3 fourcc:0×58564944 size:720×480 fps:29.970 ftime:=0.0334
videocodec: framecopy (720×480 24bpp fourcc=58564944)
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=16000 sample-0)
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:2188.4s 65585f (25%) 5536.94fps Trem: 0min 1193mb A-V:0.033 [1021:128]
Badly interleaved AVI file detected – switching to -ni mode…
ODML: Starting new RIFF chunk at 1023MB.m: 0min 1264mb A-V:0.033 [908:128]]
Writing index…063f (99%) 4930.75fps Trem: 0min 1242mb A-V:0.033 [886:128]
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 886.561 kbit/s (110820 B/s) size: 1157612993 bytes 10445.869 secs 313063 frames
Audio stream: 128.000 kbit/s (16000 B/s) size: 129118464 bytes 8069.904 secs
November 4th, 2010 at 6:05 am
Muy buen artículo. Este blog es genial, suerte!
November 6th, 2010 at 7:22 am
Main method to join all mpeg files with mpeg extension in one directory:
mencoder -oac copy -ovc copy *.mpeg -of mpeg -o join.mpg
December 11th, 2010 at 4:43 am
Thanks for the tutorial. it works great !
January 1st, 2011 at 8:34 pm
This tutorial is god send. Thank you so much for this !!
January 22nd, 2011 at 7:03 am
@Joe Francais & @nic:
You made my day… I am really amazed to see that people are capable to repeat adverts like parrots, but are unable, unlike parrots, to do a bit of thinking on their own part in regards to the applicability of their comments. This thread is old, yes, but I felt urged to comment:
@nic :
The operating systems the software you suggest require are broken by design and the software you suggest might have a nice gui, but it lacks wider compatibility, basic capabilities, and it is slow and far from efficient. That it all does cost a lot of money doesn’t make these arguments less valid, but instead underscores them in bold.
Besides, Microsoft only now starts considering porting Windows to some decent CPU platform ( ARM ) after they abandoned more advanced platforms in the past already ( DEC Alpha ), like Apple did a while ago ( switching from powerPC platform to Intel’s x86 platform ) .
Accordingly, on up-to-date platforms, your software wouldn’t work, whilst mencoder works since years on all platforms, thanks to Linux and it’s ubiquity.
@Joe Francais :
Though not as failed as nic, please read what the wrapping on a program says: JFuse is propietary software, and available only for Windows and just since recently for MacOS, too. Accordingly putting money out for a program that is usable mostly as a paperweight is not really smart, and the time and effort invested into getting it to run on any decent OS is way better invested in just typing the mencoder – sequence and have the job done swiftly and reliably.
It’s not that I am agaisnt commercial Software – I use MainActor Broadcast and EAGLE regularly with pretty expensive licenses attached – it’s just that, really, commercial software should be au-par with freely available one ( like GEDA equals EAGLE easily, but there are more libraries packed with Eagle at this time ) and not blatantly inferior. When such software then is equal, or even better than free equivalents, however, often the software is incompatible to ones OS of choice, which renders the entire package useless from the beginning.
February 23rd, 2011 at 5:33 pm
@Mr. Pr0n et al.: I tried mencoder without “cat” and it crashed halfway into the conversion process! However, when I ran cat first and only then mencoder, it suddenly worked. Now talk about UUOC…
April 14th, 2011 at 5:48 am
before coveted, quickly seize this year the popular trend and beautiful bag, then quickly quasi malicious elements to make moves.
April 27th, 2011 at 11:04 pm
Hello Site owner. My companion and i really just like the posting and the website online all in all! Your put up could be very plainly written in addition to with out difficulty understandable. The Weblog theme is great as properly! Would positively be nice to know exactly where I can purchase it. If potential keep up the nice job. All of us want much more this type of web site homeowners equivalent to you online and in addition much less spammers. Wonderful mate!
May 7th, 2011 at 4:48 am
How to join multiple .avi or .mpg files | Ars
May 17th, 2011 at 9:00 am
useful posting, thanks
May 19th, 2011 at 3:22 am
Welcome to our site, buy the things you like. Please click on my name, this simple action may give you a surprise! Thank you.
June 7th, 2011 at 3:21 am
Hey, superb post! please keep it up..
June 20th, 2011 at 10:38 am
In my opinion you will find there’s concern aided by the Rss in this case. Feels like some worn out connection to everybody?
June 28th, 2011 at 2:43 am
i like your blog very much.Thanks for sharing information
August 4th, 2011 at 4:53 am
This is a message to the website owner. Please check out my friends website, he is offering a very good service that you may be intrested in. Does your website not get hardly any visitors or not rank for keywords with Google? Well he can help! He can provide you with tens of thousands of backlinks to your site!
August 10th, 2011 at 8:21 pm
You raise many questions in my head; you wrote a good post, but it is also thought provoking, and I will have to ponder it some more; I will return soon.
August 16th, 2011 at 3:21 am
The theme is really attractive. Congratulations to the author of the blog!
September 3rd, 2011 at 3:05 am
I am glad to found such useful post. I really increased my knowledge after read your post which will be beneficial for me.
September 14th, 2011 at 9:50 pm
You’re probably sick of hearing it, but you’ve got a really well written blog. Keep up the the great work.
September 15th, 2011 at 10:14 am
This is certainly probably the most extraordinary blog pages Ive browse in a really quite a while. The quantity of information in here’s spectacular, such as you essentially has written the book on the matter. Your blog is ideal for everybody who wants to understand this unique topic more. Excellent information; please keep writing!
October 27th, 2011 at 5:09 am
A British wind of this one season Topshop qiu dong to restore ancient ways more glaring, paint material and sequins by many use, restore ancient ways to rich chain bag and that a super cute zero purse must be must be your qiu dong the necessary money.
November 10th, 2011 at 7:15 pm
Good article , thanks and we want more! Added to FeedBurner as well
November 10th, 2011 at 7:15 pm
I really relate to that post. Thanks for the info.
November 10th, 2011 at 7:19 pm
Wow, I enjoyed your neat post.
November 17th, 2011 at 7:37 am
Whats up very cool site!! Guy .. Beautiful .. Superb .. I will bookmark your web site and take the feeds also?I am happy to seek out numerous useful information here within the submit, we need work out more strategies on this regard, thanks for sharing. . . . . .
November 23rd, 2011 at 5:41 am
Thanks I just tried this and it still works. Very helpful.
December 13th, 2011 at 12:47 am
Of,course! As well know, your article is very attractive, many of my friends have such thoughts, like so many people comment on your articles, look forward to your new works
December 23rd, 2011 at 2:21 am
Now the idea change greatly, people choose to watch, as buy clothes, are no longer the intrinsic performance as the only standard to measure quality. In cosmetics, maintain article can “tailor-made” new s, Vestal watch also to his own family, play really I personality.
December 26th, 2011 at 3:59 am
In addition to the eye key to depict, other all do to the shallow. To make the eyes and sparkly, can’t forget to beauty of them, that our Chinese MM has synchronization.
December 29th, 2011 at 1:36 am
Most of the report of the tide brand BBC “Ice Cream” (BBC Ice Cream) will be in this month’s 19 issue new summer single product. This still including the color with space beach as the design theme of the printing design Tee
December 30th, 2011 at 7:26 pm
No matter how much you strong tie-in ace; No matter you are walking in front of the trend more da, all kinds of clothing shop are necessary to you.
January 9th, 2012 at 10:28 pm
I really appreciate the blog since the first time do I saw it. Now they have reached another milestone which lead us to report about it,
and I think it’s a great new… as the content of the text.
January 11th, 2012 at 7:08 am
I feel that is one of the such a lot significant information for me. And i am satisfied reading your article. But should commentary on some normal things, The site taste is great, the articles is in point of fact great : D. Excellent task, cheers
January 12th, 2012 at 7:23 am
Thanks this, will be useful for our joined Avi files.