Gentoo Archives: gentoo-user

From: "Claudio Roberto França Pereira" <spideybr@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Video editing advice on formats and size of file
Date: Wed, 04 Jan 2012 03:16:37
Message-Id: CAGo3WeoiyEy4xFq1_S96SsfmY9=aUC===emrZAxvjF5dERogTg@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Video editing advice on formats and size of file by Mick
1 Ok, I know what to do. I played a little with ffmpeg and avconv
2 (ffmpeg's fork, libav, conversion utility) converting 3D YouTube
3 videos to play at the Nintendo 3DS.
4 Anyways, I'll pretend you're using ffmpeg, I prefer libav but ffmpeg
5 is much more common (both are made available by portage, there is
6 virtual/ffmpeg now). Their syntax is a little different by the way, if
7 you prefer using libav just look at libav changelog
8 (/usr/share/doc/libav-version/CHANGELOG.bz2, or something close to
9 that).
10
11 ffmpeg -i file1.avi -i file2.avi -vcodec copy -acodec copy -async 12
12 -o output.avi
13
14 You can use multiple input files, not just 2. If their codec match,
15 you can copy, if they don't match then you'll need to re-encode the
16 files (or the just the ones with the different codec).
17 The -async 12 option do the synchronization trick. The 12 indicates
18 that ffmpeg should try to correct synchronization at most 12 times per
19 second. You could use less, try and see the results yourself. I'd say
20 that even 5 or 3 would give great results, but 12 doesn't seem to
21 increase file size either.