<div>hi, jp_liu</div> <div> </div> <div>"h264.c" in ffmpeg has useful information of how to parse "codec_data" which get set_caps.</div> <div>"codec_data" has all the nal_length, sps data and pps data.</div> <div> </div> <div>Thanks<BR><B><I>Jan Schmidt <thaytan@noraisin.net></I></B> 写道:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">jp_liu wrote:<BR>> Hello, gstreamer-devel<BR>> <BR>> How to use qtdemux to demux h264 stream from MP4?<BR>> The demuxed h264 stream looks have no startcodes before every NAL<BR>> Unit. So, Some key information ( such as: SPS PPS ....) is missed. It<BR>> caused my H264 decoder can not decode the frame which demuxed by qtdemux .<BR>> How can I solve this problem?<BR>> <BR><BR>I think the information your decoder is looking for is the stuff<BR>provided by the 'codec_data' in the caps. This is the header information<BR>that quicktime stores
and provides separately from the actual data stream.<BR><BR>Regards,<BR>Jan.<BR><BR>-------------------------------------------------------------------------<BR>Take Surveys. Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's Techsay panel and you'll get the chance to share your<BR>opinions on IT & business topics through brief surveys-and earn cash<BR>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________<BR>gstreamer-devel mailing list<BR>gstreamer-devel@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR></BLOCKQUOTE><BR><p> 
<hr size=1><a href="http://cn.mail.yahoo.com" target=blank>抢注雅虎免费邮箱-3.5G容量,20M附件!</a>