fix more caps
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Sep 2012 11:30:37 +0000 (13:30 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Sep 2012 11:30:37 +0000 (13:30 +0200)
14 files changed:
ext/jpeg/gstjpegenc.c
gst/multipart/multipartmux.c
gst/rtp/README
gst/videocrop/gstaspectratiocrop.c
gst/y4m/gsty4mencode.c
tests/examples/equalizer/demo.c
tests/examples/rtp/server-VTS-H263p-ATS-PCMA.sh
tests/examples/rtp/server-VTS-H263p.sh
tests/examples/rtp/server-decodebin-H263p-AMR.sh
tests/examples/rtp/server-v4l2-H263p-alsasrc-AMR.sh
tests/examples/rtp/server-v4l2-H264-alsasrc-PCMA.sh
tests/examples/shapewipe/shapewipe-example.c
tests/examples/v4l2/camctrl.c
tests/icles/gdkpixbufsink-test.c

index e51d9a2..8fb0602 100644 (file)
@@ -26,7 +26,7 @@
  * <refsect2>
  * <title>Example launch line</title>
  * |[
- * gst-launch-1.0 videotestsrc num-buffers=50 ! video/x-raw-yuv, framerate='(fraction)'5/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
+ * gst-launch-1.0 videotestsrc num-buffers=50 ! video/x-raw, framerate='(fraction)'5/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
  * ]| a pipeline to mux 5 JPEG frames per second into a 10 sec. long motion jpeg
  * avi.
  * </refsect2>
index 8d42ed8..ef6d63f 100644 (file)
@@ -27,7 +27,7 @@
  * <refsect2>
  * <title>Sample pipelines</title>
  * |[
- * gst-launch-1.0 videotestsrc ! video/x-raw-yuv, framerate='(fraction)'5/1 ! jpegenc ! multipartmux ! filesink location=/tmp/test.multipart
+ * gst-launch-1.0 videotestsrc ! video/x-raw, framerate='(fraction)'5/1 ! jpegenc ! multipartmux ! filesink location=/tmp/test.multipart
  * ]| a pipeline to mux 5 JPEG frames per second into a multipart stream
  * stored to a file.
  * </refsect2>
index bb09b00..97afe6b 100644 (file)
@@ -274,7 +274,7 @@ Some gst-launch-1.0 lines:
   gst-launch-0.10 -v videotestsrc ! ffenc_h263p ! rtph263ppay ! udpsink
 
    Setting pipeline to PAUSED ...
-   /pipeline0/videotestsrc0.src: caps = video/x-raw-yuv, format=(fourcc)I420,
+   /pipeline0/videotestsrc0.src: caps = video/x-raw, format=(string)I420,
    width=(int)320, height=(int)240, framerate=(fraction)30/1
    Pipeline is PREROLLING ...
    ....
index 95579e7..1e0f3d2 100644 (file)
@@ -29,7 +29,7 @@
  * <refsect2>
  * <title>Example launch line</title>
  * |[
- * gst-launch-1.0 -v videotestsrc ! video/x-raw-rgb,height=640,width=480 ! aspectratiocrop aspect-ratio=16/9 ! ximagesink
+ * gst-launch-1.0 -v videotestsrc ! video/x-raw,height=640,width=480 ! aspectratiocrop aspect-ratio=16/9 ! ximagesink
  * ]| This pipeline generates a videostream in 4/3 and crops it to 16/9.
  * </refsect2>
  */
index 310ee08..8d06411 100644 (file)
@@ -29,7 +29,7 @@
  * (write everything in one line, without the backslash characters)
  * <programlisting>
  * gst-launch-0.10 videotestsrc num-buffers=250 \
- * ! 'video/x-raw-yuv,format=(fourcc)I420,width=320,height=240,framerate=(fraction)25/1' \
+ * ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \
  * ! y4menc ! filesink location=test.yuv
  * </programlisting>
  * </para>
index 46db870..9fd00f7 100644 (file)
@@ -148,7 +148,8 @@ main (int argc, char *argv[])
   /* Force float32 samples */
   capsfilter = gst_element_factory_make ("capsfilter", "capsfilter");
   caps =
-      gst_caps_new_simple ("audio/x-raw-float", "width", G_TYPE_INT, 32, NULL);
+      gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, "F32LE",
+      NULL);
   g_object_set (capsfilter, "caps", caps, NULL);
 
   equalizer = gst_element_factory_make ("equalizer-nbands", "equalizer");
