annotate DOCS/it/encoding.html @ 13853:5a786c7e4df4

have each XviD's option flag have its (no)counterpart
author gpoirier
date Tue, 02 Nov 2004 17:22:24 +0000
parents 01e2dd55bf49
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
1 <HTML>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
2 <!-- Synced with english version 1.87 -->
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
3
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
4 <HEAD>
7509
frodone
parents: 6824
diff changeset
5 <TITLE>Codificare - MEncoder - Movie Encoder per Linux</TITLE>
9512
883f38591d47 now all translations link to ../default.css
gabucino
parents: 9332
diff changeset
6 <LINK REL="stylesheet" TYPE="text/css" HREF="../default.css">
7509
frodone
parents: 6824
diff changeset
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
8 </HEAD>
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
9
7509
frodone
parents: 6824
diff changeset
10 <BODY>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
11
2729796fb896 Italian translation
frodone
parents:
diff changeset
12
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
13 <H1><A NAME="encoding">7. Codificare con MEncoder</A></H1>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
14
12862
01e2dd55bf49 embarassing typo
diego
parents: 10405
diff changeset
15 <P>Per la lista completa delle opzioni disponibili per MEncoder e gli esempi, vedi
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
16 la pagina di man. Per una serie di esempi pratici ed una guida dettagliata
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
17 sull'uso dei parametri di codifica, leggi i
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
18 <A HREF="tech/encoding-tips.txt">consigli per la codifica</A> raccolti da
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
19 varie discussioni avvenute sulla mailing list
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
20 <A HREF="http://mplayerhq.hu/mailman7listinfo/mplayer-users">mplayer-users</A>.
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
21 Cerca negli <A HREF="http://mlayerhq.hu/mailman/mplayer-users">archivi</A>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
22 le discussioni sui dettagli ed i problemi relativi alla codifica con MEncoder.
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
23 </P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
24
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
25 <H3><A NAME="2pass">7.1 Codificare in MPEG-4 ("DivX") in 2 o 3 passaggii</H3>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
26
2729796fb896 Italian translation
frodone
parents:
diff changeset
27 <P><U><B>codifica a 2 passaggi :</B></U> il nome deriva dal fatto che questo metodo codifica il file <I>due volte</I>.
2729796fb896 Italian translation
frodone
parents:
diff changeset
28 La prima codifica (<I>passaggio</I> doppiato) crea dei file temporanei (*.log) con una grandezza
2729796fb896 Italian translation
frodone
parents:
diff changeset
29 di pochi megabyte, non cancellarli ancora (puoi cancellare l' AVI). Nel secondo passaggio, viene creato il
2729796fb896 Italian translation
frodone
parents:
diff changeset
30 file di output, usando i dati sul bitrate dei file temporanei. Il file risultante avrà una
2729796fb896 Italian translation
frodone
parents:
diff changeset
31 migliore qualità d'immagine. Se questa è la prima volta che ne senti parlare,
2729796fb896 Italian translation
frodone
parents:
diff changeset
32 dovresti consultare alcune guide disponibili in rete.</P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
33
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
34 <P>Questo esempio mostra come codificare un DVD in un AVI MPEG-4 ("DivX") a 2
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
35 passaggi. Bisogna dare solo due comandi :<BR>
8707
frodone
parents: 7509
diff changeset
36
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
37 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;rm frameno.avi</CODE> - rimuovi questo file che può essere rimasto
2729796fb896 Italian translation
frodone
parents:
diff changeset
38 da una precedente codifica a 3 passaggi (interferisce col processo attuale)<BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
39 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc -lavcopts
8707
frodone
parents: 7509
diff changeset
40 vcodec=mpeg4:vpass=1 -oac copy -o movie.avi<BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
41 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc -lavcopts
8707
frodone
parents: 7509
diff changeset
42 vcodec=mpeg4:vpass=2 -oac copy -o movie.avi</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
43
2729796fb896 Italian translation
frodone
parents:
diff changeset
44 <P><U><B>codifica a 3 passaggi :</B></U> questa è un' estensione della codifica a 2 passaggi,
2729796fb896 Italian translation
frodone
parents:
diff changeset
45 dove la codifica audio avviene in un passaggio separato. Questo metodo abilita la
2729796fb896 Italian translation
frodone
parents:
diff changeset
46 stima del bitrate video raccomandato per far stare il file risultante in un CD. In più,
2729796fb896 Italian translation
frodone
parents:
diff changeset
47 l'audio è codificato solo una volta, diversamente dalla modalità in 2 passaggi. Schema :</P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
48
8707
frodone
parents: 7509
diff changeset
49 <OL>
frodone
parents: 7509
diff changeset
50 <LI>Rimuovi il file temporaneo che va in conflitto:
frodone
parents: 7509
diff changeset
51 <P><CODE>rm frameno.avi</CODE></P></LI>
frodone
parents: 7509
diff changeset
52 <LI>Primo passaggio:
frodone
parents: 7509
diff changeset
53 <P><CODE>mencoder &lt;file/DVD&gt; -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi</CODE></P>
frodone
parents: 7509
diff changeset
54 <P>Sarà creato un file avi di solo audio, contenente SOLO
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
55 il flusso audio richiesto. Non dimenticare <CODE>-lameopts</CODE>, se ne
2729796fb896 Italian translation
frodone
parents:
diff changeset
56 hai bisogno. Se stai codificando un filmato lungo, MEncoder da
2729796fb896 Italian translation
frodone
parents:
diff changeset
57 i valori di bitrate consigliati per dimensioni di destinazione di 650Mb, 700Mb, e 800Mb,
8707
frodone
parents: 7509
diff changeset
58 dopo la fine di questo passaggio.</P></LI>
frodone
parents: 7509
diff changeset
59 <LI>Secondo passaggio:
frodone
parents: 7509
diff changeset
60 <P><CODE>mencoder &lt;file/DVD&gt; -oac copy
frodone
parents: 7509
diff changeset
61 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=&lt;bitrate&gt;</CODE></P>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
62 <P>Questo è il primo passaggio della codifica video.
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
63 Puoi specificare il bitrate video dato da MEncoder alla fine del precedente
8707
frodone
parents: 7509
diff changeset
64 passaggio.</P></LI>
frodone
parents: 7509
diff changeset
65 <LI>Terzo passaggio:
frodone
parents: 7509
diff changeset
66 <P><CODE>mencoder &lt;file/DVD&gt; -oac copy
frodone
parents: 7509
diff changeset
67 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=&lt;bitrate&gt;</CODE></P>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
68 <P>Questo è il secondo passaggio della codifica video.
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
69 Specifica lo stesso bitrate del passo precedente a meno che tu sappia
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
70 veramente cosa stai facendo. In questo passaggio, l'audio preso da
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
71 <CODE>frameno.avi</CODE> sarà inserito
8707
frodone
parents: 7509
diff changeset
72 nel file di destinazione.. ed è tutto pronto!</P></LI>
frodone
parents: 7509
diff changeset
73 </OL>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
74
2729796fb896 Italian translation
frodone
parents:
diff changeset
75 <P><B>Esempio di codifica a 3 passaggi :</B></P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
76
2729796fb896 Italian translation
frodone
parents:
diff changeset
77 <P><CODE>&nbsp;&nbsp;&nbsp;&nbsp;rm frameno.avi</CODE> - rimuovi questo file,
2729796fb896 Italian translation
frodone
parents:
diff changeset
78 che può essere rimasto da una precedente codifica a 3 passaggi (interferisce con quella attuale)<BR>
2729796fb896 Italian translation
frodone
parents:
diff changeset
79
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
80 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc frameno
8707
frodone
parents: 7509
diff changeset
81 -o frameno.avi -oac mp3lame -lameopts vbr=3<BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
82 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc
8707
frodone
parents: 7509
diff changeset
83 -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi<BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
84 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc
8707
frodone
parents: 7509
diff changeset
85 -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
86
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
87 <H2><A NAME="rescaling">7.2 Codificare in formato MPEG</A></H2>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
88
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
89 <P>MEncoder può creare file in formato MPEG (MPEG-PS). Ciò è probabilmente utile
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
90 solo con il codec <I>mpeg1video<I> di libavcodec, poiché i programmi - tranne
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
91 MPlayer - si aspettano solo video MPEG1 ed audio MPEG1 layer 2 (MP2) nei file
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
92 MPEG.</P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
93
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
94 <P>Questa funzione non è molto utile al momento, oltre ad avere probabilmente
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
95 molti bug, soprattutto perchè al momento MEncoder non può codificare l'audio
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
96 MPEG1 layer 2 (MP2), che tutti gli altri player si aspetano di trovare nei
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
97 file MPEG.</P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
98
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
99 <P>Per modificare il formato d'uscita di MEncoder, usare l'opzione
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
100 <CODE>-of mpeg</CODE>.</P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
101
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
102 <P>Esempio:<BR>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
103 &nbsp;&nbsp;<CODE>mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
104 -oac copy &lt;other options&gt; media.avi -o output.mpg</CODE></P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
105
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
106
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
107 <H2><A NAME="rescaling">7.3 Ridimensionare i filmati</A></H2>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
108
8707
frodone
parents: 7509
diff changeset
109 <P>Spesso emerge l'esigenza di ridimensionare le immagini del filmato. Le ragioni possono
frodone
parents: 7509
diff changeset
110 essere molte: diminuire la dimensione del file, la larghezza di banda della rete, ecc. Molte persone
frodone
parents: 7509
diff changeset
111 usano il ridimensionamento anche quando convertono DVD o SVCD in AVI DivX. <B>Questo è male.</B>
frodone
parents: 7509
diff changeset
112 Invece di fare così, leggete la sezione <A HREF="#aspect">Conservare
frodone
parents: 7509
diff changeset
113 le proporzioni</A>.</P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
114
5994
dcc6dde0d168 uptated to english version
frodone
parents: 5583
diff changeset
115 <P>Il processo di ridimensionamento è gestito dal filtro video <I>'scale'</I>:
9644
0fe056bdb135 vop -> vf change, small fixes. The Polish documentation should be checked for correctness.
jonas
parents: 9512
diff changeset
116 <CODE>-vf scale=larghezza:altezza</CODE>. La qualità può essere impostata tramite l'opzione
5994
dcc6dde0d168 uptated to english version
frodone
parents: 5583
diff changeset
117 <CODE>-sws</CODE>. Se non specificata, <B>MEncoder</B> userà il valore 0 :
dcc6dde0d168 uptated to english version
frodone
parents: 5583
diff changeset
118 bilineare veloce.</P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
119
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
120 <H5>Utilizzo :</H5>
8707
frodone
parents: 7509
diff changeset
121
frodone
parents: 7509
diff changeset
122 <P><CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder input.mpg -ovc lavc -lavcopts
9644
0fe056bdb135 vop -> vf change, small fixes. The Polish documentation should be checked for correctness.
jonas
parents: 9512
diff changeset
123 vcodec=mpeg4 -vf scale=640:480 -oac copy -o
8707
frodone
parents: 7509
diff changeset
124 output.avi</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
125
2729796fb896 Italian translation
frodone
parents:
diff changeset
126
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
127 <H2><A NAME="copying">7.4 Copia da stream</A></H2>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
128
2729796fb896 Italian translation
frodone
parents:
diff changeset
129 <P><B>MEncoder</B> può gestire i flussi in entrata in due modi : <B>codificandoli</B> o
2729796fb896 Italian translation
frodone
parents:
diff changeset
130 <B>copiandoli</B>. Questa sezione tratta la <B>copia</B>.</P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
131
2729796fb896 Italian translation
frodone
parents:
diff changeset
132 <P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
133 <UL>
2729796fb896 Italian translation
frodone
parents:
diff changeset
134 <LI><B>Flusso video</B> (opzione <CODE>-ovc copy</CODE>) : si possono fare tante belle cose :)<BR>
2729796fb896 Italian translation
frodone
parents:
diff changeset
135 Come, mettere (non convertire!) video FLI o VIVO o MPEG1 in un file AVI !
2729796fb896 Italian translation
frodone
parents:
diff changeset
136 Naturalmente solo <B>MPlayer</B> può leggere tali file :) E probabilmente non ha
2729796fb896 Italian translation
frodone
parents:
diff changeset
137 alcuna utilità nella vita reale. Seriamente : la copia del flusso video può essere utile per esempio
2729796fb896 Italian translation
frodone
parents:
diff changeset
138 quando si vuole codificare solo il flusso audio (come, PCM non compresso
2729796fb896 Italian translation
frodone
parents:
diff changeset
139 in MP3).</LI>
2729796fb896 Italian translation
frodone
parents:
diff changeset
140
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
141 <LI><B>Flusso audio</B> (opzione <CODE>-oac copy</CODE>) : semplice da capire.
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
142 E' possibile prendere un file audio esterno (MP3, AC3, Vorbis) e mixarlo
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
143 nel flusso di output. Usa l'opzione <CODE>-audiofile &lt;filename&gt;</CODE>
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
144 per farlo.</LI>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
145 </UL>
2729796fb896 Italian translation
frodone
parents:
diff changeset
146 </P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
147
2729796fb896 Italian translation
frodone
parents:
diff changeset
148
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
149 <H2><A NAME="fixing">7.5 Correggere gli AVI con indice o intervallo malformati</A></H2>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
150
8707
frodone
parents: 7509
diff changeset
151 <P>E' semplicissimo. Copiamo semplicemente i flussi audio e video, e
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
152 <B>MEncoder</B> genera l'indice. Naturalmente questo non può correggere possibili bug
4961
c8a3e58a43d8 corrected typos and bad italian...
frodone
parents: 4939
diff changeset
153 nei flussi video e/o audio. Corregge anche i file mal intervallati,
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
154 così non sarà più necessaria l'opzione <CODE>-ni</CODE> per leggerli.</P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
155
5994
dcc6dde0d168 uptated to english version
frodone
parents: 5583
diff changeset
156 <P>Comando : <CODE>mencoder -idx input.avi -ovc copy -oac copy -o output.avi</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
157
2729796fb896 Italian translation
frodone
parents:
diff changeset
158
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
159 <H3><A NAME="appending">7.5.1 Unire file AVI</A></H3>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
160
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
161 <P>Un utile effetto collaterale della funzione di riparazione dei file AVI è la
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
162 possibilità di usare MEncored per unire 2 (o più) file AVI:</P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
163
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
164 <P>Comando: <CODE>cat 1.avi 3.avi | mencoder -noidx -ovc copy -oac copy -o
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
165 output.avi -</CODE></P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
166
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
167 <P><B>Nota:</B>MEncoder si aspetta che <CODE>1.avi</CODE> e <CODE>2.avi</CODE>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
168 utilizzino gli stessi codec, risoluzione, stream rate, ecc, ed almeno 1.avi
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
169 non deve avere errori. Se necessario, puoi riparare i file prima di unirli,
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
170 come descritto <A HREF="#fixing">sopra</A>.</P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
171
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
172
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
173 <H2><A NAME="libavcodec">7.6 Codificare con le famiglia di codec libavcodec</A></H2>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
174
7509
frodone
parents: 6824
diff changeset
175 <P><A HREF="codecs.html#libavcodec">Libavcodec</A> fornisce una semplice codifica in
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
176 molti interessanti formati video e audio (al momento i suoi codec audio non sono
2729796fb896 Italian translation
frodone
parents:
diff changeset
177 supportati). Puoi codificare i seguenti codec :</P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
178
2729796fb896 Italian translation
frodone
parents:
diff changeset
179 <P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
180 <UL>
2729796fb896 Italian translation
frodone
parents:
diff changeset
181 <LI>mjpeg - Motion JPEG</LI>
2729796fb896 Italian translation
frodone
parents:
diff changeset
182 <LI>h263 - H263</LI>
2729796fb896 Italian translation
frodone
parents:
diff changeset
183 <LI>h263p - H263 Plus</LI>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
184 <LI>mpeg4 - ISO standard MPEG-4 (DivX 5, XviD compatibile)</LI>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
185 <LI>msmpeg4 - variant MPEG-4 pre-standard di MS, v3 (noto anche come DivX3)</LI>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
186 <LI>msmpeg4v2 - MPEG-4 pre-standard di MS, v2 (usati in vecchi file asf)</LI>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
187 <LI>wmv1 - Windows Media Video, versione 1 (noto anche come WMV7)</LI>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
188 <LI>rv10 - un vecchio codec RealVideo</LI>
2729796fb896 Italian translation
frodone
parents:
diff changeset
189 <LI>mpeg1video - video MPEG1 :)</LI>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
190 <LI>huffyuv - compressione lossless (senza perdita di qualità, ndt)</LI>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
191 </UL>
2729796fb896 Italian translation
frodone
parents:
diff changeset
192 </P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
193
2729796fb896 Italian translation
frodone
parents:
diff changeset
194 <P>La prima colonna contiene i nomi dei codec che devono essere passati dopo l'opzione
2729796fb896 Italian translation
frodone
parents:
diff changeset
195 <CODE>vcodec</CODE>, come : <CODE>-lavcopts vcodec=msmpeg4</CODE></P>
2729796fb896 Italian translation
frodone
parents:
diff changeset
196
2729796fb896 Italian translation
frodone
parents:
diff changeset
197 <P>Un esempio, con la compressione MJPEG :<BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
198 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -o title2.avi -ovc lavc
8707
frodone
parents: 7509
diff changeset
199 -lavcopts vcodec=mjpeg -oac copy</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
200
2729796fb896 Italian translation
frodone
parents:
diff changeset
201
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
202 <H2><A NAME="image_files">7.7 Codificare da file di immagine multipli (JPEG, PNG o TGA)</A></H2>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
203
8707
frodone
parents: 7509
diff changeset
204 <P><B>MEncoder</B> è in grado di creare filmati a partire da uno o più file JPEG, PNG o TGA.
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
205 Con un semplice framecopy può creare file MJPEG (Motion JPEG) o MPNG
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
206 (Motion PNG).</P>
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
207
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
208 <P><B><I>Spiegazione del processo</I></B></P>
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
209
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
210 <P><B>MEncoder</B> <I>decodifica</I> le immagini in input con un codec video MJPEG
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
211 disponibile (per i PNG, usa <B>libpng</B>).
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
212 </P>
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
213
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
214 <P><B>MEncoder</B> quindi passa l' immagine decodificata al compressore video scelto
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
215 (DivX4, Xvid, ffmpeg msmpeg4, ecc...).</P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
216
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
217 <P><B><I>Esempi</I></B></P>
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
218
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
219 <P>La spiegazione dell'opzione <CODE>-mf</CODE> si trova nella pagina di man.</P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
220
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
221 <P><I>Creare un file DivX4 da tutti i file JPEG presenti nella directory attuale :</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
222 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25 -ovc divx4
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
223 -o output.avi \*.jpg</CODE></P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
224
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
225 <P><I>Creare un file DivX4 da alcuni dei file JPEG presenti nella directory attuale :</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
226 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
227 -ovc divx4 -o output.avi frame001.jpg,frame002.jpg</CODE></P>
5583
70264cc9ade0 updated to english version
frodone
parents: 4961
diff changeset
228
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
229 <P><I>Creare un file Motion JPEG (MJPEG) da tutti i file JPEG presenti nella directory attuale :</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
230 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25 -ovc copy
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
231 -o output.avi \*.jpg</CODE></P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
232
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
233 <P><I>Creare un file non compresso da tutti i file PNG presenti nella directory attuale :</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
234 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
235 -o output.avi \*.png</CODE></P>
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
236
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
237 <P><B>Nota:</B> La larghezza deve essere un multiplo intero di 4, è una
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
238 limitazione del formato RAW RGB dei file AVI.</P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
239
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
240 <P><I>Creare un file Motion PNG (MPNG) da tutti i file PNG presenti nella directory attuale :</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
241 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
242 -o output.avi \*.png</CODE></P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
243
7509
frodone
parents: 6824
diff changeset
244 <P><I>Creare un file Motion TGA (MTGA) da tutti i file TGA presenti nella directory attuale:</I><BR>
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
245 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=tga -ovc copy
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
246 -o output.avi \*.tga</CODE></P>
7509
frodone
parents: 6824
diff changeset
247
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
248 <H2><A NAME="vobsub">7.8 Estrarre i sottotitoli dei DVD in un file Vobsub</A></H2>
6824
frodone
parents: 6462
diff changeset
249
frodone
parents: 6462
diff changeset
250 <P><B>MEncoder</B> è in grado di estrarre i sottotitoli dei DVD e codificarli nel formato file Vobsub.
frodone
parents: 6462
diff changeset
251 Questi consistono in un paio di file con estensione .idx e .sub e sono generalmente impacchettati in un unico archivio .rar. MPlayer può leggerli usando le opzioni <I>-vobsub</I> e <I>-vobsubid</I>.</P>
frodone
parents: 6462
diff changeset
252
frodone
parents: 6462
diff changeset
253 <P>Devi specificare il nome di base (cioè senza le estensioni .idx o .sub) dei file di output con
frodone
parents: 6462
diff changeset
254 <I>-vobsubout</I> e l'indice per questo sottotitolo nei file risultanti con <I>-vobsuboutindex</I>.</P>
frodone
parents: 6462
diff changeset
255
frodone
parents: 6462
diff changeset
256 <P>Se l'input non viene da un DVD dovresti usare <I>-ifo</I> per indicare il file .ifo necessario per
frodone
parents: 6462
diff changeset
257 costruire il file .idx risultante.</P>
frodone
parents: 6462
diff changeset
258
frodone
parents: 6462
diff changeset
259 <P>Se l'input non viene da un DVD e non hai il file .ifo devi usare l'opzione <I>-vobsubid</I> per fargli
frodone
parents: 6462
diff changeset
260 sapere quale identificativo di lingua mettere nel file .idx.</P>
frodone
parents: 6462
diff changeset
261
frodone
parents: 6462
diff changeset
262 <P>Ogni esecuzione aggiungerà l'attuale sottotitolo ai file .idx e .sub se questi esistono già.
frodone
parents: 6462
diff changeset
263 Quindi dovresti rimuoverli prima di ogni nuova esecuzione.</P>
frodone
parents: 6462
diff changeset
264
frodone
parents: 6462
diff changeset
265 <P><B>Esempi</B></P>
frodone
parents: 6462
diff changeset
266
frodone
parents: 6462
diff changeset
267 <P><I>Copiare due sottotitoli da un DVD usando la codifica a tre passaggi</I><BR>
frodone
parents: 6462
diff changeset
268 &nbsp;&nbsp;<CODE>rm sottotitoli.idx sottotitoli.sub</CODE><BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
269 &nbsp;&nbsp;<CODE>mencoder dvd://1 -vobsubout sottotitoli -vobsuboutindex 0
8707
frodone
parents: 7509
diff changeset
270 -sid 2 -o frameno.avi -ovc frameno -oac mp3lame -lameopts vbr=3</CODE><BR>
10405
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
271 &nbsp;&nbsp;<CODE>mencoder dvd://1 -oac copy -ovc divx4 -divx4opts pass=1</CODE><BR>
a5785a0b9ee1 -dvd -> dvd:// and -vcd -> vcd://
jonas
parents: 9864
diff changeset
272 &nbsp;&nbsp;<CODE>mencoder dvd://1 -oac copy -ovc divx4 -divx4opts pass=2 -vobsubout
8707
frodone
parents: 7509
diff changeset
273 subtitles -vobsuboutindex 1 -sid 5</CODE></P>
6824
frodone
parents: 6462
diff changeset
274
frodone
parents: 6462
diff changeset
275 <P><I>Copiare un sottotitolo francese da un file MPEG</I><BR>
frodone
parents: 6462
diff changeset
276 &nbsp;&nbsp;<CODE>rm sottotitoli.idx sottotitoli.sub</CODE><BR>
frodone
parents: 6462
diff changeset
277 &nbsp;&nbsp;<CODE>mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1</CODE></P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
278
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
279 <H2><A NAME="aspect">7.9 Conservare le proporzioni</A></H2>
8707
frodone
parents: 7509
diff changeset
280
frodone
parents: 7509
diff changeset
281 <P>I file dei DVD e dei SVCD (cioè MPEG1/2) contengono un valore di proporzione,
frodone
parents: 7509
diff changeset
282 che descrive come il lettore dovrebbe ridimensionare il flusso video, così che
frodone
parents: 7509
diff changeset
283 le persone non abbiano teste a uovo (es.: 480x480 + 4:3 = 640x480). Comunque quando
frodone
parents: 7509
diff changeset
284 si codificano file AVI (DivX), bisogna considerare che le intestazioni degli AVI non salvano
frodone
parents: 7509
diff changeset
285 questo valore. Ridimensionare il filmato è disgustoso e spreca tempo, deve esserci
frodone
parents: 7509
diff changeset
286 un modo migliore!</P>
frodone
parents: 7509
diff changeset
287
frodone
parents: 7509
diff changeset
288 <P>C'è.</P>
4939
0b4e8f3e0f4a updated to english version
frodone
parents: 4867
diff changeset
289
8707
frodone
parents: 7509
diff changeset
290 <P>L'MPEG4 ha una caratteristica unica: il flusso video può contenere
frodone
parents: 7509
diff changeset
291 le proporzioni che gli servono. Si, proprio come i file MPEG1/2 (DVD, SVCD).
frodone
parents: 7509
diff changeset
292 Purtroppo, <U>non<U> ci sono lettori video la fuori che supportino questa
frodone
parents: 7509
diff changeset
293 possibilità. Eccetto MPlayer.</P>
frodone
parents: 7509
diff changeset
294
frodone
parents: 7509
diff changeset
295 <P>Si può usare questa caratteristica solo con il codec <CODE>mpeg4</CODE> di <B>libavcodec</B>.
frodone
parents: 7509
diff changeset
296 Ricorda: anche se MPlayer riproducerà correttamente il file creato,
frodone
parents: 7509
diff changeset
297 gli altri lettori useranno le proporzioni sbagliate.</P>
frodone
parents: 7509
diff changeset
298
frodone
parents: 7509
diff changeset
299 <P>Dovresti considerare seriamente la possibilità di tagliare le bande nere sopra e sotto al filmato.
frodone
parents: 7509
diff changeset
300 Vedi la pagina di man per l'utilizzo dei filtri <CODE>cropdetect</CODE> e
frodone
parents: 7509
diff changeset
301 <CODE>crop</CODE>.</P>
frodone
parents: 7509
diff changeset
302
9864
b65bcfaedbe5 Sync with 0_90. All stuff different from 0_90 is missing.
rtognimp
parents: 9644
diff changeset
303 <H4>Utilizzo:</H4>
8707
frodone
parents: 7509
diff changeset
304
frodone
parents: 7509
diff changeset
305 <P><CODE>$ mencoder sample-svcd.mpg -ovc lavc -lavcopts
9644
0fe056bdb135 vop -> vf change, small fixes. The Polish documentation should be checked for correctness.
jonas
parents: 9512
diff changeset
306 vcodec=mpeg4:aspect=16.0/9.0 -vf crop=714:548:0:14 -oac copy -o output.avi</CODE></P>
4867
2729796fb896 Italian translation
frodone
parents:
diff changeset
307
2729796fb896 Italian translation
frodone
parents:
diff changeset
308 </BODY>
2729796fb896 Italian translation
frodone
parents:
diff changeset
309 </HTML>