make %u in all request pad templates
[platform/upstream/gst-plugins-good.git] / gst / matroska / webm-mux.c
index a0a4c4e..71ec461 100644 (file)
  * <refsect2>
  * <title>Example launch line</title>
  * |[
- * FIXME: add example pipeline
- * ]| This pipeline muxes this and that into a WebM file.
+ * gst-launch-0.10 webmmux name=mux ! filesink location=newfile.webm         \
+ *   uridecodebin uri=file:///path/to/somefile.ogv name=demux                \
+ *   demux. ! ffmpegcolorspace ! vp8enc ! queue ! mux.video_0    \
+ *   demux. ! progressreport ! audioconvert ! audiorate ! vorbisenc ! queue ! mux.audio_0
+ * ]| This pipeline re-encodes a video file of any format into a WebM file.
  * |[
- * FIXME: add example pipeline
- * ]| This pipeline muxes something else into a WebM file.
+ * gst-launch-0.10 webmmux name=mux ! filesink location=test.webm            \
+ *   videotestsrc num-buffers=250 ! video/x-raw-yuv,framerate=25/1 ! ffmpegcolorspace ! vp8enc ! queue ! mux.video_0 \
+ *   audiotestsrc samplesperbuffer=44100 num-buffers=10 ! audio/x-raw-float,rate=44100 ! vorbisenc ! queue ! mux.audio_0
+ * ]| This pipeline muxes a test video and a sine wave into a WebM file.
  * </refsect2>
  */
 
@@ -58,14 +63,14 @@ static GstStaticPadTemplate webm_src_templ = GST_STATIC_PAD_TEMPLATE ("src",
     );
 
 static GstStaticPadTemplate webm_videosink_templ =
-GST_STATIC_PAD_TEMPLATE ("video_%d",
+GST_STATIC_PAD_TEMPLATE ("video_%u",
     GST_PAD_SINK,
     GST_PAD_REQUEST,
     GST_STATIC_CAPS ("video/x-vp8, " COMMON_VIDEO_CAPS)
     );
 
 static GstStaticPadTemplate webm_audiosink_templ =
-GST_STATIC_PAD_TEMPLATE ("audio_%d",
+GST_STATIC_PAD_TEMPLATE ("audio_%u",
     GST_PAD_SINK,
     GST_PAD_REQUEST,
     GST_STATIC_CAPS ("audio/x-vorbis, " COMMON_AUDIO_CAPS)
@@ -89,7 +94,7 @@ gst_webm_mux_class_init (GstWebMMuxClass * klass)
       gst_static_pad_template_get (&webm_src_templ));
   gst_element_class_set_details_simple (gstelement_class, "WebM muxer",
       "Codec/Muxer",
-      "Muxes video/audio/subtitle streams into a WebM stream",
+      "Muxes video and audio streams into a WebM stream",
       "GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
 }