~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to DOCS/HTML/ru/menc-feat-selecting-codec.html

  • Committer: Reinhard Tartler
  • Date: 2006-07-08 08:45:33 UTC
  • Revision ID: siretart@tauware.de-20060708084533-dbc155bde7122e78
imported mplayer_0.99+1.0pre7try2+cvs20060117

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=KOI8-R"><title>9.1. Selecting codecs and container formats</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="mencoder.html" title="����� 9. Basic usage of MEncoder"><link rel="prev" href="mencoder.html" title="����� 9. Basic usage of MEncoder"><link rel="next" href="menc-feat-selecting-input.html" title="9.2. Selecting input file or device"><link rel="preface" href="howtoread.html" title="��� ������ ��� ������������"><link rel="chapter" href="intro.html" title="����� 1. ��������"><link rel="chapter" href="usage.html" title="����� 2. �������������"><link rel="chapter" href="cd-dvd.html" title="����� 3. ������������� CD/DVD"><link rel="chapter" href="faq.html" title="����� 4. Frequently Asked Questions"><link rel="chapter" href="features.html" title="����� 5. �����������"><link rel="chapter" href="video.html" title="����� 6. Video output devices"><link rel="chapter" href="audio.html" title="����� 7. Audio output devices"><link rel="chapter" href="ports.html" title="����� 8. �������"><link rel="chapter" href="mencoder.html" title="����� 9. Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="����� 10. Encoding with MEncoder"><link rel="appendix" href="mailinglists.html" title="���������� A. �������� ��������"><link rel="appendix" href="bugreports.html" title="���������� B. ��� �������� �� �������"><link rel="appendix" href="bugs.html" title="���������� C. ��������� ��������"><link rel="appendix" href="skin.html" title="���������� D. MPlayer skin format"><link rel="appendix" href="users-vs-dev.html" title="���������� E. ���� �������������"></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">9.1. Selecting codecs and container formats</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mencoder.html">����.</a>�</td><th width="60%" align="center">����� 9. Basic usage of <span class="application">MEncoder</span></th><td width="20%" align="right">�<a accesskey="n" href="menc-feat-selecting-input.html">����.</a></td></tr></table><hr></div><div class="sect1" lang="ru"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="menc-feat-selecting-codec"></a>9.1. Selecting codecs and container formats</h2></div></div></div><p>
 
2
  Audio and video codecs for encoding are selected with the
 
3
  <tt class="option">-oac</tt> and <tt class="option">-ovc</tt> options, respectively.
 
4
  Type for instance:
 
5
  </p><pre class="screen">mencoder -ovc help</pre><p>
 
6
  to list all video codecs supported by the version of
 
7
  <span class="application">MEncoder</span> on your machine.
 
8
  The following choices are available:
 
9
</p><p>
 
10
Audio Codecs:
 
11
 
 
12
</p><div class="informaltable"><table border="1"><colgroup><col><col></colgroup><thead><tr><th>Audio codec name</th><th>Description</th></tr></thead><tbody><tr><td>mp3lame</td><td>Encode to VBR, ABR or CBR MP3 with LAME</td></tr><tr><td>lavc</td><td>Use one of <a href="menc-feat-enc-libavcodec.html#menc-feat-enc-libavcodec-audio-codecs" title="10.3.2. libavcodec's audio codecs"><code class="systemitem">libavcodec</code>'s audio codecs</a>
 
13
    </td></tr><tr><td>faac</td><td>FAAC AAC audio encoder</td></tr><tr><td>toolame</td><td>MPEG Audio Layer 2 encoder</td></tr><tr><td>twolame</td><td>MPEG Audio Layer 2 encoder based on tooLAME</td></tr><tr><td>pcm</td><td>Uncompressed PCM audio</td></tr><tr><td>copy</td><td>Do not reencode, just copy compressed frames</td></tr></tbody></table></div><p>
 
14
</p><p>
 
15
Video codecs:
 
16
</p><div class="informaltable"><table border="1"><colgroup><col><col></colgroup><thead><tr><th>Video codec name</th><th>Description</th></tr></thead><tbody><tr><td>lavc</td><td>Use one of <a href="menc-feat-enc-libavcodec.html#menc-feat-enc-libavcodec-video-codecs" title="10.3.1. libavcodec's video codecs"><code class="systemitem">libavcodec</code>'s video codecs</a>
 
17
    </td></tr><tr><td>xvid</td><td>XviD, MPEG-4 Advanced Simple Profile (ASP) codec</td></tr><tr><td>x264</td><td>x264, MPEG-4 Advanced Video Coding (AVC), AKA H.264 codec</td></tr><tr><td>nuv</td><td>nuppel video, used by some realtime applications</td></tr><tr><td>raw</td><td>Uncompressed video frames</td></tr><tr><td>copy</td><td>Do not reencode, just copy compressed frames</td></tr><tr><td>frameno</td><td>Used for 3-pass encoding (not recommended)</td></tr></tbody></table></div><p>
 
