milis/talimatname/genel/f/ffmpeg/talimat

59 lines
2.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Ses ve videoyu kaydetmek, dönüştürmek ve akışlamak için eksiksiz, çapraz platformlu bir çözüm.
2016-02-24 01:27:23 +01:00
# URL: http://ffmpeg.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
2017-12-21 20:36:57 +01:00
# Gerekler: yasm opus fdk-aac x264 x265 liba52 libass libva libwebp pulseaudio libvdpau freetype lame sdl libvorbis libogg xvid faac faad2 libtheora alsa-lib openjpeg libvpx xorg-libxext xorg-libxfixes jack
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=ffmpeg
2017-12-21 20:36:57 +01:00
surum=3.4
2017-10-28 14:10:23 +02:00
devir=1
kaynak=(http://ffmpeg.org/releases/ffmpeg-$surum.tar.xz
2017-07-25 21:49:06 +02:00
ffmpeg-x264-10bit.sh)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2017-07-25 21:49:06 +02:00
[ -e '/usr/lib/pkgconfig/libwebp.pc' ] && PKGMK_FFMPEG+=' --enable-libwebp'
[ -e '/usr/lib/pkgconfig/vdpau.pc' ] && PKGMK_FFMPEG+=' --enable-vdpau'
[ -e '/usr/lib/pkgconfig/freetype2.pc' ] && PKGMK_FFMPEG+=' --enable-libfreetype'
[ -e '/usr/lib/pkgconfig/x264.pc' ] && PKGMK_FFMPEG+=' --enable-libx264'
[ -e '/usr/lib/pkgconfig/x265.pc' ] && PKGMK_FFMPEG+=' --enable-libx265'
[ -e '/usr/lib/pkgconfig/libass.pc' ] && PKGMK_FFMPEG+=' --enable-libass'
[ -e '/usr/include/lame/lame.h' ] && PKGMK_FFMPEG+=' --enable-libmp3lame'
[ -e '/usr/lib/pkgconfig/opus.pc' ] && PKGMK_FFMPEG+=' --enable-libopus'
[ -e '/usr/lib/pkgconfig/vpx.pc' ] && PKGMK_FFMPEG+=' --enable-libvpx'
[ -e '/usr/lib/pkgconfig/vorbis.pc' ] && PKGMK_FFMPEG+=' --enable-libvorbis'
[ -e '/usr/lib/pkgconfig/theora.pc' ] && PKGMK_FFMPEG+=' --enable-libtheora'
[ -e '/usr/lib/pkgconfig/fdk-aac.pc' ] && PKGMK_FFMPEG+=' --enable-libfdk-aac --enable-nonfree'
if [ -e '/usr/lib/pkgconfig/gnutls.pc' ]; then
PKGMK_FFMPEG+=' --enable-gnutls'
else
PKGMK_FFMPEG+=' --enable-openssl --enable-nonfree'
fi
./configure ${PKGMK_FFMPEG} \
--prefix=/usr \
--disable-debug \
--disable-doc \
--enable-gpl \
--enable-version3 \
--enable-shared \
--enable-pic \
2017-12-21 20:36:57 +01:00
--enable-libpulse \
2017-07-25 21:49:06 +02:00
--enable-avfilter \
--enable-avresample \
--enable-postproc \
--enable-pthreads \
--enable-swresample
2017-12-21 20:36:57 +01:00
make || make
2017-07-25 21:49:06 +02:00
make DESTDIR=$PKG install install-man
rm -r $PKG/usr/share/ffmpeg/examples
if [ -e '/usr/lib/pkgconfig/x264.pc' ]; then
install -m 0755 -D $SRC/ffmpeg-x264-10bit.sh \
$PKG/usr/bin/ffmpeg-x264-10bit
fi
2016-02-24 01:27:23 +01:00
}