mencoder使用

mencoder是mplayer附带的一个工具,可以进行视频转码、分割、合并。

 

分割:
    mencoder -ss 开始时间 -oac copy -ovc copy -endpos 终止时间 文件名 -o 目标文件名
合并:
    mencoder -ovc copy -oac copy 文件名1 文件名2 -o 目标文件名

 

参数说明:

    -ovc: output video codec

              Encode with the given audio codec (no default set).
              NOTE: Use -oac help to get a list of available audio codecs.

              EXAMPLE:
                 -oac copy
                      no encoding, just streamcopy
                 -oac pcm
                      Encode to uncompressed PCM.
                 -oac mp3lame
                      Encode to MP3 (using LAME).
                 -oac lavc
                      Encode with a libavcodec codec.

 

    -oac: output audio codec

              Encode to the specified container format (default: AVI).
              NOTE: Use -of help to get a list of available container formats.

              EXAMPLE:
                 -of avi
                      Encode to AVI.
                 -of mpeg
                      Encode to MPEG (also see -mpegopts).
                 -of lavf
                      Encode with libavformat muxers (also see -lavfopts).
                 -of rawvideo
                      raw video stream (no muxing - one video stream only)
                 -of rawaudio
                      raw audio stream (no muxing - one audio stream only)

你可能感兴趣的:(mencoder使用)