Add examples for the jpeg elements.

This commit is contained in:
Stefan Kost 2009-01-29 09:42:56 +02:00
parent 9795e95f39
commit eb89143219
2 changed files with 16 additions and 0 deletions

View file

@ -21,6 +21,14 @@
* SECTION:element-jpegdec * SECTION:element-jpegdec
* *
* Decodes jpeg images. * Decodes jpeg images.
*
* <refsect2>
* <title>Example launch line</title>
* |[
* gst-launch -v v4l2src ! jpegddec ! ffmpegcolorspace ! xvimagesink
* ]| The above pipeline reads a motion JPEG stream from a v4l2 camera
* and renders it to the screen.
* </refsect2>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View file

@ -20,6 +20,14 @@
* SECTION:element-jpegenc * SECTION:element-jpegenc
* *
* Encodes jpeg images. * Encodes jpeg images.
*
* <refsect2>
* <title>Example launch line</title>
* |[
* gst-launch videotestsrc num-buffers=50 ! video/x-raw-yuv, 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>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H