http://ffmpeg-users.933282.n4.nabble.com/Overlay-filter-with-new-movie-filter-problem-td3301170.html
$ eix -e media-video/ffmpeg -c [I] media-video/ffmpeg (0.7_rc1@2011年07月02日): Complete solution to record, convert and stream audio and video. Includes libavcodec. $ ffmpeg -version 2>&1|head -n3 ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 2 2011 13:46:01 with gcc 4.4.5 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-vaapi --disable-ffplay --disable-vdpau --enable-libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-x11grab --enable-frei0r --enable-libfreetype --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libgsm --enable-libdirac --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libvpx --enable-libopenjpeg --disable-altivec --disable-avx --enable-pic --cpu=host --enable-hardcoded-tables下記の記述はパッケージのffmpegのバージョンが古い場合に最新版をソースから入れると欲しいオプションが追加される例です。
http://www.corbellconsulting.com/2010/07/using-ffmpeg-to-add-and-watermark-overlay-on-a-video-2/
http://ffmpeg-users.933282.n4.nabble.com/problem-with-movie-td3069917.html
http://fixedpoint.jp/ffmpeg/ffmpeg.html
http://www.ffmpeg.org/ffmpeg.html
動画に画像を書き込む場合に使うようですが使えません。
svn co svn://svn.ffmpeg.org/soc/libavfilter cd libavfilter/ sh checkout.sh cd ffmpeg/ ./configure --list-filters
export CFLAGS="-O2 -pipe -march=native" export CXXFLAGS="${CFLAGS}" export CHOST="x86_64-pc-linux-gnu" INSTALLDIR=~/ffmpeg-`date +%Y-%m-%d` mkdir ${INSTALLDIR} make distclean make clean
# あらかじめパッケージ版を入れておくと必要なライブラリが入っている場合が多いです。 # $ eix ^ffmpeg$ -c # [I] media-video/ffmpeg (0.6_p25767@2010年12月19日): Complete solution to record, convert and stream audio and video. Includes libavcodec. # sudo emerge -av libnut # sudo USE="ffmpeg" emerge -av opencv
./configure \ --prefix=${INSTALLDIR} \ --enable-gpl \ --enable-nonfree \ --enable-version3 \ --enable-gray \ --enable-small \ --enable-frei0r \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libopencv \ --enable-libdirac \ --enable-libfaac \ --enable-libfreetype \ --enable-libgsm \ --enable-libmp3lame \ --enable-libnut \ --enable-libopenjpeg \ --enable-libschroedinger \ --enable-libspeex \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libxvid \ --disable-altivec \ --disable-amd3dnow \ --disable-amd3dnowext \ --disable-mmx \ --disable-mmx2 make -j 3 make install export PATH="{$INSTALLDIR}/bin:${PATH}"
ffmpeg -i ./src.mp4 -vf "movie=0:png:./logo.png [logo]; [in][logo] overlay=10:10:1" logo.flv
0 件のコメント:
コメントを投稿