diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/gst-plugins-vp8 |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/gst-plugins-vp8')
5 files changed, 115 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-vp8/Manifest b/media-plugins/gst-plugins-vp8/Manifest new file mode 100644 index 000000000000..45b1136f26e5 --- /dev/null +++ b/media-plugins/gst-plugins-vp8/Manifest @@ -0,0 +1,7 @@ +AUX gst-plugins-vp8-0.10.23-drop-vpx-compat-defines.patch 740 SHA256 65a5a2a23fd337d8781fc60310fbeeeeaba770346e02f991b1a615d8ccb89ef2 SHA512 10caf0c389717eec12636a6a848b4450b17c727bd05c835f6fe789c2f2c49056ea7cb17ed39818c935ce7dfbdf5ee4545cecd06b061d12ce8a9983a599c33eca WHIRLPOOL 3b314da88f874a71d51a8b99a48aa4ede9bae286835397cd22086cb36aeaf70ac3e51c74ee0b1c5a8196a74b3c6b5984d5b9d7608b171d9ae5ea81f806a759c3 +AUX gst-plugins-vp8-0.10.23-libvpx-1.1.patch 1590 SHA256 9ed46ba6135912426420c835f1b5f4c63d510518fad80776f96d396518661620 SHA512 3a3c7664202632526d5012955c839f1191042cb85572bf418ecdbf90c39647dfd8002d7e185c8c9e6a934c059ead29650df9557edf3645d0afaada73ebf5e26e WHIRLPOOL 9dd77d5f088e7a38781091b8b8dd09b32987dea416c5fc3b0fdb247d89236b344f1cb9b25cd3cb718f907a7ff67b463ceb755df16b49a75c83e4e39686045394 +DIST gst-plugins-bad-0.10.23.tar.xz 3155044 SHA256 03cf0786391c64625569072e904082a08861f05a63d64b2f8e8dad3f26d81bf9 SHA512 6437dd12707ef29651f4014b54612cf2a3a42ed4e05a1c5f4a432d80e27efd2abc0df891ebcfdc9e7b2cf9f71a15b88e48b3aa6db24a178ed6de3b1bdf4c3dc4 WHIRLPOOL dd657100909c32ab75cb8aada8db24d68ddf7a10dc0eb055982d7e4d9ae7a50c364eeac9017cea8b176734fc09cf7f8e4e8f52d24e3173806633ddb8a7acd93c +EBUILD gst-plugins-vp8-0.10.23-r3.ebuild 878 SHA256 db42f30e72a40215c26dc44154010a8ec57c0b10679551f00659020bdf652bf5 SHA512 6f8405100810b57d3949f3bb204eb49bd4cbc2d9d1b53ff24b5d0613e1e5f67c2628608bc8363f0517ff2cfc9f1e2236262043d2b80804304fed6d9015301614 WHIRLPOOL e7ff057385120253777180c5304ea917a2a1ded4353a776eded3cc2e8cb413510e7b6a40e62e40e229544f1c9b6a4776ab328193905acc41b0eadbc2a660433e +MISC ChangeLog 2810 SHA256 78c6bbcb4382aa283d24d39a53568e3d1e09aa2cc875622aada8c5c7a9b68564 SHA512 73396d6d9447ab38f8f2b6678c14f28ca78989a2d93137da159d49e16244d3a5a740d5607e611fa42df8d8990db5cead4f1a96b83975fd5dee03bd3b747cf0df WHIRLPOOL afc895b4a75df478d03434cd8c3ec424919e73bad75b23e3df822f3eb0c64f456a7042228d47ecee822ced7c19d0845d423ebdefc008fbd37684eb9a938802d8 +MISC ChangeLog-2015 5034 SHA256 cd7712549d0a0f6db6a1ff58bce1098962bc5186382d28fba7e367db75819e5e SHA512 a965eff56d84124d4336949511b92a5540cda6f8383f0a90c02e5224704b9622fd61c05a499808f3ab1b4272bec778ba5130c793d206d8239191e83368dee060 WHIRLPOOL bdf2d6dd46c09b514f7e095bc72044f26cdbc25e74c3bafb7feaaede264ffb9f35a7a5aaeea18ea41227f832e2b6cbbe6c3cc8da1e37844b3cc724e4a6731a18 +MISC metadata.xml 262 SHA256 aff3dcfdbd8f863806436de702d542cc89c7d5a9b8f4224b71c6de4555d9b090 SHA512 608f0a17d576a3b23a6921272eb449a6efed76b3c4b3fdf8737b2d499b56d109186c2883c06e5c843799d2fb1606f3066c43759b40f9d7cf58b6a674c38dd0e0 WHIRLPOOL 81b06b984b66fa01e67d2803859238d53791739041068f4778a3d0b70038ad567b90d0cf7819191d7747c86d5cd03556d7f81d5efafef1006a901d516e3db703 diff --git a/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-drop-vpx-compat-defines.patch b/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-drop-vpx-compat-defines.patch new file mode 100644 index 000000000000..599ec08a188d --- /dev/null +++ b/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-drop-vpx-compat-defines.patch @@ -0,0 +1,27 @@ +diff -up gst-plugins-bad-0.10.23/ext/vp8/gstvp8utils.h.drop-compat-defines gst-plugins-bad-0.10.23/ext/vp8/gstvp8utils.h +--- gst-plugins-bad-0.10.23/ext/vp8/gstvp8utils.h.drop-compat-defines 2015-04-07 09:28:01.637679239 -0400 ++++ gst-plugins-bad-0.10.23/ext/vp8/gstvp8utils.h 2015-04-07 09:28:10.397622550 -0400 +@@ -25,23 +25,6 @@ + + G_BEGIN_DECLS + +-/* Some compatibility defines for older libvpx versions */ +-#ifndef VPX_IMG_FMT_I420 +-#define VPX_IMG_FMT_I420 IMG_FMT_I420 +-#endif +- +-#ifndef VPX_PLANE_Y +-#define VPX_PLANE_Y PLANE_Y +-#endif +- +-#ifndef VPX_PLANE_U +-#define VPX_PLANE_U PLANE_U +-#endif +- +-#ifndef VPX_PLANE_V +-#define VPX_PLANE_V PLANE_V +-#endif +- + const char * gst_vpx_error_name (vpx_codec_err_t status); + + G_END_DECLS diff --git a/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-libvpx-1.1.patch b/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-libvpx-1.1.patch new file mode 100644 index 000000000000..fd26db8c2ab7 --- /dev/null +++ b/media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-libvpx-1.1.patch @@ -0,0 +1,46 @@ +From 7e51c854b28f68e434523b83cd4bd76ea18aab54 Mon Sep 17 00:00:00 2001 +From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> +Date: Fri, 18 May 2012 12:46:55 +0100 +Subject: [PATCH] vp8enc: fix target bitrate config with libvpx 1.1.0 + +libvpx 1.1.0 disallows a bitrate of 0, which was used by +vp8enc as a default value. + +Instead, we use the default libvpx bitrate, scaled to our +video size, if no bitrate was specified. + +This fixes encoding VP8 video with libvpx 1.1.0. + +https://bugzilla.gnome.org/show_bug.cgi?id=676245 + +[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to 0.10.23] +--- + ext/vp8/gstvp8enc.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c +index b1f06e0..123d4dd 100644 +--- a/ext/vp8/gstvp8enc.c ++++ b/ext/vp8/gstvp8enc.c +@@ -732,6 +732,10 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder, + return FALSE; + } + ++ /* Scale default bitrate to our size */ ++ cfg.rc_target_bitrate = gst_util_uint64_scale (cfg.rc_target_bitrate, ++ state->width * state->height, cfg.g_w * cfg.g_h); ++ + cfg.g_w = state->width; + cfg.g_h = state->height; + cfg.g_timebase.num = state->fps_d; +@@ -755,7 +759,6 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder, + } else { + cfg.rc_min_quantizer = (gint) (63 - encoder->quality * 6.2); + cfg.rc_max_quantizer = (gint) (63 - encoder->quality * 6.2); +- cfg.rc_target_bitrate = encoder->bitrate; + } + cfg.rc_dropframe_thresh = encoder->drop_frame; + cfg.rc_resize_allowed = encoder->resize_allowed; +-- +1.8.0 + diff --git a/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r3.ebuild b/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r3.ebuild new file mode 100644 index 000000000000..2da10529ad1e --- /dev/null +++ b/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +GST_ORG_MODULE=gst-plugins-bad +inherit eutils gstreamer + +DESCRIPTION="GStreamer decoder for vpx video format" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd" +IUSE="" + +RDEPEND=">=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" + +src_prepare() { + # Fix zero-bitrate vp8 encoding with libvpx-1.1, bug #435282 + epatch "${FILESDIR}/${PN}-0.10.23-libvpx-1.1.patch" + + # Drop old compat code that makes this break with libvpx-1.4, bug #545958 (from Fedora) + epatch "${FILESDIR}/${PN}-0.10.23-drop-vpx-compat-defines.patch" + + local pdir=$(gstreamer_get_plugin_dir) + # gstbasevideo has no .pc + sed -e "s:\$(top_builddir)/gst-libs/gst/video/.*\.la:-lgstbasevideo-${SLOT}:" \ + -i "${pdir}"/Makefile.{am,in} || die +} diff --git a/media-plugins/gst-plugins-vp8/metadata.xml b/media-plugins/gst-plugins-vp8/metadata.xml new file mode 100644 index 000000000000..fb1ea7216a80 --- /dev/null +++ b/media-plugins/gst-plugins-vp8/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gstreamer@gentoo.org</email> + <name>GStreamer package maintainers</name> +</maintainer> +</pkgmetadata> |