# HG changeset patch # User gabucino # Date 1015152843 0 # Node ID 40b48a0a780e83f67cff2e4e74e6734e4e19a0f8 # Parent 8e6ccd3e53254d290cc6e581536a297619592ce0 documented Multifile JPEG/PNG input (-mf) diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/Hungarian/documentation.html --- a/DOCS/Hungarian/documentation.html Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/Hungarian/documentation.html Sun Mar 03 10:54:03 2002 +0000 @@ -151,6 +151,7 @@
  • 2.4.3.3 Stream másolása
  • 2.4.3.4 Hibás index-ű AVI-k rendbehozása
  • 2.4.3.5 Enkódolás a libavcodec codec-ekkel
  • +
  • 2.4.3.6 Enkódolás több bemeneti file-ból (JPEG, PNG)
  • 2.4.4 Szintaxis
  • 2.4.5 Opciók
  • diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/Hungarian/encoding.html --- a/DOCS/Hungarian/encoding.html Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/Hungarian/encoding.html Sun Mar 03 10:54:03 2002 +0000 @@ -238,6 +238,57 @@ vcodec opciónak, pl : -lavcopts vcodec=msmpeg4

    +

    2.4.3.6. Enkódolás több bemeneti file-ból (JPEG, PNG)

    + +

    A MEncoder képes több JPEG vagy PNG file-ból filmet létrehozni. + Egyszerű framecopy használatával pedig MJPEG (Motion JPEG) vagy MPNG + (Motion PNG) filmek hozhatók létre.

    + +

    A folyamat magyarázata

    + +

    Először a MEncoder dekódolja a bemeneti fileokat egy + rendelkezésre álló és szabadonválasztott MJPEG dekóderrel (PNG-k dekódolása + esetén csak a beépitett PNG dekóder használható). Alapértelmezésben az + ffmjpeg codec-et próbálja használni, így ajánlott libavcodec-kel + fordítani. Ennek a codecnek a legnagyobb hátránya hogy bizonyos JPEG + fileokat nem tud kezelni (ilyenkor zöld kimenet látható). Ilyenkor különböző + képkonvertáló programokkal előtte konvertáld át ezeket a MEncoder + által is emészthető formába.
    + Választhatsz más dekódert is, például az mcmjpg32.dll-t + (MainConcept Motion JPEG). Ilyenkor meg kell nézni a codecs.conf + fileban hogy az adott codecre milyen névvel lehet hivatkozni (videocodec + sor), és utána ezt a nevet a -vc opció után írni. A fenti + példát véve: -vc mjpeg +

    + +

    A MEncoder ezután a kiválasztott kimeneti codecnek adja a + dekódolt képet (pl DivX4, Xvid, ffmpeg msmpeg4, stb). Vigyázat: a PNG + dekóder jelenleg csak RGB formátumú képek kiadására képes, így nem + használható olyan codecekkel amelyek YUV formátumot várnak. Ilyen + például a DivX4, vagy az ffmpeg-beli msmpeg4.

    + +

    Példák

    + +

    Az -mf opció magyarázata a lenti összefoglaló + Opciók fejezetben, illetve a manpage-ben található.

    + +

    DivX4 film létrehozása az aktuális könyvtárban található összes JPEG fileból :
    +   mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc divx4 -o + kimenet.avi

    + +

    MJPEG (Motion JPEG) film létrehozása az aktuális könyvtárban található összes JPEG fileból :
    +   mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc copy + -o kimenet.avi

    + +

    Tömörítetlen film létrehozása az aktuális könyvtárban található összes PNG fileból :
    +   mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc raw -o + kimenet.avi

    + +

    MPNG (Motion PNG) film létrehozása az aktuális könyvtárban található összes PNG fileból :
    +   mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc copy + -o kimenet.avi

    + +

    2.4.4. Szintaxis

      mencoder [opciók] [bemeneti file] [opciók] ...

    diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/documentation.html --- a/DOCS/documentation.html Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/documentation.html Sun Mar 03 10:54:03 2002 +0000 @@ -151,6 +151,7 @@
  • 2.4.3.3 Streamcopy
  • 2.4.3.4 Fixing AVIs with broken index
  • 2.4.3.5 Encoding with the libavcodec codec family
  • +
  • 2.4.3.6 Encoding from multiple input image files (MJPEG/MPNG)
  • 2.4.4 Syntax
  • 2.4.5 Available options
  • diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/encoding.html --- a/DOCS/encoding.html Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/encoding.html Sun Mar 03 10:54:03 2002 +0000 @@ -228,6 +228,54 @@     mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg

    +

    2.4.3.6. Encoding from multiple input image files (JPEGs or PNGs)

    + +

    MEncoder is capable of creating movies from one or more JPEG or PNG + files. With simple framecopy it can create MJPEG (Motion JPEG) or MPNG + (Motion PNG) files.

    + +

    Explanation of the process

    + +

    MEncoder decodes the input image(s) with an available MJPEG + video codec (when decoding PNGs, it will use the internal PNG decoder). By + default it uses ffmjpeg, so you have to compile with libavcodec + support (which is recommended anyways). Its disadvantage is that it can't + handle some JPEG types (green image will be encoded for these). Use some + external utility to convert those images into edible format.
    You can + freely choose any other MJPEG decoder, like mcmjpg32.dll + (MainConcept Motion JPEG) if installed, and after checking + codecs.conf and checking the videocodec line which + refers to this file, you'll learn you have to use the -vc mjpeg + option for it. +

    + +

    MEncoder then feeds the decoded image to the chosen video compressor + (DivX4, Xvid, ffmpeg msmpeg4, etc...). Watch for the PNG decoder, as + currently it can output only to RGB formats, thus can't be used with codecs + that require YUV as input, like DivX4 or ffmpeg's msmpeg4.

    + +

    Examples

    + +

    The explanation of the -mf option can be found below in the + global Options section and in the manpage.

    + +

    Creating a DivX4 file from all the JPEG files in the current dir :
    +   mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc divx4 -o + output.avi

    + +

    Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current dir :
    +   mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc copy + -o output.avi

    + +

    Creating an uncompressed file from all the PNG files in the current dir :
    +   mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc raw -o + output.avi

    + +

    Creating a Motion PNG (MPNG) file from all the PNG files in the current dir :
    +   mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc copy + -o output.avi

    + +

    2.4.4. Syntax

      mencoder [options] [input file] [options] ...

    @@ -318,15 +366,28 @@ + -mf multifile options + + Used when encoding from multiple JPEG files. Its sub-options are:
    +   on - turns on multifile support
    +   w=<value> - width of the output file
    +   h=<value> - height of the output file
    +   fps=<value> - fps of the output file
    +   type=<value> - type of input files (available types : jpeg, png)
    + + + + + -divx4opts If encoding to DivX4, you can specify its parameters here, like:
      -divx4opts br=1800:deinterlace:key=250
    Common options: (for full list, check the manpage!)
      help - get help
    -   br=XXX - specify bitrate in kbit <4-16000> or bit <16001-24000000>
    -   q=XXXX - quality (1-fastest, 5-best - default 5)
    -   key=XXXX - keyframe interval
    +   br=<value> - specify bitrate in kbit <4-16000> or bit <16001-24000000>
    +   q=<value> - quality (1-fastest, 5-best - default 5)
    +   key=<value> - keyframe interval
    @@ -337,10 +398,10 @@   -lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250
    Common options: (for full list, check the manpage!)
      help - get help
    -   vcodec=XXX - select videocodec (for the full list, see the libavcodec section above)
    -   vbitrate=XXX - specify bitrate in kbit <4-16000> or bit <16001-24000000>
    +   vcodec=<value> - select videocodec (for the full list, see the libavcodec section above)
    +   vbitrate=<value> - specify bitrate in kbit <4-16000> or bit <16001-24000000>
      vhq - high quality
    -   keyint=XXX - keyframe interval
    +   keyint=<value> - keyframe interval
    @@ -353,8 +414,8 @@ Common options: (for full list, check the manpage!)
      help - get help
      cbr - select CBR MP3 (default is VBR)
    -   br=XXX - specify bitrate in kbit <0-1024> (this is for CBR only!)
    -   q=XXXX - quality (0-highest, 9-fastest - default 0) (this is for VBR only!)
    +   br=<value> - specify bitrate in kbit <0-1024> (this is for CBR only!)
    +   q=<value> - quality (0-highest, 9-fastest - default 0) (this is for VBR only!)
    diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/mencoder.1 --- a/DOCS/mencoder.1 Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/mencoder.1 Sun Mar 03 10:54:03 2002 +0000 @@ -26,6 +26,7 @@ .RB [ \-ac3file\ ] .RB [ \-ovc\ ] .RB [ \-oac\ ] +.RB [ \-mf\ ] .RB [ \-divx4opts\ ] .RB [ \-lavcopts\ ] .RB [ \-lameopts\ ] @@ -40,7 +41,7 @@ .RB [ \-ffourcc\ fourcc ] .RB [ \-ss\