18
</p><p>
 
19
  Output container formats are selected with the <tt class="option">-of</tt>
 
20
  option.
 
21
  Type:
 
22
  </p><pre class="screen">mencoder -of help</pre><p>
 
23
  to list all containers supported by the version of
 
24
  <span class="application">MEncoder</span> on your machine.
 
25
  The following choices are available:
 
26
</p><p>
 
27
Container formats:
 
28
</p><div class="informaltable"><table border="1"><colgroup><col><col></colgroup><thead><tr><th>Container format name</th><th>Description</th></tr></thead><tbody><tr><td>lavf</td><td>One of the containers supported by
 
29
    <code class="systemitem">libavformat</code></td></tr><tr><td>avi</td><td>Audio-Video Interleaved</td></tr><tr><td>mpeg</td><td>MPEG-1 and MPEG-2 PS</td></tr><tr><td>rawvideo</td><td>raw video stream (no muxing - one video stream only)</td></tr><tr><td>rawaudio</td><td>raw audio stream (no muxing - one audio stream only)</td></tr></tbody></table></div><p>
 
30
  The AVI container is the native container format for
 
31
  <span class="application">MEncoder</span>, which means that it's the one that
 
32
  is best handled, and the one for which <span class="application">MEncoder</span>
 
33
  was designed.
 
34
  As noted above, other container formats are usable, but you may
 
35
  experience problems when using them.
 
36
</p><p>
 
37
<code class="systemitem">libavformat</code> containers:
 
38
</p><p>
 
39
  If you selected <code class="systemitem">libavformat</code>
 
40
  to do the muxing of the output file (by using the <tt class="option">-of lavf</tt>),
 
41
  the appropriate container format will be determined by the file extension
 
42
  of the output file.
 
43
  You may force a particular container format with
 
44
  <code class="systemitem">libavformat</code>'s
 
45
  <tt class="option">format</tt> option.
 
46
 
 
47
</p><div class="informaltable"><table border="1"><colgroup><col><col></colgroup><thead><tr><th><code class="systemitem">libavformat</code> container name</th><th>Description</th></tr></thead><tbody><tr><td>mpg</td><td>MPEG-1 and MPEG-2 PS</td></tr><tr><td>asf</td><td>Advanced Streaming Format</td></tr><tr><td>avi</td><td>Audio-Video Interleaved</td></tr><tr><td>wav</td><td>Waveform Audio</td></tr><tr><td>swf</td><td>Macromedia Flash</td></tr><tr><td>flv</td><td>Macromedia Flash video</td></tr><tr><td>rm</td><td>RealMedia</td></tr><tr><td>au</td><td>SUN AU</td></tr><tr><td>nut</td><td>NUT open container (experimental and not yet spec-compliant)</td></tr><tr><td>mov</td><td>QuickTime</td></tr><tr><td>mp4</td><td>MPEG-4 format</td></tr><tr><td>dv</td><td>Sony Digital Video container</td></tr></tbody></table></div><p>
 
48
  As you can see, <code class="systemitem">libavformat</code>
 
49
  allows <span class="application">MEncoder</span> to mux into a considerable
 
50
  variety of containers.
 
51
  Unfortunately, as <span class="application">MEncoder</span> was not designed
 
52
  from the beginning to support container formats other than AVI,
 
53
  your should really be paranoid about the resulting file.
 
54
  Please check to be sure that the audio/video synchronization is OK
 
55
  and that the file can be played correctly by players other than
 
56
  <span class="application">MPlayer</span>.
 
57
</p><div class="informalexample"><p>Example:</p><p>
 
58
  Creating a Macromedia Flash video suitable for playback in a web browser
 
59
  with the Macromedia Flash plugin:
 
60
</p><pre class="screen">
 
61
mencoder <em class="replaceable"><code>input.avi</code></em> -o <em class="replaceable"><code>output.flv</code></em> -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc \
 
62
-lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
 
63
-srate 22050
 
64
</pre><p>
 
65
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mencoder.html">����.</a>�</td><td width="20%" align="center"><a accesskey="u" href="mencoder.html">������� ����</a></td><td width="40%" align="right">�<a accesskey="n" href="menc-feat-selecting-input.html">����.</a></td></tr><tr><td width="40%" align="left" valign="top">����� 9. Basic usage of <span class="application">MEncoder</span>�</td><td width="20%" align="center"><a accesskey="h" href="index.html">������</a></td><td width="40%" align="right" valign="top">�9.2. Selecting input file or device</td></tr></table></div></body></html>