<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>Dear Peter,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>Thanks so much for your notes, they are very helpful.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>About the ff-mpeg pakage, I had googled it before installing the gst-libav-1.0.5. I found that, the version of gst-ffmpeg has been updated to gst-libav since gst-ffmpeg-0.11.2. So I installed the latest version of gst-libav and it came out that vdpauh264dec was installed</span><span lang=EN-US style='color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>By the way, I am using opensuse-12.3 OS, the version of gstreamer installed is 1.0.5. Now, I can get the following stuff after typing “gst-inspect-1.0 | grep 264” :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'> Libav: avdec_h264: libav H.264/AVC/MPEG-4 AVC/MPEG-4 part 10 decoder<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'> Libav: avmux_ipod : libav iPod H.264 MP4 format muxer.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>And the h264_parser and rtp264pay, rtp264depay are all gone. I don’t know why.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>Anyway, I have one of my pc installed Ubuntu-12.4. I will try it later on.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>All BEST!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'>Gavin</span><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:宋体'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体'> gstreamer-devel-bounces+gavinsperation=hotmail.com@lists.freedesktop.org [mailto:gstreamer-devel-bounces+gavinsperation=hotmail.com@lists.freedesktop.org] </span><b><span style='font-size:10.0pt;font-family:宋体'>代表 </span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体'>Peter Maersk-Moller<br></span><b><span style='font-size:10.0pt;font-family:宋体'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体'> 2013</span><span style='font-size:10.0pt;font-family:宋体'>年<span lang=EN-US>7</span>月<span lang=EN-US>18</span>日<span lang=EN-US> 19:27<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> Discussion of the development of and with GStreamer<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: how to choose a h264 decoder in gstreamer plugins<o:p></o:p></span></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Hi Gavin.det<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>You asked for a h264 decoder and mention a few modules. Here are som comments.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>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.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>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.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>3) Never used vdpauh264dec, so search Google for examples.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Now for decoding h264, you can among other things also do<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US> a) use ffdec_h264<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US> b) use decodebin and decodebin2<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US> c) use playbin and playbin2<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Note that solution a) requires you to do proper decapsulating and/or proper demuxing before you can decode.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><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<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>What you see should give you a clue.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Best regards<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Peter Maersk-Moller<o:p></o:p></span></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>On Thu, Jul 18, 2013 at 8:56 AM, liuxing <<a href="mailto:gavinsperation@hotmail.com" target="_blank">gavinsperation@hotmail.com</a>> wrote:<o:p></o:p></span></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Hello, there<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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????<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Can anyone help me with this please? <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-indent:5.25pt'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>With Regards<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-indent:5.25pt'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Gavin <o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US><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><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div></body></html>