[longomatch: 49/51] Allow negotiation of any kind of video caps with the source
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch: 49/51] Allow negotiation of any kind of video caps with the source
- Date: Fri, 21 May 2010 23:28:35 +0000 (UTC)
commit b00cb408f46f1a8a19546f1b441a72cb2b94d4d6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun May 16 16:17:42 2010 +0200
Allow negotiation of any kind of video caps with the source
libcesarplayer/src/gst-camera-capturer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index 3be2d3c..b65b149 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -853,7 +853,8 @@ gst_camera_capturer_set_source (GstCameraCapturer * gcc,
#endif
bin = g_strdup_printf ("%s ! queue ! video/x-dv "
"! dvdemux name=demux .video ! queue "
- "! ffdec_dv ! queue " " .demux ", source_element);
+ "! ffdec_dv ! queue ! ffmpegcolorspace ! videorate ! videoscale"
+ " .demux ", source_element);
gcc->priv->videosrc = gst_parse_bin_from_description (bin, TRUE, err);
gcc->priv->audiosrc = gcc->priv->videosrc;
}
@@ -862,7 +863,7 @@ gst_camera_capturer_set_source (GstCameraCapturer * gcc,
#ifdef WIN32
source_element = "dshowvideosrc";
#else
- source_element = "v4l2src ";
+ source_element = "v4l2src ! ffmpegcolorspace ! videorate ! videoscale";
#endif
bin = g_strdup_printf ("%s", source_element);
gcc->priv->videosrc = gst_parse_bin_from_description (bin, TRUE, err);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]