~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to DOCS/HTML/en/menc-feat-mpeg4.html

  • Committer: William Grant
  • Date: 2007-02-03 03:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: william.grant@ubuntu.org.au-20070203031607-08gc2ompbz6spt9i
Update to 1.0rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>12.3.�Encoding two pass MPEG-4 ("DivX")</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="Chapter�12.�Basic usage of MEncoder"><link rel="prev" href="menc-feat-selecting-input.html" title="12.2.�Selecting input file or device"><link rel="next" href="menc-feat-mpeg.html" title="12.4.�Encoding to MPEG format"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter�1.�Introduction"><link rel="chapter" href="install.html" title="Chapter�2.�Installation"><link rel="chapter" href="usage.html" title="Chapter�3.�Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter�4.�CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter�5.�Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter�6.�Containers"><link rel="chapter" href="codecs.html" title="Chapter�7.�Codecs"><link rel="chapter" href="video.html" title="Chapter�8.�Video output devices"><link rel="chapter" href="audio.html" title="Chapter�9.�Audio output devices"><link rel="chapter" href="tv.html" title="Chapter�10.�TV"><link rel="chapter" href="ports.html" title="Chapter�11.�Ports"><link rel="chapter" href="mencoder.html" title="Chapter�12.�Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter�13.�Encoding with MEncoder"><link rel="appendix" href="mailinglists.html" title="Appendix�A.�Mailing lists"><link rel="appendix" href="bugreports.html" title="Appendix�B.�How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix�C.�Known bugs"><link rel="appendix" href="skin.html" title="Appendix�D.�MPlayer skin format"><link rel="appendix" href="users-vs-dev.html" title="Appendix�E.�Developer cries"></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">12.3.�Encoding two pass MPEG-4 ("DivX")</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="menc-feat-selecting-input.html">Prev</a>�</td><th width="60%" align="center">Chapter�12.�Basic usage of <span class="application">MEncoder</span></th><td width="20%" align="right">�<a accesskey="n" href="menc-feat-mpeg.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="menc-feat-mpeg4"></a>12.3.�Encoding two pass MPEG-4 ("DivX")</h2></div></div></div><p>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>13.3.�Encoding two pass MPEG-4 ("DivX")</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="Chapter�13.�Basic usage of MEncoder"><link rel="prev" href="menc-feat-selecting-input.html" title="13.2.�Selecting input file or device"><link rel="next" href="menc-feat-handheld-psp.html" title="13.4.�Encoding to Sony PSP video format"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter�1.�Introduction"><link rel="chapter" href="install.html" title="Chapter�2.�Installation"><link rel="chapter" href="usage.html" title="Chapter�3.�Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter�4.�CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter�5.�Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter�6.�Containers"><link rel="chapter" href="codecs.html" title="Chapter�7.�Codecs"><link rel="chapter" href="video.html" title="Chapter�8.�Video output devices"><link rel="chapter" href="audio.html" title="Chapter�9.�Audio output devices"><link rel="chapter" href="tv.html" title="Chapter�10.�TV"><link rel="chapter" href="radio.html" title="Chapter�11.�Radio"><link rel="chapter" href="ports.html" title="Chapter�12.�Ports"><link rel="chapter" href="mencoder.html" title="Chapter�13.�Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter�14.�Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix�A.�How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix�B.�Known bugs"><link rel="appendix" href="skin.html" title="Appendix�C.�MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix�D.�History"></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">13.3.�Encoding two pass MPEG-4 ("DivX")</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="menc-feat-selecting-input.html">Prev</a>�</td><th width="60%" align="center">Chapter�13.�Basic usage of <span class="application">MEncoder</span></th><td width="20%" align="right">�<a accesskey="n" href="menc-feat-handheld-psp.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="menc-feat-mpeg4"></a>13.3.�Encoding two pass MPEG-4 ("DivX")</h2></div></div></div><p>
2
2
The name comes from the fact that this method encodes the file <span class="emphasis"><em>twice</em></span>.
3
3
The first encoding (dubbed pass) creates some temporary files
4
4
(<tt class="filename">*.log</tt>) with a size of few megabytes, do not delete
9
9
resulting file will have much better image quality. If this is the first
10
10
time you heard about this, you should consult some guides available on the
11
11
net.
12
 
</p><div class="example"><a name="id2576655"></a><p class="title"><b>Example�12.1.�copy audio track</b></p><p>
 
12
</p><div class="example"><a name="copy_audio_track"></a><p class="title"><b>Example�13.1.�copy audio track</b></p><p>
13
13
Two pass encode of the second track a DVD to an MPEG-4 ("DivX")
14
14
AVI while copying the audio track.
15
15
</p><pre class="screen">
16
16
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
17
17
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac copy -o <em class="replaceable"><code>output.avi</code></em>
18
18
</pre><p>
19
 
</p></div><div class="example"><a name="id2576679"></a><p class="title"><b>Example�12.2.�encode audio track</b></p><p>
 
19
</p></div><div class="example"><a name="encode_audio_track"></a><p class="title"><b>Example�13.2.�encode audio track</b></p><p>
20
20
Two pass encode of a DVD to an MPEG-4 ("DivX") AVI while encoding
21
21
the audio track to MP3.
22
22
Be careful using this method as it may lead to audio/video desync in
25
25
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null
26
26
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac mp3lame -lameopts vbr=3 -o <em class="replaceable"><code>output.avi</code></em>
27
27
</pre><p>
28
 
</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-selecting-input.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="mencoder.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="menc-feat-mpeg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">12.2.�Selecting input file or device�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�12.4.�Encoding to MPEG format</td></tr></table></div></body></html>
 
28
</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-selecting-input.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="mencoder.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="menc-feat-handheld-psp.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">13.2.�Selecting input file or device�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�13.4.�Encoding to Sony PSP video format</td></tr></table></div></body></html>