<div>Hi, </div> <div> </div> <div>"h264.c" is from gst-ffmpeg-0.10.2, which could be downloaded form <A href="http://gstreamer.freedesktop.org/src/">http://gstreamer.freedesktop.org/src/</A><BR></div> <div>Function is "decode_frame", line 07666.<BR>This file could give your authoritative explanation of how to parse such information.</div> <div> </div> <div>Thanks <BR><BR><B><I>jp_liu <jp_liu@astrocom.cn></I></B> дµÀ£º</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer" name=GENERATOR> <DIV>Edward Hervey, Hello </DIV> <DIV> </DIV> <DIV>I have clearly understood if I get sps data , pps data and nal_unit_size, I can covert mp4 file to byte-stream format.</DIV> <DIV>Now I need to know how can I get these informations from qtdemuxer.</DIV> <DIV> </DIV>
<DIV><!--AID_FROMNAME_BEGIN-->jp_liu<!--AID_FROMNAME_END-->, <A href="mailto:<!--AID_FROMADDRESS_BEGIN-->jp_liu@astrocom.cn<!--AID_FROMADDRESS_END-->"><!--AID_FROMADDRESS_BEGIN-->jp_liu@astrocom.cn<!--AID_FROMADDRESS_END--></A></DIV> <DIV>2007-03-28 </DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal">----- Receiving the following content ----- </DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; BACKGROUND: #e4e4e4; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal; font-color: black"><B>From:</B> <A href="mailto:bilboed@gmail.com">Edward Hervey</A> </DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>Receiver:</B> <A href="mailto:jp_liu@astrocom.cn">jp_liu</A> </DIV> <DIV style="FONT-WEIGHT:
normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>Time:</B> 2007-03-28, 16:43:17</DIV> <DIV style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal"><B>Subject:</B> Re:_Re:_[gst-devel]_Re:_[gst-devel]re£º_Re:_how_to_use_qtdemux_to_demux_h264_stream_from_MP4?</DIV> <DIV><BR></DIV> <DIV></DIV> <DIV></DIV> <DIV> <DIV>Hi,<BR><BR> I forgot to mention that this patch doesn't solve your problem, but<BR>changes some behaviour in qtdemux. The real question was whether it<BR>broke the behaviour of your decoder or not, since with the existing<BR>h264 decoders it doesn't.<BR><BR> Hoping somebody more knowledgeable about h264 will help solve your problem,<BR><BR> Edward<BR><BR>On 3/28/07, jp_liu <<A href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A>> wrote:<BR>><BR>><BR>> Edward Hervey, Hello<BR>><BR>> Thanks for your
reply.<BR>> But I think you have misunderstood .<BR>> My problem is my decoder(buy from 3rd party) can not decode the frame<BR>> without sps,pps and nal unit(Bytestream). I must covert the frames to the<BR>> Byte-stream frames, such as add sps pps at first frame , add start code at<BR>> each nal unit.... so your patch can not solve my problem,but anyway, thanks.<BR>><BR>> jp_liu, <A href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A><BR>> 2007-03-28<BR>><BR>> ----- Receiving the following content -----<BR>> From: Edward Hervey<BR>> Receiver: jp_liu<BR>> Time: 2007-03-27, 17:18:32<BR>> Subject:<BR>> Re:_[gst-devel]_Re:_[gst-devel]re£º_Re:_how_to_use_qtdemux_to_demux_h264_stream_from_MP4?<BR>><BR>><BR>><BR>><BR>><BR>> Hi,<BR>><BR>> Could you also try applying the following patch fixing qtdemux so<BR>> that it outputs h264 buffers with pts instead of dts. If you are<BR>> making a software decoder
you shouldn't need the dts.<BR>> the patch and explanations are here :<BR>> <A href="http://bugzilla.gnome.org/show_bug.cgi?id=423283">http://bugzilla.gnome.org/show_bug.cgi?id=423283</A><BR>><BR>> Edward<BR>><BR>> On 3/26/07, jp_liu <<A href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A>> wrote:<BR>> ><BR>> ><BR>> > zhangfei gao, Hello<BR>> ><BR>> > My h264 decoder support say that:<BR>> > I believe MP4 uses the NAL format (Need to confirm) and hence doesn't have<BR>> > the NAL Start codes. One needs to convert that to bytstream format because<BR>> > our decoders support only byte-stream format. Also one needs to do this<BR>> > while demuxing it from MP4 otherwise the information various slice<BR>> positions<BR>> > would be lost.<BR>> ><BR>> > So, How should I do?<BR>> ><BR>> > jp_liu, <A href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A><BR>> >
2007-03-26<BR>> ><BR>> > ----- Receiving the following content -----<BR>> > From: zhangfei gao<BR>> > Receiver: gstreamer-devel<BR>> > Time: 2007-03-22, 21:24:01<BR>> > Subject: [gst-devel]re£º Re: how to use qtdemux to demux h264 stream from<BR>> > MP4?<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > hi, jp_liu<BR>> ><BR>> > "h264.c" in ffmpeg has useful information of how to parse "codec_data"<BR>> which<BR>> > get set_caps.<BR>> > "codec_data" has all the nal_length, sps data and pps data.<BR>> ><BR>> > Thanks<BR>> > Jan Schmidt <<A href="mailto: thaytan@noraisin.net">thaytan@noraisin.net</A>> дµÀ£º<BR>> > 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>> .<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>> -------------------------------------------------------------------------<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<BR>> your<BR>> > opinions on IT & business topics through brief surveys-and earn cash<BR>> ><BR>> <A
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________</A><BR>> > gstreamer-devel mailing list<BR>> > <A href="mailto: gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>> ><BR>> <A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>> ><BR>> ><BR>> ><BR>> > ________________________________<BR>> > ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡<BR>> ><BR>> ><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<BR>> your<BR>> > opinions on IT & business topics through brief surveys-and earn cash<BR>> ><BR>> <A href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A><BR>> > _______________________________________________<BR>> > gstreamer-devel mailing list<BR>> > <A href="mailto: gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>> ><BR>> <A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>> ><BR>> ><BR>><BR>><BR>> --<BR>> Edward Hervey<BR>> Multimedia editing developer / Fluendo S.A.<BR>> <A href="http://www.pitivi.org/">http://www.pitivi.org/</A><BR>><BR><BR><BR>-- <BR>Edward Hervey<BR>Multimedia editing developer / Fluendo S.A.<BR><A
href="http://www.pitivi.org/">http://www.pitivi.org/</A><BR></DIV></DIV></BLOCKQUOTE>-------------------------------------------------------------------------<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>