トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

LN-ffmpeg

FFmpeg

Build

# yum -y install autoconf automake make gcc gcc-c++ pkgconfig wget libtool zlib-devel
# yum -y install git
# yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum -y install --enablerepo=epel yasm
# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
  # cd mplayer
  # ./configure --prefix=$HOME/opt --codecsdir=/usr/lib/codecs/ --enable-gui --with-extraincdir=$HOME/opt/include  --with-extralibdir=$HOME/lib
# cd ./H264
# git clone git://git.videolan.org/x264
# cd x264
# ./configure --enable-shared --prefix=$HOME/opt
## ./configure --enable-shared --enable-pthread --prefix=$HOME/opt
# make
# make install
# cd ./AAC
# git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
# cd fdk-aac
# autoreconf -fiv
# ./configure --prefix=$HOME/opt
# make
# make install
# cd ./FFMPEG
# git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
# cd ffmpeg
# ./configure --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libx264 --enable-shared --arch=x86_64 --enable-pthreads
# make
# make install
# ffmpeg -version

zypper

ffmpeg-3
zypper ar -f http://packman.jacobs-university.de/suse/openSUSE_Leap_15.0/ packman
zypper ar -f http://download.videolan.org/SuSE/Leap_15.0/ VideoLan
zypper install ffmpeg-3

  使い方 jpgに出力 20:46 から 14秒分の 4fps の画像をJPG で出力

> ~/opt/ffmpeg/ffmpeg -i ~/data/foo.avi -ss 00:20:46 -t 14 -r 4 -qscale 1 -qmin 1 -qmax 1 -f image2 out%6d.jpg