[longomatch] Keep DAR using black borders
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Keep DAR using black borders
- Date: Sat, 24 Jul 2010 19:58:09 +0000 (UTC)
commit d36988b3e4b60a1145d66e9bdd7ee2aa63c70389
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Jul 24 21:56:23 2010 +0200
Keep DAR using black borders
libcesarplayer/src/gst-video-editor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/src/gst-video-editor.c b/libcesarplayer/src/gst-video-editor.c
index 7af9edb..d3973e2 100644
--- a/libcesarplayer/src/gst-video-editor.c
+++ b/libcesarplayer/src/gst-video-editor.c
@@ -479,6 +479,7 @@ gve_apply_new_caps (GstVideoEditor * gve)
caps = gst_caps_new_simple ("video/x-raw-yuv",
"width", G_TYPE_INT, gve->priv->width,
"height", G_TYPE_INT, gve->priv->height,
+ "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1,
"framerate", GST_TYPE_FRACTION, 25, 1, NULL);
g_object_set (G_OBJECT (gve->priv->capsfilter), "caps", caps, NULL);
@@ -517,6 +518,7 @@ gve_create_video_encode_bin (GstVideoEditor * gve)
g_object_set (G_OBJECT (gve->priv->textoverlay), "font-desc",
"sans bold 20", "shaded-background", TRUE, "valignment", 2,
"halignment", 2, NULL);
+ g_object_set (G_OBJECT (gve->priv->videoscale), "add-borders", TRUE, NULL);
g_object_set (G_OBJECT (gve->priv->video_encoder), "bitrate",
gve->priv->video_bitrate, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]