Gentoo Archives: gentoo-user

From: Dave S <gentoo@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] large .avi video files, re-encode ?
Date: Thu, 28 Dec 2006 22:50:21
Message-Id: 200612282245.58541.gentoo@pusspaws.net
In Reply to: Re: [gentoo-user] large .avi video files, re-encode ? by Arturo 'Buanzo' Busleiman
1 On Thursday 28 December 2006 17:39, Arturo 'Buanzo' Busleiman wrote:
2 > Dave S wrote:
3 > > Hi all,
4 > >
5 > > I have a bunch of .avi video files that I use in a openoffice
6 > > presentation, they are nice and clear but really large files (1 - 2 GB
7 > > each !).
8 > >
9 > > I know nothing of video files, is it possible for me to re-encode them to
10 > > a more efficient format without loosing quality ?
11 >
12 > I use something like this. Adapt for your usage. It takes some parameters,
13 > but it's mainly used for dvd ripping:
14 >
15 > #!/bin/sh
16 > rm frameno.avi
17 > echo "DVD TITLE: $1"
18 > echo "OUTPUTFILE: $2"
19 > echo "SID: $3"
20 > echo "AID: $4"
21 > echo "Is that what you want? Press enter for OK, CTRL+C to cancel."
22 > read k
23 > mencoder dvd://$1 -sid $3 -aid $4 -ovc frameno -o frameno.avi -oac mp3lame
24 > -lameopts mode=1:vbr=2:q=6 -af volnorm -af-adv force=0
25 > mencoder -oac copy -ovc xvid -xvidencopts
26 > bitrate=-1400000:me_quality=6:chroma_opt:vhq=0:pass=1 dvd://$1 -sid $3 -aid
27 > $4 -o /dev/null
28 > mencoder -oac copy -ovc xvid -xvidencopts
29 > bitrate=-1400000:me_quality=6:chroma_opt:vhq=0:pass=2 dvd://$1 -sid $3 -aid
30 > $4 -o $2
31 >
32 > Check out the bitrate= parameter in the last two commands. The negative
33 > number tells mencoder to create a 1.4gb file (that's 1400000kilobytes,
34 > rounded up, not exact 1.4gb).
35 >
36 > --
37 > Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad
38 > Informatica ¿No sabés a dónde ir a comer o tomar algo? Visitá
39 > www.vivamoslavida.com.ar LISTA DE CASAMIENTO: Cualquier Fravega a nombre de
40 > Busleiman (37520).
41
42
43 1GB file compressed to 5M (OK so there was not too much changing on the
44 screen, mainly cursor & some popups) - I call that a success :)
45
46 Cheers
47
48 Dave
49
50 --
51 gentoo-user@g.o mailing list