Pejman Moghadam / Slackware

Slackware 13.1 - Installing ffmpeg (with epkg)

Public domain


ffmpeg installation

su - install
cd /usr/src
DATE=$(date +%Y%m%d)
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg-${DATE}
mkdir -p /usr/src/ffmpeg-${DATE}/build
cd /usr/src/ffmpeg-${DATE}/build
../configure \
  --prefix=/usr/ \
  --mandir=/usr/man \
  --enable-pthreads \
  --enable-x11grab \
  --enable-gpl \
  --enable-postproc
make && make install DESTDIR=/usr/local/encap/ffmpeg-${DATE}
cd /usr/local/encap/
mkencap ffmpeg-${DATE}
logout
cd /usr/local/encap/
epkg ffmpeg-${DATE}

x11 capture

ffmpeg \
  -f alsa -ac 2 -i hw:0,0 \
  -f x11grab -s $(xwininfo -root | grep geometry |  awk '{print$2}') -r 10 -i :0.0 -sameq \
  -f mp4 -s $(xwininfo -root | grep geometry |  awk '{print$2}') -y intro.mp4

merge audio & video

ffmpeg -i vido.dump -itsoffset -00:00:01.00 -i audio.dump -sameq -async 44100 -y final.mp4

cut mp4 videos

ffmpeg -acodec copy -vcodec copy -ss 00:41:56 -t 00:01:30 -i input.mp4 -y output.mp4

BY: Pejman Moghadam
TAG: epkg, ffmpeg, capture
DATE: 2011-01-25 22:03:08


Pejman Moghadam / Slackware [ TXT ]