1.ffmpeg+mencoder环境搭建
引用
if test x$WITHBMP = xyes; then
AC_DEFINE([HAVE_BMP], 1, [User wants beep media player plugin built])
AM_CONDITIONAL([HAVE_XMMS], true)
AM_CONDITIONAL([HAVE_BMP], true)
fi
if test x$WITHDRM = xyes; then
改成
if test x$WITHBMP = xyes; then
AC_DEFINE([HAVE_BMP], 1, [User wants beep media player plugin built])
AM_CONDITIONAL([HAVE_XMMS], true)
AM_CONDITIONAL([HAVE_BMP], true)
else
AC_MSG_NOTICE(no bmp build configured)
AM_CONDITIONAL([HAVE_BMP], false)
fi
if test x$WITHDRM = xyes; then
fi
if test x$WITHDRM = xyes; then
if test x$WITHBMP = xyes; then
else
fi
if test x$WITHDRM = xyes; then
引用
2c2
< configuration: --prefix=/usr --enable-gpl --enable-shared --enable-mp3lame --enable-amr_nb --enable-amr_wb --enable-amr_if2 --enable-libogg --enable-vorbis --enable-xvid --enable-a52 --enable-a52bin --enable-faadbin --enable-dts --enable-pp --enable-faad --enable-faac --enable-x264 --enable-pthreads --disable-ffserver --disable-ffplay
---
> configuration: --prefix=/usr/local --enable-mp3lame
6c6
< built on Jan 30 2007 17:55:22, gcc: 4.1.1 20061011 (Red Hat 4.1.1-30)
---
> built on Jan 30 2007 17:46:19, gcc: 4.1.1 20061011 (Red Hat 4.1.1-30)
40c40
<DE gxf GXF format
---
>D gxf GXF format
72c72
<DE ogg Ogg Vorbis
---
>D ogg Ogg
111d110
<DEA aac
113c112
<DEA ac3
---
> EA ac3
132,133d130
<DEA amr_nb
<DEA amr_wb
147d143
<D A dts
164c160
<DEV DT h264
---
>D V DT h264
190d185
<D A mpeg4aac
275d269
< EV xvid
<
---
>
6c6
<
---
>
40c40
<
---
>
72c72
<
---
>
111d110
<
113c112
<
---
>
132,133d130
<
<
147d143
<
164c160
<
---
>
190d185
<
275d269
<
./configure --prefix=/usr/local --enable-gui --enable-largefiles
make
(sudo make install)
2.常见操作说明
引用
Main options:
-L show license
-h show help
-version show version
-formats show available formats, codecs, protocols, ...
-f fmt force format
-i filename input file name
-y overwrite output files
-t duration set the recording time
-fs limit_size set the limit file size
-ss time_off set the start time offset
-itsoffset time_offset the input ts offset
-title string set the title
-timestamp time set the timestamp
-author string set the author
-copyright string set the copyright
-comment string set the comment
-album string set the album
-v verbose control amount of logging
-target type specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ...)
-dframes number set the number of data frames to record
-scodec codec force subtitle codec ('copy' to copy stream)
-newsubtitle add a new subtitle stream to the current output stream
-slang code set the ISO 639 language code (3 letters) of the current subtitle stream
Video options:
-vframes number set the number of video frames to record
-r rate set frame rate (Hz value, fraction or abbreviation)
-s size set frame size (WxH or abbreviation)
-aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-croptop size set top crop band size (in pixels)
-cropbottom size set bottom crop band size (in pixels)
-cropleft size set left crop band size (in pixels)
-cropright size set right crop band size (in pixels)
-padtop size set top pad band size (in pixels)
-padbottom size set bottom pad band size (in pixels)
-padleft size set left pad band size (in pixels)
-padright size set right pad band size (in pixels)
-padcolor color set color of pad bands (Hex 000000 thru FFFFFF)
-vn disable video
-vcodec codec force video codec ('copy' to copy stream)
-sameq use same video quality as source (implies VBR)
-pass n select the pass number (1 or 2)
-passlogfile file select two pass log file name
-newvideo add a new video stream to the current output stream
Subtitle options:
-scodec codec force subtitle codec ('copy' to copy stream)
-newsubtitle add a new subtitle stream to the current output stream
-slang code set the ISO 639 language code (3 letters) of the current subtitle stream
-L
-h
-version
-formats
-f fmt
-i filename
-y
-t duration
-fs limit_size
-ss time_off
-itsoffset time_off
-title string
-timestamp time
-author string
-copyright string
-comment string
-album string
-v verbose
-target type
-dframes number
-scodec codec
-newsubtitle
-slang code
Video options:
-vframes number
-r rate
-s size
-aspect aspect
-croptop size
-cropbottom size
-cropleft size
-cropright size
-padtop size
-padbottom size
-padleft size
-padright size
-padcolor color
-vn
-vcodec codec
-sameq
-pass n
-passlogfile file
-newvideo
Subtitle options:
-scodec codec
-newsubtitle
-slang code