omxvideoenc: Use "video/x-raw-yuv" as sink template caps instead of strict I420 caps

This commit is contained in:
Sebastian Dröge 2011-08-10 10:24:21 +02:00
parent 274b3b3526
commit 75c843670f
4 changed files with 4 additions and 3 deletions

View 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

View 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

View 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

View 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