トップ «前の日記(2015年08月27日) 最新 次の日記(2015年08月30日)» 編集

Masa's blog

検索キーワード:

2015年08月29日 mencoder's options that I often use :) [長年日記]

_ mencoder's options that I often use :)

container

-of lavf -lavfopts "format=FORMAT"

 FORMAT  mpg      MPEG-1 systems and MPEG-2 PS
         asf      Advanced Streaming Format
         avi      Audio Video Interleave file
         wav      Waveform Audio
         swf      Macromedia Flash
         flv      Macromedia Flash video files
         rm       RealAudio and RealVideo
         au       SUN AU format
         nut      NUT open container format (experimental)
         mov      QuickTime
         mp4      MPEG-4 format
         ipod     MPEG-4 format with extra header flags required by Apple iPod firmware
         dv       Sony Digital Video container
         matroska Matroska

-of lavf -o outout.EXT

 .EXT will determine container format.

video codec

-ovc lavc -lavcopts "vcodec=CODEC:vbitrate=BITRATE[:vpass=PASS]"

 CODEC  asv1       ASUS Video v1
        asv2       ASUS Video v2
        dvvideo    Sony Digital Video
        ffv1       FFmpeg's lossless video codec
        ffvhuff    nonstandard 20% smaller HuffYUV using YV12
        flv        Sorenson H.263 used in Flash Video
        h261       H.261
        h263       H.263
        h263p      H.263+
        huffyuv    HuffYUV
        libtheora  Theora
        libx264    x264 H.264/AVC MPEG-4 Part 10
        ibxvid     Xvid MPEG-4 Part 2 (ASP)
        ljpeg      Lossless JPEG
        mjpeg      Motion JPEG
        mpeg1video MPEG-1 video
        mpeg2video MPEG-2 video
        mpeg4      MPEG-4 (DivX 4/5)
        msmpeg4    DivX 3
        msmpeg4v2  MS MPEG4v2
        roqvideo   ID Software RoQ Video
        rv10       an old RealVideo codec
        snow       (also see: vstrict) FFmpeg's experimental wavelet-based codec
        svq1       Apple Sorenson Video 1
        wmv1       Windows Media Video, version 1 (AKA WMV7)
        wmv2       Windows Media Video, version 2 (AKA WMV8)

 BITRATE  bitrate in KHz for video codec

 PASS     "1" means pass 1 in 2 pass mode
          "2" means pass 2 in 2 pass mode

-ovc x264 -x264encopts "bitrate=BITRATE[:pass=PASS]"

 BITRATE  bitrate in KHz for video codec

 PASS     "1" means pass 1 in 2 pass mode
          "2" means pass 2 in 2 pass mode

video filter etc

-vf "scale=SCALE_X:SCALE_Y,expand=EXPAND_X:EXPAND_Y"

 SCALE_X:SCALE_Y   screen size that movie should be shown in
 EXPAND_X:EXPAND_Y screen size that contains above screen with black border

-vf "crop=WIDTH:HEIGHT:X:Y"

 WIDTH:HEIGHT  rectangle area to crop
 X:Y           position of area to crop(left:top)
               if omitted then center

-vf "flip"     flip image upside down

-vf "mirror"   flip image leftside right

-vf "rotate=DIRECTION"

 DIRECTION     "1" means clockwise 90 degree
               "2" means counterclockwise 90 degree

-vf "eq2=GAMMA"

 GAMMA         gamma value(0.1 to 10.0, default 1.0)

-aspect ASPECT

 ASPECT            aspect ratio(ex. 16/9, 1.7777)

-ofps FRAMERATE

 FRAMERATE  frame rate per socond(ex. 24, 24000/1001, 30, 30000/1001)

audio codec

-oac lavc -lavcopts "acodec=CODEC:abitrate=BITRATE"

 CODEC  ac3        Dolby Digital (AC-3)
        adpcm_*    Adaptive  PCM  formats  - see the HTML documentation for details.
        flac       Free Lossless Audio Codec (FLAC)
        g726       G.726 ADPCM
        libfaac    Advanced Audio Coding (AAC) - using FAAC
        libmp3lame MPEG-1 audio layer 3 (MP3) - using LAME
        mp2        MPEG-1 audio layer 2 (MP2)
        pcm_*      PCM formats - see the HTML documentation for details.
        roq_dpcm   Id Software RoQ DPCM
        sonic      experimental simple lossy codec
        sonicls    experimental simple lossless codec
        vorbis     Vorbis
        wmav1      Windows Media Audio v1
        wmav2      Windows Media Audio v2

 BITRATE  bitrate in KHz for audio codec

-oac mp3lame -lameopts "abr=BITRATE"

 BITRATE  bitrate in KHz for audio codec

-oac faac -faacopts "br=BITRATE"

 BITRATE  bitrate in KHz for audio codec

audio filter

-af "resample=SAMPLE_RATE"

 SAMPLE_RATE   sampling rate(ex. 44100)

general option

-ss START_TIME

 START_TIME    start time to encode(ex. "00:01:00" starts encoding from 1minute after)

-endpos TOTAL_TIME

 TOTAL_TIME    total time to encode(ex. "01:00:00" performs encoding in 1 hour)