[Pkg-gstreamer-commits] [SCM] GStreamer Bad Plugins 1.0 Packaging branch, master, updated. debian/0.11.90-1-10-g766aee4
Sebastian Dröge
sebastian.droege at collabora.co.uk
Tue May 22 12:10:50 UTC 2012
The following commit has been merged in the master branch:
commit 5e3c96e86c4cc2a17d1dc1084084b56b9ebb28e9
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Tue May 22 11:47:57 2012 +0200
debian/patches/0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch: Patch from upstream GIT to fix vp8 encoder with libvpx 1.1.0
diff --git a/debian/changelog b/debian/changelog
index 7048263..024218d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ gst-plugins-bad1.0 (0.11.91-1) experimental; urgency=low
+ Update Standards-Version.
* debian/build-deps.in:
+ Drop lv2core dependency, not needed anymore.
+ * debian/patches/0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch:
+ + Patch from upstream GIT to fix vp8 encoder with libvpx 1.1.0.
-- Sebastian Dröge <slomo at debian.org> Mon, 21 May 2012 16:00:47 +0200
diff --git a/debian/patches/0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch b/debian/patches/0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch
new file mode 100644
index 0000000..d7fd525
--- /dev/null
+++ b/debian/patches/0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch
@@ -0,0 +1,40 @@
+From 332f715208d23f233309aa1f84619a887bbe0ed6 Mon Sep 17 00:00:00 2001
+From: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
+Date: Fri, 18 May 2012 11:46:55 +0000
+Subject: 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
+---
+diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c
+index d21ed23..7c8b2db 100644
+--- a/ext/vp8/gstvp8enc.c
++++ b/ext/vp8/gstvp8enc.c
+@@ -716,6 +716,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,
++ info->width * info->height, cfg.g_w * cfg.g_h);
++
+ cfg.g_w = info->width;
+ cfg.g_h = info->height;
+ cfg.g_timebase.num = info->fps_d;
+@@ -739,7 +743,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;
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/debian/patches/series b/debian/patches/series
index 2497acb..c209868 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001-vp8enc-fix-target-bitrate-config-with-libvpx-1.1.0.patch
99_ltmain_as-needed.patch
--
GStreamer Bad Plugins 1.0 Packaging
More information about the Pkg-gstreamer-commits
mailing list