summaryrefslogtreecommitdiff
path: root/media-plugins/gst-plugins-vp8
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/gst-plugins-vp8
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/gst-plugins-vp8')
-rw-r--r--media-plugins/gst-plugins-vp8/Manifest1
-rw-r--r--media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-drop-vpx-compat-defines.patch27
-rw-r--r--media-plugins/gst-plugins-vp8/files/gst-plugins-vp8-0.10.23-libvpx-1.1.patch46
-rw-r--r--media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r2.ebuild25
-rw-r--r--media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r3.ebuild28
-rw-r--r--media-plugins/gst-plugins-vp8/metadata.xml5
6 files changed, 132 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-vp8/Manifest b/media-plugins/gst-plugins-vp8/Manifest
new file mode 100644
index 00000000000..68a5b655430
--- /dev/null
+++ b/media-plugins/gst-plugins-vp8/Manifest
@@ -0,0 +1 @@
+DIST gst-plugins-bad-0.10.23.tar.xz 3155044 SHA256 03cf0786391c64625569072e904082a08861f05a63d64b2f8e8dad3f26d81bf9 SHA512 6437dd12707ef29651f4014b54612cf2a3a42ed4e05a1c5f4a432d80e27efd2abc0df891ebcfdc9e7b2cf9f71a15b88e48b3aa6db24a178ed6de3b1bdf4c3dc4 WHIRLPOOL dd657100909c32ab75cb8aada8db24d68ddf7a10dc0eb055982d7e4d9ae7a50c364eeac9017cea8b176734fc09cf7f8e4e8f52d24e3173806633ddb8a7acd93c
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 00000000000..599ec08a188
--- /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 00000000000..fd26db8c2ab
--- /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-r2.ebuild b/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r2.ebuild
new file mode 100644
index 00000000000..dc95c6fdc47
--- /dev/null
+++ b/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+
+ 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/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 00000000000..a4d7003fc9f
--- /dev/null
+++ b/media-plugins/gst-plugins-vp8/gst-plugins-vp8-0.10.23-r3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 00000000000..9e260ceca3e
--- /dev/null
+++ b/media-plugins/gst-plugins-vp8/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gstreamer</herd>
+</pkgmetadata>