engine: Fix video transcoders
authorJens Georg <jensg@openismus.com>
Tue, 20 Nov 2012 23:13:42 +0000 (00:13 +0100)
committerJens Georg <jensg@openismus.com>
Wed, 21 Nov 2012 11:13:30 +0000 (12:13 +0100)
src/media-engines/gstreamer/rygel-avc-transcoder.vala
src/media-engines/gstreamer/rygel-mp2ts-transcoder.vala

index 3e48efc..8754d95 100644 (file)
@@ -35,7 +35,7 @@ internal class Rygel.AVCTranscoder : Rygel.VideoTranscoder {
         "video/x-h264,stream-format=avc";
 
     private const string RESTRICTIONS =
-        "framerate=(fraction)15/1,width=352,height=288";
+        "video/x-raw,format=I420,framerate=(fraction)15/1,width=352,height=288";
 
     public AVCTranscoder () {
         base ("video/mp4",
index da59e92..40449f0 100644 (file)
@@ -51,7 +51,7 @@ internal class Rygel.MP2TSTranscoder : Rygel.VideoTranscoder {
         "video/mpeg,mpegversion=2,systemstream=false";
 
     private const string RESTRICTION_TEMPLATE =
-        "framerate=(fraction)%d/1,width=%d,height=%d";
+        "video/x-raw,format=I420,framerate=(fraction)%d/1,width=%d,height=%d";
 
     private MP2TSProfile profile;