[longomatch] video-encoder: fix inverted width/height and use a sane par
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] video-encoder: fix inverted width/height and use a sane par
- Date: Mon, 8 Jul 2013 17:57:43 +0000 (UTC)
commit 61057be38ae9c87c688a601af2e2bb67cd5d9d0c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jul 8 19:51:11 2013 +0200
video-encoder: fix inverted width/height and use a sane par
.../Converter/GstVideoConverter.cs | 4 ++--
libcesarplayer/gst-video-encoder.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
b/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
index c23255a..6c5cb96 100644
--- a/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
+++ b/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
@@ -212,8 +212,8 @@ namespace LongoMatch.Video.Converter {
VideoMuxerType muxer,
uint video_quality,
uint audio_quality,
- uint height,
uint width,
+ uint height,
uint fps_n,
uint fps_d);
@@ -225,8 +225,8 @@ namespace LongoMatch.Video.Converter {
value.EncodingProfile.Muxer,
value.EncodingQuality.VideoQuality,
value.EncodingQuality.AudioQuality,
- value.VideoStandard.Height,
value.VideoStandard.Width,
+ value.VideoStandard.Height,
value.Framerate_n,
value.Framerate_d);
}
diff --git a/libcesarplayer/gst-video-encoder.c b/libcesarplayer/gst-video-encoder.c
index 6f390ad..fd166be 100644
--- a/libcesarplayer/gst-video-encoder.c
+++ b/libcesarplayer/gst-video-encoder.c
@@ -245,6 +245,8 @@ gst_video_encoder_create_encoder_bin (GstVideoEncoder *gve)
video_caps = gst_caps_new_simple ("video/x-raw-yuv", NULL);
gst_caps_set_simple (video_caps, "format", GST_TYPE_FOURCC,
GST_STR_FOURCC ("I420"), NULL);
+ gst_caps_set_simple (video_caps, "pixel-aspect-ratio", GST_TYPE_FRACTION,
+ 1, 1, NULL);
if (gve->priv->output_width != 0) {
gst_caps_set_simple (video_caps, "width", G_TYPE_INT, gve->priv->output_width,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]