<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi Gavin.det<br><br></div>You asked for a h264 decoder and mention a few modules. Here are som comments.<br><br></div>1) h264_parse is not a decoder, but rather a module to parse a h264 stream. It may be able to convert a h264 stream from NAL units to AU units and perhaps vice versa, but that's it. You use it in a stream to ensure that the following modules will receive the right caps information and perhaps for the unit conversion.<br>
<br></div>2) rtpXXXpay and rtpXXXdepay are modules used to encapsulate and decapsulate a stream for RTP streaming. In your case you may only need the modules, if you need to decapsulate an RTP stream.<br><br></div>3) Never used <span lang="EN-US">vdpauh264dec, so search Google for examples.<br>
<br></span></div><span lang="EN-US">Now for decoding h264, you can among other things also do<br><br></span></div><span lang="EN-US">  a) use ffdec_h264<br></span></div><span lang="EN-US">  b) use decodebin and decodebin2<br>
</span></div><span lang="EN-US">  c) use playbin and playbin2<br><br></span></div><span lang="EN-US">Note that solution a) requires you to do proper decapsulating and/or proper demuxing before you can decode.<br><br></span></div>
<span lang="EN-US">Now for why you are missing the h264 decoder, it depends on you OS, your installed packages, your version of GStreamer etc. On one of my systems I'm using Ubuntu 12.04 LTS and GStreamer-0.10. To get h264 decoder support I need to install gstreamer0.10-ffmpeg package. You  can try the following<br>
<br>  $ gst-inspect |grep 264<br><br>When I do, I see this:<br><br>   ffmpeg:  ffdec_h264: FFmpeg H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder<br>   ffmpeg:  ffmux_ipod: FFmpeg iPod H.264 MP4 format muxer<br>   rtp:  rtph264depay: RTP H264 depayloader<br>
   rtp:  rtph264pay: RTP H264 payloader<br>   x264:  x264enc: x264enc<br>   videoparsersbad:  h264parse: H.264 parser<br>   h264parse:  legacyh264parse: H264Parse<br>   typefindfunctions: video/x-h264: h264, x264, 264<br>
<br></span></div><div><span lang="EN-US">What you see should give you a clue.<br><br></span></div><div><span lang="EN-US">Best regards<br></span></div><div><span lang="EN-US">Peter Maersk-Moller<br></span></div><span lang="EN-US"></span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 8:56 AM, liuxing <span dir="ltr"><<a href="mailto:gavinsperation@hotmail.com" target="_blank">gavinsperation@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="ZH-CN"><div><p class="MsoNormal"><span lang="EN-US">Hello, there<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">         <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I am now working a real-time h264 video stream player. I checked the plugins related to h264 installed on my computer, they are h264 parser and rtph264pay and rtph264depay. There is no h264 decoder that I can use directly. Then, I googled “gst-libav” and got it installed on my computer. Now I have vdpauh264dec, but I still have no clue to get it work with h264 files. And when I try to play “mov” or “mp4” file with gst-launch playbin, the fault “h264 decoder missing” came up. Why is it????<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Can anyone help me with this please? <u></u><u></u></span></p><p class="MsoNormal" style="text-indent:5.25pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">With Regards<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:5.25pt"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Gavin <u></u><u></u></span></p>
</div></div><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>
<br></blockquote></div><br></div>