rygel r772 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r772 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:46:36 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:46:36 2009
New Revision: 772
URL: http://svn.gnome.org/viewvc/rygel?rev=772&view=rev
Log:
mpeg2enc wants us to tell it the aspect ratio.
Modified:
trunk/src/rygel/rygel-mp2ts-transcoder.vala
Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala Sat Mar 28 00:46:36 2009
@@ -34,6 +34,8 @@
private const int[] WIDTH = {640, 1920};
private const int[] HEIGHT = {480, 1080};
private const string[] PROFILES = {"MPEG_TS_SD_NA", "MPEG_TS_HD_NA"};
+ private const int[] ASPECT = { 2, // 4:3
+ 3 }; // 16:9
private const string VIDEO_ENCODER = "mpeg2enc";
private const string COLORSPACE_CONVERT = "ffmpegcolorspace";
@@ -70,7 +72,10 @@
var videoscale = GstUtils.create_element (VIDEO_SCALE, VIDEO_SCALE);
var convert = GstUtils.create_element (COLORSPACE_CONVERT,
COLORSPACE_CONVERT);
- var encoder = GstUtils.create_element (VIDEO_ENCODER, VIDEO_ENCODER);
+ dynamic Element encoder = GstUtils.create_element (VIDEO_ENCODER,
+ VIDEO_ENCODER);
+
+ encoder.aspect = ASPECT[this.profile];
var bin = new Bin ("video-encoder-bin");
bin.add_many (videorate, videoscale, convert, encoder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]