<div dir="ltr"><div>Where does it fail? After getting the H264 frames you should be able to generate any format. Here is my pipeline that displays from a PCAP file.<br><br>gst-launch filesrc location=$1 ! 'raw/x-pcap' ! queue ! pcapparse src-ip=$2 src-port=$3 dst-ip=$4 dst-port=$5 ! \<br>
    'application/x-rtp,media=video,payload=104,clock-rate=90000,encoding-name=H264' ! \<br>    rtph264depay byte-stream=true ! video/x-h264 ! ffdec_h264 ! xvimagesink<br><br></div>I would think that you could simply replace the h264 decode and display with code to generate the webm format, then write to file.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 4:17 AM, birdhur <span dir="ltr"><<a href="mailto:1241595551@qq.com" target="_blank">1241595551@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
<br>
    I am now want to convert the video part in PCAP file to one  webm file.<br>
I have tried many times, but didn't successfully.  Could some guys do me a<br>
favor and provide me a example?<br>
<br>
   I used the tool of gstreamer-1.0-x86-1.2.3.<br>
<br>
   Thanks in advance!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-convert-to-PCAP-to-webm-video-tp4666118.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-convert-to-PCAP-to-webm-video-tp4666118.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>