Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > a42e22ddf1d70fb02e9f62289d71cafa > files > 399

mplayer-doc-1.0-1.rc4.0.r31086.3.1mdv2010.2.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>10.6. Encoder avec la famille de codecs Video For Windows</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="MPlayer - Le Lecteur Vidéo"><link rel="up" href="encoding-guide.html" title="Chapitre 10. L'encodage avec MEncoder"><link rel="prev" href="menc-feat-x264.html" title="10.5. Encodage avec le codec x264"><link rel="next" href="menc-feat-quicktime-7.html" title="10.7. Utiliser MEncoder pour créer des fichiers compatibles QuickTime"><link rel="preface" href="howtoread.html" title="Comment lire cette documentation"><link rel="chapter" href="intro.html" title="Chapitre 1. Introduction"><link rel="chapter" href="install.html" title="Chapitre 2. Installation"><link rel="chapter" href="usage.html" title="Chapitre 3. Utilisation"><link rel="chapter" href="cd-dvd.html" title="Chapitre 4. Utilisation des CD/DVD"><link rel="chapter" href="tv.html" title="Chapitre 5. TV"><link rel="chapter" href="radio.html" title="Chapitre 6. Radio"><link rel="chapter" href="video.html" title="Chapitre 7. Sorties vidéo"><link rel="chapter" href="ports.html" title="Chapitre 8. Ports"><link rel="chapter" href="mencoder.html" title="Chapitre 9. Utilisation basique de MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapitre 10. L'encodage avec MEncoder"><link rel="chapter" href="faq.html" title="Chapitre 11. Foire Aux Questions"><link rel="appendix" href="bugreports.html" title="Annexe A. Comment rapporter les bogues"><link rel="appendix" href="skin.html" title="Annexe B. Format de skins MPlayer"><link rel="subsection" href="menc-feat-video-for-windows.html#menc-feat-enc-vfw-video-codecs" title="10.6.1. Les codecs Video for Windows supportés"><link rel="subsection" href="menc-feat-video-for-windows.html#menc-feat-video-for-windows-bitrate-settings" title="10.6.2. Utilisation de vfw2menc pour créer un fichier de configuration de codec."></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">10.6. Encoder avec la famille de codecs <code class="systemitem">Video For Windows</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="menc-feat-x264.html">Précédent</a> </td><th width="60%" align="center">Chapitre 10. L'encodage avec <span class="application">MEncoder</span></th><td width="20%" align="right"> <a accesskey="n" href="menc-feat-quicktime-7.html">Suivant</a></td></tr></table><hr></div><div class="sect1" title="10.6. Encoder avec la famille de codecs Video For Windows"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="menc-feat-video-for-windows"></a>10.6. Encoder avec la famille de codecs <code class="systemitem">Video For Windows</code></h2></div></div></div><p>
Video for Windows offre la possibilité d'encoder en utiliser les codecs vidéo binaires.
Il est possible d'encoder avec les codecs suivants (si vous en connaissez
d'autres, dites-le nous !)
</p><p>
Notez que le support est très expériemental que que certains codecs peuvent
ne pas fonctionner correctement.
Certains codecs ne fonctionnent qu'avec certains espaces de couleur ;
essayez les options <tt class="option">-vf format=bgr24</tt> et <tt class="option">-vf format=yuy2</tt>
si un codec se plante ou donne un résulat étrange.
</p><div class="sect2" title="10.6.1. Les codecs Video for Windows supportés"><div class="titlepage"><div><div><h3 class="title"><a name="menc-feat-enc-vfw-video-codecs"></a>10.6.1. Les codecs Video for Windows supportés</h3></div></div></div><p>
</p><div class="informaltable"><table border="1"><colgroup><col><col><col><col></colgroup><thead><tr><th>Nom de fichier du codec Video</th><th>Description (FourCC)</th><th>md5sum</th><th>Commentaire</th></tr></thead><tbody><tr><td>aslcodec_vfw.dll</td><td>Alparysoft lossless codec vfw (ASLC)</td><td>608af234a6ea4d90cdc7246af5f3f29a</td><td> </td></tr><tr><td>avimszh.dll</td><td>AVImszh (MSZH)</td><td>253118fe1eedea04a95ed6e5f4c28878</td><td>nécessite <tt class="option">-vf format</tt></td></tr><tr><td>avizlib.dll</td><td>AVIzlib (ZLIB)</td><td>2f1cc76bbcf6d77d40d0e23392fa8eda</td><td> </td></tr><tr><td>divx.dll</td><td>DivX4Windows-VFW</td><td>acf35b2fc004a89c829531555d73f1e6</td><td> </td></tr><tr><td>huffyuv.dll</td><td>HuffYUV (lossless) (HFYU)</td><td>b74695b50230be4a6ef2c4293a58ac3b</td><td> </td></tr><tr><td>iccvid.dll</td><td>Cinepak Video (cvid)</td><td>cb3b7ee47ba7dbb3d23d34e274895133</td><td> </td></tr><tr><td>icmw_32.dll</td><td>Motion Wavelets (MWV1)</td><td>c9618a8fc73ce219ba918e3e09e227f2</td><td> </td></tr><tr><td>jp2avi.dll</td><td>ImagePower MJPEG2000 (IPJ2)</td><td>d860a11766da0d0ea064672c6833768b</td><td><tt class="option">-vf flip</tt></td></tr><tr><td>m3jp2k32.dll</td><td>Morgan MJPEG2000 (MJ2C)</td><td>f3c174edcbaef7cb947d6357cdfde7ff</td><td> </td></tr><tr><td>m3jpeg32.dll</td><td>Morgan Motion JPEG Codec (MJPG)</td><td>1cd13fff5960aa2aae43790242c323b1</td><td> </td></tr><tr><td>mpg4c32.dll</td><td>Microsoft MPEG-4 v1/v2</td><td>b5791ea23f33010d37ab8314681f1256</td><td> </td></tr><tr><td>tsccvid.dll</td><td>TechSmith Camtasia Screen Codec (TSCC)</td><td>8230d8560c41d444f249802a2700d1d5</td><td>erreur shareware sous windows</td></tr><tr><td>vp31vfw.dll</td><td>On2 Open Source VP3 Codec (VP31)</td><td>845f3590ea489e2e45e876ab107ee7d2</td><td> </td></tr><tr><td>vp4vfw.dll</td><td>On2 VP4 Personal Codec (VP40)</td><td>fc5480a482ccc594c2898dcc4188b58f</td><td> </td></tr><tr><td>vp6vfw.dll</td><td>On2 VP6 Personal Codec (VP60)</td><td>04d635a364243013898fd09484f913fb</td><td>crash sous Linux</td></tr><tr><td>vp7vfw.dll</td><td>On2 VP7 Personal Codec (VP70)</td><td>cb4cc3d4ea7c94a35f1d81c3d750bc8d</td><td>-ffourcc VP70</td></tr><tr><td>ViVD2.dll</td><td>SoftMedia ViVD V2 codec VfW (GXVE)</td><td>a7b4bf5cac630bb9262c3f80d8a773a1</td><td> </td></tr><tr><td>msulvc06.DLL</td><td>MSU Lossless codec (MSUD)</td><td>294bf9288f2f127bb86f00bfcc9ccdda</td><td>
    Décodable par <span class="application">Window Media Player</span>,
    mais pas <span class="application">MPlayer</span> (pour le moment).
  </td></tr><tr><td>camcodec.dll</td><td>CamStudio lossless video codec (CSCD)</td><td>0efe97ce08bb0e40162ab15ef3b45615</td><td>sf.net/projects/camstudio</td></tr></tbody></table></div><p>