index bdb2f9b..1a30489 100755 (executable)
@@ -3,7 +3,7 @@
 # A simple RTP server 
 #
 
-VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
+VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
 
 gst-launch-1.0 -v gstrtpbin name=rtpbin \
            videotestsrc ! $VCAPS ! ffenc_h263p ! rtph263ppay ! rtpbin.send_rtp_sink_0          \
index fa72118..e0fd8dd 100755 (executable)
@@ -30,7 +30,7 @@ AOFFSET=0
 
 # H263+ encode from the source
 VELEM="videotestsrc is-live=1"
-VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
+VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
 VSOURCE="$VELEM ! $VCAPS"
 VENC="ffenc_h263p ! rtph263ppay"
 
index faa65d1..9caa6ce 100755 (executable)
@@ -14,7 +14,7 @@
 AOFFSET=0
 VOFFSET=0
 
-VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
+VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
 
 # video and audio encoding and payloading
 VENCPAY="ffenc_h263p ! rtph263ppay"
index 21d3999..a2f9a5e 100755 (executable)
@@ -9,7 +9,7 @@
 AOFFSET=0
 VOFFSET=0
 
-VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
+VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
 
 #DEST=192.168.1.126
 DEST=localhost
index 34b65ca..04bc0c6 100755 (executable)
@@ -49,7 +49,7 @@ AOFFSET=0
 # H264 encode from the source
 VELEM="v4l2src"
 #VELEM="videotestsrc is-live=1"
-VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
+VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
 VSOURCE="$VELEM ! queue ! videorate ! videoconvert ! $VCAPS"
 VENC="x264enc tune=zerolatency byte-stream=true bitrate=300 ! rtph264pay"
 
index ea05a5d..b107658 100644 (file)
@@ -83,7 +83,7 @@ main (gint argc, gchar ** argv)
 
   pipeline_string =
       g_strdup_printf
-      ("videotestsrc ! video/x-raw-yuv,format=(fourcc)AYUV,width=640,height=480 ! shapewipe name=shape border=%f ! videomixer name=mixer ! videoconvert ! autovideosink     filesrc location=%s ! typefind ! decodebin2 ! videoconvert ! videoscale ! queue ! shape.mask_sink    videotestsrc pattern=snow ! video/x-raw-yuv,format=(fourcc)AYUV,width=640,height=480 ! queue ! mixer.",
+      ("videotestsrc ! video/x-raw,format=(string)AYUV,width=640,height=480 ! shapewipe name=shape border=%f ! videomixer name=mixer ! videoconvert ! autovideosink     filesrc location=%s ! typefind ! decodebin2 ! videoconvert ! videoscale ! queue ! shape.mask_sink    videotestsrc pattern=snow ! video/x-raw,format=(string)AYUV,width=640,height=480 ! queue ! mixer.",
       border, argv[1]);
 
   pipeline = gst_parse_launch (pipeline_string, NULL);
index 994fdce..64db577 100644 (file)
@@ -146,7 +146,7 @@ main (gint argc, gchar ** argv)
   }
   caps =
       gst_caps_from_string
-      ("video/x-raw-yuv, width=640, height=480, framerate=(fraction)15/1");
+      ("video/x-raw, width=640, height=480, framerate=(fraction)15/1");
   g_object_set (fmt, "caps", caps, NULL);
 
   if (!(src = gst_element_factory_make ("v4l2src", NULL))) {
index 2e516aa..8817502 100644 (file)
@@ -77,7 +77,7 @@ new_decoded_pad (GstElement * dec, GstPad * new_pad, gboolean last,
 
   s = gst_caps_get_structure (caps, 0);
   sname = gst_structure_get_name (s);
-  if (!g_str_has_prefix (sname, "video/x-raw-"))
+  if (!g_str_has_prefix (sname, "video/x-raw"))
     goto not_video;
 
   csp = create_element ("videoconvert");