1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Dave S wrote: |
5 |
> Hi all, |
6 |
> |
7 |
> I have a bunch of .avi video files that I use in a openoffice presentation, |
8 |
> they are nice and clear but really large files (1 - 2 GB each !). |
9 |
> |
10 |
> I know nothing of video files, is it possible for me to re-encode them to a |
11 |
> more efficient format without loosing quality ? |
12 |
|
13 |
I use something like this. Adapt for your usage. It takes some parameters, but it's mainly used for |
14 |
dvd ripping: |
15 |
|
16 |
#!/bin/sh |
17 |
rm frameno.avi |
18 |
echo "DVD TITLE: $1" |
19 |
echo "OUTPUTFILE: $2" |
20 |
echo "SID: $3" |
21 |
echo "AID: $4" |
22 |
echo "Is that what you want? Press enter for OK, CTRL+C to cancel." |
23 |
read k |
24 |
mencoder dvd://$1 -sid $3 -aid $4 -ovc frameno -o frameno.avi -oac mp3lame -lameopts |
25 |
mode=1:vbr=2:q=6 -af volnorm -af-adv force=0 |
26 |
mencoder -oac copy -ovc xvid -xvidencopts bitrate=-1400000:me_quality=6:chroma_opt:vhq=0:pass=1 |
27 |
dvd://$1 -sid $3 -aid $4 -o /dev/null |
28 |
mencoder -oac copy -ovc xvid -xvidencopts bitrate=-1400000:me_quality=6:chroma_opt:vhq=0:pass=2 |
29 |
dvd://$1 -sid $3 -aid $4 -o $2 |
30 |
|
31 |
Check out the bitrate= parameter in the last two commands. The negative number tells mencoder to |
32 |
create a 1.4gb file (that's 1400000kilobytes, rounded up, not exact 1.4gb). |
33 |
|
34 |
- -- |
35 |
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica |
36 |
¿No sabés a dónde ir a comer o tomar algo? Visitá www.vivamoslavida.com.ar |
37 |
LISTA DE CASAMIENTO: Cualquier Fravega a nombre de Busleiman (37520). |
38 |
-----BEGIN PGP SIGNATURE----- |
39 |
Version: GnuPG v1.4.5 (GNU/Linux) |
40 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
41 |
|
42 |
iD8DBQFFlAFoAlpOsGhXcE0RAvgPAJ4t4fDkcj1GPiWOEiKDfqdFu46wFQCfX8XT |
43 |
FrXJgaKdE35E5dcOOgN1XJY= |
44 |
=x/vp |
45 |
-----END PGP SIGNATURE----- |
46 |
-- |
47 |
gentoo-user@g.o mailing list |