From 5461fc33baed9455a39b7ae1a4793a330251758c Mon Sep 17 00:00:00 2001 From: gabucino Date: Sat, 10 Aug 2002 20:26:43 +0000 Subject: continuing paragraph reformatting git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6961 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/encoding.html | 167 +++++++++++++++++++++++++++++------------------------ 1 file changed, 92 insertions(+), 75 deletions(-) (limited to 'DOCS/encoding.html') diff --git a/DOCS/encoding.html b/DOCS/encoding.html index 580a87db56..e5105068ac 100644 --- a/DOCS/encoding.html +++ b/DOCS/encoding.html @@ -15,11 +15,12 @@

2.4.1 Overview

MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, -designed to encode MPlayer-playable movies -(AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable -formats (see below). It can encode with various codecs, like DivX4 (1 or -2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has -powerful plugin system for video manipulation.

+ designed to encode MPlayer-playable movies + (AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other + MPlayer-playable formats (see below). It can encode with various codecs, like + DivX4 (1 or 2 passes), libavcodec, + PCM/MP3/VBR MP3 audio. Also has powerful plugin system + for video manipulation.

2.4.2 Compilation

@@ -52,7 +53,7 @@ powerful plugin system for video manipulation.

You are ready. As you probably know, other encoding tools need the -avifile library installed. MEncoder doesn't need it at all.

+ avifile library installed. MEncoder doesn't need it at all.

2.4.3 MEncoder features

@@ -71,7 +72,7 @@ powerful plugin system for video manipulation.

  • stream copying
  • input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)
  • FPS correction with -ofps option (useful when encoding - 29.97fps VOB to 24fps AVI)
  • + 29.97fps VOB to 24fps AVI)
  • using our very powerful plugin system (crop, expand, flip, postprocess, rotate, scale, rgb/yuv conversion)
  • can encode DVD/VOBsub AND text subtitles into the output file
  • @@ -81,26 +82,30 @@ powerful plugin system for video manipulation.

    Planned features:

    2.4.3.1 Encoding 2 or 3-pass DivX4

    -

    2-pass encoding: the name comes from the fact that this method encodes the file twice. -The first encoding (dubbed pass) creates some temporary files (*.log) with a -size of few megabytes, do not delete them yet (you can delete the AVI). In the second pass, the -2-pass output file is created, using the bitrate data from the temporary files. The resulting -file will have much better image quality. If this is the first time you heard -about this, you should consult some guides available on the Net.

    +

    2-pass encoding: the name comes from the fact that this method + encodes the file twice. The first encoding (dubbed pass) + creates some temporary files (*.log) with a size of few megabytes, do not + delete them yet (you can delete the AVI). In the second pass, the 2-pass + output file is created, using the bitrate data from the temporary files. The + resulting file will have much better image quality. If this is the first time + you heard about this, you should consult some guides available on the + Net.

    This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two -commands are needed:
    -    rm frameno.avi - remove this file, which - can come from a previous 3-pass encoding (it interferes with current one)
    -    mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options - -o movie.avi -pass 1
    -    mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options -o movie.avi -pass 2

    + commands are needed:
    +     rm frameno.avi - remove this file, which + can come from a previous 3-pass encoding (it interferes with current + one)
    +     mencoder -dvd 2 -lavcopts + -vcodec=mpeg4:more_options -o movie.avi -pass 1
    +     mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options + -o movie.avi -pass 2

    3-pass encoding: this is an extension of 2-pass encoding, where the audio encoding takes place in a separate pass. This method enables @@ -143,29 +148,33 @@ commands are needed:

        rm frameno.avi - remove this file, which can come from a previous 3-pass encoding (it interferes with current one)
    -    mencoder -dvd 2 -ovc frameno - -o frameno.avi
    -    mencoder -dvd 2 - -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 1
    -    mencoder -dvd 2 - -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 2
    +     mencoder -dvd 2 -ovc frameno + -o frameno.avi
    +     mencoder -dvd 2 + -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 1
    +     mencoder -dvd 2 + -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 2

    2 or 3-pass encoding using internal libavcodec controller: -Optionally you can use libavcodec's internal 2 or 3-pass mode, it may gives you -better final rate accuracy than using the external, DivX4-inspired 2-pass rate -controler with libavcodec.

    + Optionally you can use libavcodec's internal 2 or 3-pass mode, it may give + you better final rate accuracy than using the external, DivX4-inspired 2-pass + rate controler with libavcodec.

    2.4.3.2 Rescaling movies

    @@ -185,7 +194,9 @@ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi< fast bilinear.

    Usage:
    -    mencoder sample-svcd.mpg -lavcopts vcodec=mpeg4:more_options -vop scale=640:480 -sws 2 -o output.avi

    +     mencoder sample-svcd.mpg -lavcopts + vcodec=mpeg4:more_options -vop scale=640:480 -sws 2 -o + output.avi

    2.4.3.3 Stream copying

    @@ -194,26 +205,28 @@ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi< copy them. This section is about copying.

    2.4.3.4 Fixing AVIs with broken index or interleaving

    Easiest thing. We simply copy the video and audio streams, and -MEncoder generates the index. Of course this cannot fix possible bugs in -the video and/or audio streams. It also fixes files with broken interleaving, -thus the -ni option won't be needed for them anymore.

    + MEncoder generates the index. Of course this cannot fix possible bugs + in the video and/or audio streams. It also fixes files with broken + interleaving, thus the -ni option won't be needed for them + anymore.

    Command: mencoder -idx input.avi -ovc copy -oac copy -o output.avi

    @@ -221,8 +234,8 @@ thus the -ni option won't be needed for them anymore.

    2.4.3.5 Encoding with the libavcodec codec family

    libavcodec provides simple encoding to a -lot of interesting video and audio formats (currently its audio codecs are -unsupported). You can encode to the following codecs:

    + lot of interesting video and audio formats (currently its audio codecs are + unsupported). You can encode to the following codecs: