omxvideoenc: Use "video/x-raw-yuv" as sink template caps instead of strict I420 caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 08:24:21 +0000 (10:24 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 08:24:48 +0000 (10:24 +0200)
omx/gstomxh263enc.c
omx/gstomxh264enc.c
omx/gstomxmpeg4videoenc.c
omx/gstomxvideoenc.c

index c5a71b2..1a32c75 100644 (file)
@@ -81,7 +81,6 @@ gst_omx_h263_enc_class_init (GstOMXH263EncClass * klass)
 
   videoenc_class->default_src_template_caps = "video/x-h263, "
       "width=(int) [ 16, 4096 ], " "height=(int) [ 16, 4096 ]";
-  videoenc_class->default_sink_template_caps = GST_VIDEO_CAPS_YUV ("I420");
 }
 
 static void
index 66dbf38..0b82a23 100644 (file)
@@ -81,7 +81,6 @@ gst_omx_h264_enc_class_init (GstOMXH264EncClass * klass)
 
   videoenc_class->default_src_template_caps = "video/x-h264, "
       "width=(int) [ 16, 4096 ], " "height=(int) [ 16, 4096 ]";
-  videoenc_class->default_sink_template_caps = GST_VIDEO_CAPS_YUV ("I420");
 }
 
 static void
index 06ef88b..04971ff 100644 (file)
@@ -85,7 +85,6 @@ gst_omx_mpeg4_video_enc_class_init (GstOMXMPEG4VideoEncClass * klass)
       "mpegversion=(int) 4, "
       "systemstream=(boolean) false, "
       "width=(int) [ 16, 4096 ], " "height=(int) [ 16, 4096 ]";
-  videoenc_class->default_sink_template_caps = GST_VIDEO_CAPS_YUV ("I420");
 }
 
 static void
index 1c3863b..109dc52 100644 (file)
@@ -307,6 +307,10 @@ gst_omx_video_enc_class_init (GstOMXVideoEncClass * klass)
       GST_DEBUG_FUNCPTR (gst_omx_video_enc_handle_frame);
   base_video_encoder_class->finish =
       GST_DEBUG_FUNCPTR (gst_omx_video_enc_finish);
+
+  klass->default_sink_template_caps = "video/x-raw-yuv, "
+      "width = " GST_VIDEO_SIZE_RANGE ", "
+      "height = " GST_VIDEO_SIZE_RANGE ", " "framerate = " GST_VIDEO_FPS_RANGE;
 }
 
 static void