<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>pcapparse</title> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="index.html" title="GStreamer Bad Plugins 0.10 Plugins Reference Manual"> <link rel="up" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="prev" href="gst-plugins-bad-plugins-output-selector.html" title="output-selector"> <link rel="next" href="gst-plugins-bad-plugins-rtpdtmfdepay.html" title="rtpdtmfdepay"> <meta name="generator" content="GTK-Doc V1.13 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="chapter" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="chapter" href="ch02.html" title="gst-plugins-bad Plugins"> <link rel="chapter" href="ch03.html" title="gst-plugins-bad Classes"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> <tr valign="middle"> <td><a accesskey="p" href="gst-plugins-bad-plugins-output-selector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">GStreamer Bad Plugins 0.10 Plugins Reference Manual</th> <td><a accesskey="n" href="gst-plugins-bad-plugins-rtpdtmfdepay.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr> <tr><td colspan="5" class="shortcuts"> <a href="#gst-plugins-bad-plugins-pcapparse.synopsis" class="shortcut">Top</a> | <a href="#gst-plugins-bad-plugins-pcapparse.description" class="shortcut">Description</a> | <a href="#gst-plugins-bad-plugins-pcapparse.object-hierarchy" class="shortcut">Object Hierarchy</a> | <a href="#gst-plugins-bad-plugins-pcapparse.properties" class="shortcut">Properties</a> </td></tr> </table> <div class="refentry" title="pcapparse"> <a name="gst-plugins-bad-plugins-pcapparse"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-pcapparse.top_of_page"></a>pcapparse</span></h2> <p>pcapparse — Parses a raw pcap stream</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv" title="Synopsis"> <a name="gst-plugins-bad-plugins-pcapparse.synopsis"></a><h2>Synopsis</h2> <a name="GstPcapParse"></a><pre class="synopsis"> <a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse-struct" title="GstPcapParse">GstPcapParse</a>; </pre> </div> <div class="refsect1" title="Object Hierarchy"> <a name="gst-plugins-bad-plugins-pcapparse.object-hierarchy"></a><h2>Object Hierarchy</h2> <pre class="synopsis"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> +----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstObject.html">GstObject</a> +----<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstElement.html">GstElement</a> +----GstPcapParse </pre> </div> <div class="refsect1" title="Properties"> <a name="gst-plugins-bad-plugins-pcapparse.properties"></a><h2>Properties</h2> <pre class="synopsis"> "<a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--dst-ip" title='The "dst-ip" property'>dst-ip</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write "<a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--dst-port" title='The "dst-port" property'>dst-port</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write "<a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--src-ip" title='The "src-ip" property'>src-ip</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write "<a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--src-port" title='The "src-port" property'>src-port</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write </pre> </div> <div class="refsect1" title="Description"> <a name="gst-plugins-bad-plugins-pcapparse.description"></a><h2>Description</h2> <p> Extracts payloads from Ethernet-encapsulated IP packets, currently limited to UDP. Use <a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--src-ip" title='The "src-ip" property'><span class="type">"src-ip"</span></a>, <a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--dst-ip" title='The "dst-ip" property'><span class="type">"dst-ip"</span></a>, <a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--src-port" title='The "src-port" property'><span class="type">"src-port"</span></a> and <a class="link" href="gst-plugins-bad-plugins-pcapparse.html#GstPcapParse--dst-port" title='The "dst-port" property'><span class="type">"dst-port"</span></a> to restrict which packets should be included. </p> <p> </p> <div class="refsect2" title="Example pipelines"> <a name="id403537"></a><h3>Example pipelines</h3> <div class="informalexample"> <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="listing_lines" align="right"><pre>1 2</pre></td> <td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch<span class="symbol">-</span><span class="number">0.10</span> filesrc location<span class="symbol">=</span>h264crasher<span class="symbol">.</span>pcap <span class="symbol">!</span> pcapparse <span class="symbol">!</span> rtph264depay <span class="symbol">!</span> ffdec_h264 <span class="symbol">!</span> fakesink</pre></td> </tr> </tbody> </table> </div> Read from a pcap dump file using filesrc, extract the raw UDP packets, depayload and decode them. </div> </div> <div class="refsect1" title="Details"> <a name="gst-plugins-bad-plugins-pcapparse.details"></a><h2>Details</h2> <div class="refsect2" title="GstPcapParse"> <a name="GstPcapParse-struct"></a><h3>GstPcapParse</h3> <pre class="programlisting">typedef struct _GstPcapParse GstPcapParse;</pre> <p> GstPcapParse element.</p> </div> </div> <div class="refsect1" title="Property Details"> <a name="gst-plugins-bad-plugins-pcapparse.property-details"></a><h2>Property Details</h2> <div class="refsect2" title='The "dst-ip" property'> <a name="GstPcapParse--dst-ip"></a><h3>The <code class="literal">"dst-ip"</code> property</h3> <pre class="programlisting"> "dst-ip" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> <p>Destination IP to restrict to.</p> <p>Default value: ""</p> </div> <hr> <div class="refsect2" title='The "dst-port" property'> <a name="GstPcapParse--dst-port"></a><h3>The <code class="literal">"dst-port"</code> property</h3> <pre class="programlisting"> "dst-port" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Destination port to restrict to.</p> <p>Allowed values: [G_MAXULONG,65535]</p> <p>Default value: -1</p> </div> <hr> <div class="refsect2" title='The "src-ip" property'> <a name="GstPcapParse--src-ip"></a><h3>The <code class="literal">"src-ip"</code> property</h3> <pre class="programlisting"> "src-ip" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> <p>Source IP to restrict to.</p> <p>Default value: ""</p> </div> <hr> <div class="refsect2" title='The "src-port" property'> <a name="GstPcapParse--src-port"></a><h3>The <code class="literal">"src-port"</code> property</h3> <pre class="programlisting"> "src-port" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> <p>Source port to restrict to.</p> <p>Allowed values: [G_MAXULONG,65535]</p> <p>Default value: -1</p> </div> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.13</div> </body> </html>