Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Makefile.ffmpeg: upgraded to ffmpeg 2.8, x264-snapshot-20150917-2245
  • Loading branch information
perexg committed Sep 18, 2015
1 parent d0e7876 commit c44cc22
Showing 1 changed file with 65 additions and 7 deletions.
72 changes: 65 additions & 7 deletions Makefile.ffmpeg
Expand Up @@ -52,20 +52,20 @@ export PATH := $(LIBAVDIR)/build/ffmpeg/bin:$(PATH)
ECFLAGS = -I$(LIBAVDIR)/build/ffmpeg/include
ELIBS = -L$(LIBAVDIR)/build/ffmpeg/lib -ldl

CONFIGURE = PKG_CONFIG=/tmp/nobin/pkg-config ./configure
CONFIGURE = PKG_CONFIG=/tmp/nobin/pkg-config ./configure

FFMPEG = ffmpeg-2.6.3
FFMPEG = ffmpeg-2.8
FFMPEG_TB = $(FFMPEG).tar.bz2
FFMPEG_URL = http://ffmpeg.org/releases/$(FFMPEG_TB)
FFMPEG_SHA1 = a3307d20f97e8b75a113712e0258ab11d548d280
FFMPEG_SHA1 = b57cbd0d6c9e6ae48edcfce9a46765eeb7291efc

EXTLIBS = libx264 libvorbis libvpx
COMPONENTS = avutil avformat avcodec swresample swscale avresample
PROTOCOLS = file
DECODERS = mpeg2video mp2 ac3 eac3 h264 h264_vdpau aac aac_latm vorbis libvorbis
DECODERS = mpeg2video mp2 ac3 eac3 h264 h264_vdpau hevc aac aac_latm vorbis libvorbis
ENCODERS = mpeg2video mp2 libx264 libvpx_vp8 libvpx_vp9 aac libaacplus vorbis libvorbis
MUXERS = mpegts mpeg2dvd matroska webm
BSFS = h264_mp4toannexb
BSFS = h264_mp4toannexb hevc_mp4toannexb

LIBOGG = libogg-1.3.2
LIBOGG_TB = $(LIBOGG).tar.gz
Expand All @@ -77,10 +77,15 @@ LIBVORBIS_TB = $(LIBVORBIS).tar.gz
LIBVORBIS_URL = http://downloads.xiph.org/releases/vorbis/$(LIBVORBIS_TB)
LIBVORBIS_SHA1 = 10c7fee173178d72855aa7593dfe49d9b3d6c804

LIBX264 = x264-snapshot-20141218-2245
LIBX264 = x264-snapshot-20150917-2245
LIBX264_TB = $(LIBX264).tar.bz2
LIBX264_URL = http://ftp.via.ecp.fr/pub/videolan/x264/snapshots/$(LIBX264_TB)
LIBX264_SHA1 = 24a3b20e2c49a112e40df9f64885cbd81250298a
LIBX264_SHA1 = c3aaa03edc595b0db038efd081364aacee0fd7fa

LIBX265 = x265_1.7
LIBX265_TB = $(LIBX265).tar.gz
LIBX265_URL = http://ftp.videolan.org/pub/videolan/x265/$(LIBX265_TB)
LIBX265_SHA1 = ee078ffe6858d17a25a268b69a1c651ef3b63945

LIBVPX = libvpx-1.4.0
LIBVPX_TB = $(LIBVPX).tar.bz2
Expand All @@ -92,6 +97,13 @@ YASM_TB = $(YASM).tar.gz
YASM_URL = http://www.tortall.net/projects/yasm/releases/$(YASM_TB)
YASM_SHA1 = b7574e9f0826bedef975d64d3825f75fbaeef55e

MFXDIS_HASH = 1582088ee7670ab1c96cefe844d9647274c0c841
MFXDIS = mfx_dispatch-$(MFXDIS_HASH)
MFXDIS_TB = $(MFXDIS_HASH).tar.gz
MFXDIS_URL = https://github.com/lu-zero/mfx_dispatch/archive/$(MFXDIS_TB)
MFXDIS_SHA1 = 5a1f0cab45d675eb6a29f3dd38676f1e343e6ef1


.PHONY: build
build: $(LIBAVDIR)/$(FFMPEG)/.tvh_build

Expand All @@ -112,6 +124,26 @@ $(LIBAVDIR)/$(YASM)/.tvh_build: \
$(MAKE) -C $(LIBAVDIR)/$(YASM) install
@touch $@

#
# MFX Dispatcher
#

$(LIBAVDIR)/$(MFXDIS)/.tvh_download:
$(call DOWNLOAD,$(MFXDIS_URL),$(LIBAVDIR)/$(MFXDIS_TB),$(MFXDIS_SHA1))
$(call UNTAR,$(MFXDIS_TB),z)
@touch $@

$(LIBAVDIR)/$(MFXDIS)/.tvh_build: \
$(LIBAVDIR)/$(MFXDIS)/.tvh_download
cd $(LIBAVDIR)/$(MFXDIS) && libtoolize --force --copy --automake
cd $(LIBAVDIR)/$(MFXDIS) && aclocal
cd $(LIBAVDIR)/$(MFXDIS) && automake --foreign --copy --add-missing
cd $(LIBAVDIR)/$(MFXDIS) && $(CONFIGURE) \
--prefix=/ffmpeg
DESTDIR=$(LIBAVDIR)/build \
$(MAKE) -C $(LIBAVDIR)/$(MFXDIS) install
@touch $@

#
# libogg & libvorbis
#
Expand Down Expand Up @@ -193,6 +225,32 @@ $(LIBAVDIR)/$(LIBX264)/.tvh_build: \

endif

#
# libx265
#

$(LIBAVDIR)/$(LIBX265)/.tvh_download:
$(call DOWNLOAD,$(LIBX265_URL),$(LIBAVDIR)/$(LIBX265_TB),$(LIBX265_SHA1))
$(call UNTAR,$(LIBX265_TB),z)
@touch $@

$(LIBAVDIR)/$(LIBX265)/.tvh_build: \
$(LIBAVDIR)/$(LIBX265)/.tvh_download \
$(LIBAVDIR)/$(YASM)/.tvh_build
cd $(LIBAVDIR)/$(LIBX265) && $(CONFIGURE) \
--prefix=/ffmpeg \
--enable-static \
--disable-shared \
--disable-avs \
--disable-swscale \
--disable-lavf \
--disable-ffms \
--disable-gpac \
--disable-lsmash
DESTDIR=$(LIBAVDIR)/build \
$(MAKE) -C $(LIBAVDIR)/$(LIBX265) install
@touch $@

#
# libvpx (VP8)
#
Expand Down

0 comments on commit c44cc22

Please sign in to comment.