annotate DOCS/fr/encoding.html @ 10233:35f52ad860a0

vf_scale.h & related cleanup & some small warning fix by dominik
author michael
date Sun, 01 Jun 2003 21:59:29 +0000
parents f586be782e69
children b28cbf4bf55d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
2 <HTML>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
3
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
4 <HEAD>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
5 <TITLE>Encodage - MEncoder - L'encodeur vidéo pour Linux</TITLE>
9512
883f38591d47 now all translations link to ../default.css
gabucino
parents: 9363
diff changeset
6 <LINK REL="stylesheet" TYPE="text/css" HREF="../default.css">
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
8 </HEAD>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
9
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
10 <BODY>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
11
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
12
8904
nicolas
parents: 8826
diff changeset
13 <H1><A NAME="encoding">7. Encodage avec MEncoder</A></H1>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
14
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
15 <P>Pour avoir la liste complète des options disponibles de MEncoder et des exemples,
8906
nicolas
parents: 8904
diff changeset
16 voir la page de man. Pour une série d'exemples pratiques et de guides détaillés
nicolas
parents: 8904
diff changeset
17 sur l'utilisation des nombreux paramètres d'encodage, lisez les
nicolas
parents: 8904
diff changeset
18 <A HREF="../tech/encoding-tips.txt">encoding-tips</A> (en anglais) qui ont
nicolas
parents: 8904
diff changeset
19 été collectés sur de nombreuses threads de la liste de diffusion
nicolas
parents: 8904
diff changeset
20 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-users">mplayer-users</A>.
nicolas
parents: 8904
diff changeset
21 Cherchez dans les <A HREF="http://mplayerhq.hu/pipermail/mplayer-users/">archives</A>
nicolas
parents: 8904
diff changeset
22 pour trouver les discussions à propos de tous les aspects et problèmes relatif
nicolas
parents: 8904
diff changeset
23 à l'encodage avec MEncoder.</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
24
9093
nicolas
parents: 8906
diff changeset
25 <H2><A NAME="2pass">7.1 Encodage MPEG-4 (&quot;DivX&quot;) 2 ou 3-passes</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
26
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
27 <P><U><B>Encodage 2-passes:</B></U> le nom vient du fait que cette méthode encode
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
28 le fichier <I>deux fois</I>. Le premier encodage (<I>passe</I> doublée)
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
29 créé quelques fichiers temporaires (*.log) avec une taille de quelques méga-octets,
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
30 ne les détruisez pas tout de suite (vous pouvez effacer l'AVI). Dans la seconde
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
31 passe, la fichier de sortie 2-passes est créé, en utilisant les données bitrate des
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
32 fichiers temporaires. Le fichier résultant aura une image de bien meilleur qualité.
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
33 Si c'est la première fois que vous entendez parler de ça, vous devriez consulter les
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
34 guides disponibles sur le Net.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
35
8826
nicolas
parents: 8502
diff changeset
36 <P>Cet exemple montre comment encoder un DVD en AVI MPEG-4 (&quot;DIVX&quot;) AVI 2-passes.
nicolas
parents: 8502
diff changeset
37 Seules deux commandes sont requises:<BR>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
38 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;rm frameno.avi</CODE> - enlevez ce fichier, qui peut
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
39 provenir d'un encodage 3-passes précédent (il interfère avec l'actuel)<BR>
10202
nicolas
parents: 10088
diff changeset
40 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc -lavcopts
8502
nicolas
parents: 8457
diff changeset
41 vcodec=mpeg4:vpass=1 -oac copy -o film.avi<BR>
10202
nicolas
parents: 10088
diff changeset
42 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc -lavcopts
8502
nicolas
parents: 8457
diff changeset
43 vcodec=mpeg4:vpass=2 -oac copy -o film.avi</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
44
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
45 <P><U><B>Encodage 3-passes:</B></U> c'est une extension de l'encodage 2-passes,
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
46 où l'encodage audio prends place dans une passe séparée. Cette méthode permet
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
47 l'estimation du bitrate vidéo recommandé de façon à tenir sur un CD. De plus,
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
48 l'audio n'est encodé qu'une fois, au contraire du mode 2-passes. Le principe:</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
49
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
50 <OL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
51 <LI>Supprimez les fichiers temporaires conflictuels:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
52 <P><CODE>rm frameno.avi</CODE></P></LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
53 <LI>Première passe:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
54 <P><CODE>mencoder &lt;fichier/DVD&gt; -ovc frameno -oac mp3lame -lameopts vbr=3:more_options -o frameno.avi</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
55 <P>Un fichier avi en lecture seule sera créé, contenant <B>uniquement</B>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
56 le flux audio demandé. N'oubliez pas <CODE>-lameopts</CODE>,
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
57 si vous en avez besoin. Si vous encodez un long film, MEncoder
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
58 affiche le bitrate recommandé pour les tailles 650Mo, 700Mo, et 800Mo,
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
59 après la fin de cette passe.</P></LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
60 <LI>Seconde passe:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
61 <P><CODE>mencoder &lt;fichier/DVD&gt; -oac copy
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
62 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=&lt;bitrate&gt;</CODE></P>
8826
nicolas
parents: 8502
diff changeset
63 <P>Ceci est la première passe de l'encodage vidéo.
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
64 Éventuellement spécifiez le bitrate vidéo que MEncoder à affiché à la
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
65 fin de la passe précédente.</P></LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
66 <LI>Troisième passe:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
67 <P><CODE>mencoder &lt;fichier/DVD&gt; -oac copy
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
68 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=&lt;bitrate&gt;</CODE></P>
8826
nicolas
parents: 8502
diff changeset
69 <P>Ceci est la seconde passe de l'encodage vidéo.
nicolas
parents: 8502
diff changeset
70 Spécifiez le même bitrate vidéo que celui de la passe précédente à moins que vous
9289
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
71 ne sachiez réellement ce que vous faites. Dans cette passe, l'audio de <CODE>frameno.avi</CODE>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
72 sera inséré dans le fichier de destination.. et c'est tout prêt!</P></LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
73 </OL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
74
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
75 <H4>Exemple d'encodage 3-passes:</H4>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
76
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
77 <P><CODE>&nbsp;&nbsp;&nbsp;&nbsp;rm frameno.avi</CODE> - enlevez ce fichier, qui peut
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
78 provenir d'un encodage 3-passes précédent (il interfère avec l'actuel)<BR>
10202
nicolas
parents: 10088
diff changeset
79 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc frameno
8502
nicolas
parents: 8457
diff changeset
80 -o frameno.avi -oac mp3lame -lameopts vbr=3<BR>
10202
nicolas
parents: 10088
diff changeset
81 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc
8502
nicolas
parents: 8457
diff changeset
82 -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o film.avi<BR>
10202
nicolas
parents: 10088
diff changeset
83 &nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -ovc lavc
8502
nicolas
parents: 8457
diff changeset
84 -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o film.avi</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
85
8904
nicolas
parents: 8826
diff changeset
86
9167
nicolas
parents: 9093
diff changeset
87 <H2><A NAME="mpeg">7.2 Encodage au format MPEG</A></H2>
nicolas
parents: 9093
diff changeset
88
nicolas
parents: 9093
diff changeset
89 <P>MEncoder peut créer des fichier au format MPEG (MPEG-PS). Ceci n'est probablement
nicolas
parents: 9093
diff changeset
90 utile qu'avec le codec <I>mpeg1video</I> de libavcodec, car les lecteurs
nicolas
parents: 9093
diff changeset
91 - excepté MPlayer - attendent de la vidéo MPEG1, et de l'audio MPEG1 layer 2 (MP2)
nicolas
parents: 9093
diff changeset
92 dans les fichiers MPEG.</P>
nicolas
parents: 9093
diff changeset
93
nicolas
parents: 9093
diff changeset
94 <P>Cette fonction n'est pas vraiment utile actuellement, car elle a probablement
nicolas
parents: 9093
diff changeset
95 de nombreux bogues, mais plus important encore parce qu'actuellement MEncoder
nicolas
parents: 9093
diff changeset
96 ne peut pas encoder l'audio MPEG1 layer 2 (MP2), qui est attendu par tous
nicolas
parents: 9093
diff changeset
97 les autres lecteurs dans les fichiers MPEG.</P>
nicolas
parents: 9093
diff changeset
98
nicolas
parents: 9093
diff changeset
99 <P>Pour changer le format de sortie de MEncoder, utilisez l'option
nicolas
parents: 9093
diff changeset
100 <CODE>-of mpeg</CODE>.</P>
nicolas
parents: 9093
diff changeset
101
nicolas
parents: 9093
diff changeset
102 <P>Exemple:<BR>
nicolas
parents: 9093
diff changeset
103 &nbsp;&nbsp;<CODE>mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video
nicolas
parents: 9093
diff changeset
104 -oac copy &lt;other options&gt; media.avi -o sortie.mpg</CODE></P>
nicolas
parents: 9093
diff changeset
105
nicolas
parents: 9093
diff changeset
106
nicolas
parents: 9093
diff changeset
107 <H2><A NAME="rescaling">7.3 Redimensionnement des films</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
108
9289
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
109 <P>Souvent le besoin de redimensionner les images d'un film se fait sentir.
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
110 Les raisons peuvent être multiples: diminuer la taille du fichier, la bande passante
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
111 du réseau, etc. La plupart des gens redimensionnement même en convertissant des
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
112 DVDs ou SVCDs en AVI DivX. <B>C'est mauvais.</B> Plutôt que faire ça, lisez la
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
113 section <A HREF="#aspect">Préserver l'aspect ratio</A>.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
114
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
115 <P>Le processus de zoom est géré par le filtre vidéo <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=largeur:hauteur</CODE>. Sa qualité peut être réglée avec l'option
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
117 <CODE>-sws</CODE>. Si elle n'est pas spécifiée, MEncoder utilisera 0:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
118 fast bilinear.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
119
9363
nicolas
parents: 9332
diff changeset
120 <H4>Utilisation:</H4>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
121
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
122 <P><CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder entree.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
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
124 sortie.avi</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
125
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
126
9167
nicolas
parents: 9093
diff changeset
127 <H2><A NAME="copying">7.4 Copie de flux</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
128
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
129 <P>MEncoder peut gérer les flux entrant de deux façons: les <B>encoder</B>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
130 ou les <B>copier</B>. Cette section parle de la <B>copie</B>.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
131
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
132 <UL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
133 <LI><B>Flux vidéo</B> (option <CODE>-ovc copy</CODE>): on peut faire
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
134 des choses sympa :)<BR>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
135 Comme, placer (pas convertir) de la vidéo FLI ou VIVO ou MPEG1 dans
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
136 un fichier AVI. Bien sûr seul MPlayer peut lire de tels fichiers :) et
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
137 ça n'a probablement pas de valeur réelle du tout. Concrètement: copier des
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
138 flux vidéo peut être utile par exemple quand seul le flux audio doit être
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
139 encodé (comme du PCM non-compressé en MP3).</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
140
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
141 <LI><B>Flux audio</B> (option <CODE>-oac copy</CODE>): très simple.
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
142 Il est possible de prendre un fichier audio externe (MP3, Vorbis) et de le
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
143 muxer dans le flux sortant. Utilisez l'option <CODE>-audiofile &lt;nomfichier&gt;</CODE>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
144 pour cela.</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
145 </UL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
146
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
147
9167
nicolas
parents: 9093
diff changeset
148 <H2><A NAME="fixing">7.5 Réparer les fichiers AVIs ayant un index défectueux</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
149
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
150 <P>Facile. Nous copions simplement les flux vidéo et audio, et
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
151 MEncoder génère l'index. Bien sûr cela ne peut pas réparer les bogues possibles
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
152 dans les flux vidéo et/ou audio. Il répare également les fichiers avec un
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
153 entrelacement endommagé, ainsi l'option <CODE>-ni</CODE> ne sera plus requise.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
154
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
155 <P>Commande: <CODE>mencoder -idx entree.avi -ovc copy -oac copy -o sortie.avi</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
156
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
157
9286
nicolas
parents: 9167
diff changeset
158 <H3><A NAME="appending">7.5.1 Assembler plusieurs fichiers AVI</A></H3>
nicolas
parents: 9167
diff changeset
159
nicolas
parents: 9167
diff changeset
160 <P>Un effet secondaire de la fonction de réparation d'AVI permet à MEncoder d'assembler
nicolas
parents: 9167
diff changeset
161 2 (ou plus) fichiers AVI:</P>
nicolas
parents: 9167
diff changeset
162
nicolas
parents: 9167
diff changeset
163 <P>Command: <CODE>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o sortie.avi -</CODE></P>
nicolas
parents: 9167
diff changeset
164
nicolas
parents: 9167
diff changeset
165 <P><B>Note:</B> Cela suppose que <CODE>1.avi</CODE> et <CODE>2.avi</CODE> utilisent
nicolas
parents: 9167
diff changeset
166 les même codecs, résolution, débit, etc et qu'au moins 1.avi ne soit pas endommagé.
nicolas
parents: 9167
diff changeset
167 Vous pouvez avoir besoin de réparer vos fichiers AVI d'entrée d'abord, comme décrit
nicolas
parents: 9167
diff changeset
168 <A HREF="#fixing">ci-dessus</A>.</P>
nicolas
parents: 9167
diff changeset
169
nicolas
parents: 9167
diff changeset
170
9167
nicolas
parents: 9093
diff changeset
171 <H2><A NAME="libavcodec">7.6 Encodage avec la famille de codecs libavcodec</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
172
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
173 <P><A HREF="codecs.html#libavcodec">libavcodec</A> permet un encodage simple dans plein
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
174 formats audio et vidéo intéressants (actuellement ses codecs audio ne sont pas
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
175 supportés). Vous pouvez encoder avec les codecs suivants:</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
176
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
177 <UL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
178 <LI>mjpeg - Motion JPEG</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
179 <LI>h263 - H263</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
180 <LI>h263p - H263 Plus</LI>
9775
nicolas
parents: 9644
diff changeset
181 <LI>mpeg4 - standard ISO (compatible DivX 4/5, OpenDivX, XviD)</LI>
8826
nicolas
parents: 8502
diff changeset
182 <LI>msmpeg4 - variante pré-standard de MPEG-4 par MS, v3 (alias DivX3)</LI>
nicolas
parents: 8502
diff changeset
183 <LI>msmpeg4v2 - MPEG-4 pré-standard de MS, v2 (utilisé dans les anciens fichiers asf)</LI>
nicolas
parents: 8502
diff changeset
184 <LI>wmv1 - Windows Media Video, version 1 (alias WMV7)</LI>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
185 <LI>rv10 - un vieux codec RealVideo</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
186 <LI>mpeg1video - MPEG1 video :)</LI>
8826
nicolas
parents: 8502
diff changeset
187 <LI>huffyuv - compression sans perte</LI>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
188 </UL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
189
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
190 <P>La première colonne contient le nom du codec qui devrait être passé après la
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
191 config <CODE>vcodec</CODE>, comme: <CODE>-lavcopts vcodec=msmpeg4</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
192
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
193 <P>Un exemple, avec compression MJPEG:<BR>
10202
nicolas
parents: 10088
diff changeset
194 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder dvd://2 -o titre2.avi -ovc lavc
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
195 -lavcopts vcodec=mjpeg -oac copy</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
196
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
197
9167
nicolas
parents: 9093
diff changeset
198 <H2><A NAME="image_files">7.7 Encodage à partir de multiples fichiers image (JPEGs, PNGs ou TGAs)</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
199
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
200 <P>MEncoder est capable de créer des fichiers à partir de un ou plusieurs fichiers JPEG,
8904
nicolas
parents: 8826
diff changeset
201 PNG ou TGA. Avec une simple copie de trame il peut créer des fichiers
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
202 MJPEG (Motion JPEG), MPNG (Motion PNG) ou MTGA (Motion TGA).</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
203
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
204 Explication du processus:
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
205
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
206 <OL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
207 <LI>MEncoder <I>décode</I> le(s) image(s) d'origine avec
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
208 <CODE>libjpeg</CODE> (pour encoder des PNGs, il utilisera <B>libpng</B>).</LI>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
209
8826
nicolas
parents: 8502
diff changeset
210 <LI>Mencoder envoie alors l'image décodée au compresseur vidéo choisi
9775
nicolas
parents: 9644
diff changeset
211 (DivX4, XviD, ffmpeg msmpeg4, etc...).</LI>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
212 </OL>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
213
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
214 <H4>Exemples</H4>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
215
8457
nicolas
parents: 8415
diff changeset
216 <P>Une explication de l'option <CODE>-mf</CODE> peut être trouvée plus bas dans la section des
nicolas
parents: 8415
diff changeset
217 <A HREF="#options">options</A> globales et dans la page de man.</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
218
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
219 <P><I>Créer un fichier DivX4 à partir de tous les fichiers JPEG du rép courant:</I><BR>
9093
nicolas
parents: 8906
diff changeset
220 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25 -ovc divx4
nicolas
parents: 8906
diff changeset
221 -o sortie.avi \*.jpg</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
222
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
223 <P><I>Créer un fichier DivX4 à partir de quelques fichiers JPEG du rép courant:</I><BR>
9093
nicolas
parents: 8906
diff changeset
224 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25
nicolas
parents: 8906
diff changeset
225 -ovc divx4 -o sortie.avi trame001.jpg,trame002.jpg</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
226
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
227 <P><I>Créer un fichier Motion JPEG (MJPEG) à partir de tous les fichiers JPEG du rép courant:</I><BR>
9093
nicolas
parents: 8906
diff changeset
228 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25 -ovc copy
nicolas
parents: 8906
diff changeset
229 -o sortie.avi \*.jpg</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
230
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
231 <P><I>Créer un fichier non-compressé à partir de tous les fichiers PNG du rép courant:</I><BR>
9167
nicolas
parents: 9093
diff changeset
232 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb
9093
nicolas
parents: 8906
diff changeset
233 -o sortie.avi \*.png</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
234
9286
nicolas
parents: 9167
diff changeset
235 <P><B>Note:</B> La largeur doit être un entier multiple de 4, c'est une limitation
nicolas
parents: 9167
diff changeset
236 du format AVI RGB brut.</P>
nicolas
parents: 9167
diff changeset
237
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
238 <P><I>Créer un fichier Motion PNG (MPNG) à partir de tous les fichiers PNG du rép courant:</I><BR>
9093
nicolas
parents: 8906
diff changeset
239 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy
nicolas
parents: 8906
diff changeset
240 -oac copy -o sortie.avi \*.png</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
241
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
242 <P><I>Créer un fichier Motion TGA (MTGA) à partir de tous les fichiers TGA du rép courant:</I><BR>
9093
nicolas
parents: 8906
diff changeset
243 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=tga -ovc copy
nicolas
parents: 8906
diff changeset
244 -o sortie.avi \*.tga</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
245
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
246
9289
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
247 <H2><A NAME="vobsub">7.8 Extraction des sous-titres DVD dans un fichier Vobsub</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
248
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
249 <P>MEncoder est capable d'extraire les sous-titres d'un DVD dans des fichiers au format
9286
nicolas
parents: 9167
diff changeset
250 VobSub. Ils consistent en une paire de fichiers terminant par <CODE>.idx</CODE> et
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
251 <CODE>.sub</CODE> et sont généralement compressés dans une seule archive <CODE>.rar</CODE>.
9286
nicolas
parents: 9167
diff changeset
252 MPlayer peut les lire avec les options <CODE>-vobsub</CODE> et <CODE>-vobsubid</CODE>.</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
253
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
254 <P>Vous spécifiez le nom de base (c-a-d sans l'extension <CODE>.idx</CODE> ou
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
255 <CODE>.sub</CODE>) des fichiers de sortie avec <CODE>-vobsubout</CODE> et
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
256 l'index pour ces sous-titres dans le fichier final avec <CODE>-vobsuboutindex</CODE>.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
257
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
258 <P>Si l'entrée n'est pas un DVD vous pouvez utiliser <CODE>-ifo</CODE> pour
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
259 indiquer le fichier <CODE>.ifo</CODE> requis pour construire le fichier
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
260 <CODE>.idx</CODE> final.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
261
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
262 <P>Si l'entrée n'est pas un DVD et que vous n'avez pas de fichier <CODE>.ifo</CODE>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
263 vous aurez besoin d'utiliser l'option <CODE>-vobsubid</CODE> pour lui permettre
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
264 de savoir quel id langue placer dans le fichier <CODE>.idx</CODE>.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
265
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
266 <P>Chaque étape ajoutera les sous-titres actifs dans les fichiers <CODE>.idx</CODE>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
267 et <CODE>.sub</CODE> dans les fichiers déjà existants. Vous devrez donc les
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
268 enlever avant de commencer.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
269
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
270 <H4>Exemples</H4>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
271
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
272 <P><I>Copier deux sous-titres d'un DVD pendant l'encodage 3-passes</I><BR>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
273 &nbsp;&nbsp;<CODE>rm soustitres.idx soustitres.sub</CODE><BR>
10202
nicolas
parents: 10088
diff changeset
274 &nbsp;&nbsp;<CODE>mencoder dvd://1 -vobsubout soustitres -vobsuboutindex 0
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
275 -sid 2 -o frameno.avi -ovc frameno -oac mp3lame -lameopts vbr=3</CODE><BR>
10202
nicolas
parents: 10088
diff changeset
276 &nbsp;&nbsp;<CODE>mencoder dvd://1 -oac copy -ovc divx4 -divx4opts pass=1</CODE><BR>
nicolas
parents: 10088
diff changeset
277 &nbsp;&nbsp;<CODE>mencoder dvd://1 -oac copy -ovc divx4 -divx4opts pass=2 -vobsubout
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
278 sous-titres -vobsuboutindex 1 -sid 5</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
279
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
280 <P><I>Copier les sous-titres français depuis un fichier MPEG</I><BR>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
281 &nbsp;&nbsp;<CODE>rm soustitres.idx soustitres.sub</CODE><BR>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
282 &nbsp;&nbsp;<CODE>mencoder film.mpg -ifo film.ifo -vobsubout soustitres
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
283 -vobsuboutindex 0 -vobsuboutid fr -sid 1</CODE></P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
284
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
285
9167
nicolas
parents: 9093
diff changeset
286 <H2><A NAME="aspect">7.9 Préserver l'aspect ratio</A></H2>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
287
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
288 <P>Les fichiers des DVDs et des SVCDs (c-a-d MPEG1/2) contiennent une valeur
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
289 d'aspect ratio, qui décrit comment le lecteur devrait dimensionner le flux
10088
nicolas
parents: 9775
diff changeset
290 vidéo, pour que les humains n'aient pas des &quot;têtes d'oeuf&quot; (ex. 480x480 + 4:3 = 640x480).
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
291 De toute façon, quand vous encodez un fichier AVI (DivX), vous devez être conscients
9289
f08b6945e839 patch by Pierre Lombard <p_l@gmx.fr>
nicolas
parents: 9286
diff changeset
292 que les entêtes AVI ne stockent pas cette valeur. Redimensionner le film est
10088
nicolas
parents: 9775
diff changeset
293 dégouttant et coûteux en temps, il doit y avoir une meilleur solution !</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
294
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
295 <P>Il y en a une.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
296
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
297 <P>MPEG4 a une fonction unique: le flux vidéo peut contenir l'aspect ratio requis.
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
298 Oui, tout comme les fichiers MPEG1/2 (DVD, SVCD). Malheureusement, il n'y a pas
9286
nicolas
parents: 9167
diff changeset
299 de lecteurs vidéo au dehors qui supportent cet attribut. Excepté MPlayer.</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
300
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
301 <P>Cette fonction ne peut être utilisé qu'avec le codec <CODE>mpeg4</CODE>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
302 de <B>libavcodec</B>. Gardez à l'esprit: bien que MPlayer lise correctement
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
303 le fichier créé, les autres lecteurs utiliseront un mauvais aspect ratio.</P>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
304
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
305 <P>Vous devriez sérieusement couper les bandes noires au dessus et en dessous de l'image.
8415
b230b50b5014 French translation synced by Nico Tourmentine <n@tourmentine.com>.
diego
parents: 8381
diff changeset
306 Voir la page de man pour l'utilisation des filtres <CODE>cropdetect</CODE> et
10088
nicolas
parents: 9775
diff changeset
307 <CODE>crop</CODE>.</P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
308
9363
nicolas
parents: 9332
diff changeset
309 <H4>Utilisation:</H4>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
310
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
311 <P><CODE>$ mencoder sample-svcd.mpg -ovc lavc -lavcopts
10088
nicolas
parents: 9775
diff changeset
312 vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o sortie.avi</CODE></P>
8381
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
313
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
314 </BODY>
212b54e0d10f New shiny French translation by Nicolas Le Gaillart < n@tourmentine.com >.
diego
parents:
diff changeset
315 </HTML>