La première colonne contient le nom du codec qui soit être donné après le
paramètre <code class="literal">codec</code>, comme ceci :
<tt class="option">-xvfwopts codec=divx.dll</tt>.
Le code FourCC utilisé par chaque codec est donné entre parenthèse.
</p><div class="informalexample"><p>
Exemple de conversion d'une bande annonce DVD ISO en un fichier video flash VP6
en utilisant une configuration de débit compdata :
</p><pre class="screen">
mencoder -dvd-device <em class="replaceable"><code>zeiram.iso</code></em> dvd://7 -o <em class="replaceable"><code>bande_annonce.flv</code></em> \
-ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=onepass.mcf -oac mp3lame \
-lameopts cbr:br=64 -af lavcresample=22050 -vf yadif,scale=320:240,flip \
-of lavf
</pre><p>
</p></div></div><div class="sect2" title="10.6.2. Utilisation de vfw2menc pour créer un fichier de configuration de codec."><div class="titlepage"><div><div><h3 class="title"><a name="menc-feat-video-for-windows-bitrate-settings"></a>10.6.2. Utilisation de vfw2menc pour créer un fichier de configuration de codec.</h3></div></div></div><p>
Afin d'encoder avec les codecs Video for Windows, il vous faut paramétrer le débit
ainsi que d'autres options. Ceci fonctionne sur x86 sous *NIX et Windows.
</p><p>
En premier lieu, vous devez compiler le programme <span class="application">vfw2menc</span>.
Il se trouve dans le sous-répertoire <tt class="filename">TOOLS</tt>
de l'arborescence des sources de MPlayer.
La compilation sous Linux peut se faire en utilisant
<span class="application">Wine</span> :
</p><pre class="screen">winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32</pre><p>

Pour compiler sous Windows avec <span class="application">MinGW</span> ou
<span class="application">Cygwin</span> tapez :
</p><pre class="screen">gcc vfw2menc.c -o vfw2menc.exe -lwinmm -lole32</pre><p>

Pour compiler avec <span class="application">MSVC</span> vous aurez besoin de getopt.
Getopt peut être obtenu dans l'archive d'origine de
<span class="application">vfw2menc</span> disponible ici :
The <a class="ulink" href="http://oss.netfarm.it/mplayer-win32.php" target="_top">MPlayer on
win32</a> project.
</p><div class="informalexample"><p>
Ci-dessous un exemple avec le codec VP6.
</p><pre class="screen">
vfw2menc -f VP62 -d vp6vfw.dll -s premierepasse.mcf
</pre><p>
Ceci va ouvrir le fenêtre de dialolgue du codec VP6.
Il faut répéter cette étape pour la seconde passe
et utiliser <tt class="option">-s <em class="replaceable"><code>secondepasse.mcf</code></em></tt>.
</p></div><p>
Les utilisateurs Windows peuvent utiliser
<tt class="option">-xvfwopts codec=vp6vfw.dll:compdata=dialog</tt> pour faire
apparaître la boîte de dialogue avant que l'encodage ne commence.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="menc-feat-x264.html">Précédent</a> </td><td width="20%" align="center"><a accesskey="u" href="encoding-guide.html">Niveau supérieur</a></td><td width="40%" align="right"> <a accesskey="n" href="menc-feat-quicktime-7.html">Suivant</a></td></tr><tr><td width="40%" align="left" valign="top">10.5. Encodage avec le codec <code class="systemitem">x264</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</a></td><td width="40%" align="right" valign="top"> 10.7. Utiliser <span class="application">MEncoder</span> pour créer
des fichiers compatibles <span class="application">QuickTime</span></td></tr></table></div></body></html>