[rygel] core: Video framerate is a restriction, not format
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Video framerate is a restriction, not format
- Date: Tue, 6 Dec 2011 17:59:00 +0000 (UTC)
commit 731b6510c80d195cb264557b835fcc2cb15eb71e
Author: Jens Georg <mail jensge org>
Date: Tue Dec 6 18:55:31 2011 +0100
core: Video framerate is a restriction, not format
src/rygel/rygel-avc-transcoder.vala | 4 ++--
src/rygel/rygel-mp2ts-transcoder.vala | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-avc-transcoder.vala b/src/rygel/rygel-avc-transcoder.vala
index 17a325f..ce41d7e 100644
--- a/src/rygel/rygel-avc-transcoder.vala
+++ b/src/rygel/rygel-avc-transcoder.vala
@@ -32,10 +32,10 @@ internal class Rygel.AVCTranscoder : Rygel.VideoTranscoder {
private const string CONTAINER = "video/quicktime,variant=iso";
private const string AUDIO_CAPS = "audio/mpeg,mpegversion=4";
private const string VIDEO_CAPS =
- "video/x-h264,stream-format=avc,framerate=(fraction)15/1";
+ "video/x-h264,stream-format=avc";
private const string RESTRICTIONS =
- "framerate=(fraction)15/1,width=352,height=288";
+ "video/x-raw-yuv,framerate=(fraction)15/1,width=352,height=288";
public AVCTranscoder () {
base ("video/mp4",
diff --git a/src/rygel/rygel-mp2ts-transcoder.vala b/src/rygel/rygel-mp2ts-transcoder.vala
index 8d2b824..a0609e1 100644
--- a/src/rygel/rygel-mp2ts-transcoder.vala
+++ b/src/rygel/rygel-mp2ts-transcoder.vala
@@ -48,7 +48,7 @@ internal class Rygel.MP2TSTranscoder : Rygel.VideoTranscoder {
"audio/mpeg,mpegversion=1,layer=2";
private const string BASE_VIDEO_FORMAT =
- "video/mpeg,mpegversion=2,systemstream=false,framerate=(fraction)%d/1";
+ "video/mpeg,mpegversion=2,systemstream=false";
private const string RESTRICTION_TEMPLATE =
"video/x-raw-yuv,framerate=(fraction)%d/1,width=%d,height=%d";
@@ -62,7 +62,7 @@ internal class Rygel.MP2TSTranscoder : Rygel.VideoTranscoder {
VIDEO_BITRATE,
CONTAINER,
AUDIO_FORMAT,
- BASE_VIDEO_FORMAT.printf (FRAME_RATE[profile]),
+ BASE_VIDEO_FORMAT,
RESTRICTION_TEMPLATE.printf (FRAME_RATE[profile],
WIDTH[profile],
HEIGHT[profile]));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]