<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=GB2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20120412102401437104 {
        COLOR: #000000
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Times New Roman; COLOR: #666666; FONT-SIZE: 12pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>hi, Aihua Zhao</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your reply. I check the link you offer, but not very clear of 
it. </DIV>
<DIV>Now I can get the codec_data, then I need to parse it and got the PPS and 
SPS, right? After that, I need to package PPS and SPS to a GstBuffer and pass it 
downstream, but how can I package GstH264PPS to a GstBuffer, and does&nbsp;it 
work for me?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best regards, <BR>zqhuan </DIV>
<DIV>&nbsp;</DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>ZiQiang Huan</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B>&nbsp;<A href="mailto:halley.zhaoaihua@gmail.com">Aihua 
Zhao</A></DIV>
<DIV><B>发送时间:</B>&nbsp;2012-04-11&nbsp;16:18</DIV>
<DIV><B>收件人:</B>&nbsp;<A href="mailto:hzqhuan@gmail.com">hzqhuan</A>; <A 
href="mailto:gstreamer-devel@lists.freedesktop.org">Discussion of the 
development of and with GStreamer</A></DIV>
<DIV><B>主题:</B>&nbsp;Re: How can I deal with the codec_data after 
qtdemux?</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20120412102401437104>there are PPS, SPS in it, <BR>refer it 
to:<BR><A 
href="https://gitorious.org/vaapi/gstreamer-vaapi/blobs/master/gst-libs/gst/vaapi/gstvaapidecoder_h264.c#line2366">https://gitorious.org/vaapi/gstreamer-vaapi/blobs/master/gst-libs/gst/vaapi/gstvaapidecoder_h264.c#line2366</A> 
<BR><BR>
<DIV class=gmail_quote>在 2012年4月11日 下午1:54,ZiQiang Huan <SPAN dir=ltr>&lt;<A 
href="mailto:hzqhuan@gmail.com">hzqhuan@gmail.com</A>&gt;</SPAN>写道:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><U></U>
  <DIV style="MARGIN: 10px">
  <DIV>hi, gstreamers <BR><BR>I can play mpegts files which contains h264 video 
  and aac audio. But when I play mp4 files, qtdemux parse them to h264 video and 
  aac audio, but my hardware decoders cannot decode them. I see the logs below 
  <BR>/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0.GstGhostPad:src0: 
  caps = video/x-h264, level=(string)4.1, profile=(string)main, codec_data 
  <BR>(buffer)014d4029ffe10018674d4029b91816824d080000030008000003019478c189c001000468ee0fc8, 
  width=(i <BR>nt)720, height=(int)576, framerate=(fraction)30000/1001, 
  pixel-aspect-ratio=(fraction)16/15 <BR><BR>I try to search some info about 
  this from internet, but still not aware of this. So how I can deal with 
  codec_data? any suggestions for this or any examples for this ? <BR><BR>Best 
  regards, <BR>zqhuan </DIV>
  <DIV>&nbsp;</DIV>
  <HR style="MIN-HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>
  <SPAN class=HOEnZb><FONT color=#888888>
  <DIV><SPAN>ZiQiang 
  Huan</SPAN></DIV></FONT></SPAN></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></DIV></BODY></HTML>