<HTML><HEAD><TITLE></TITLE>
<META content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer" 
name=GENERATOR>
<META http-equiv=Content-Type content="text/html; charset=GB2312"></HEAD>
<BODY style="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma" leftMargin=5 topMargin=5 
#ffffff>
<DIV>Edward Hervey, Hello </DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;&nbsp;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>&nbsp;&nbsp;Hoping somebody more 
  knowledgeable about h264 will help solve your 
  problem,<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Edward<BR><BR>On 3/28/07, jp_liu 
  &lt;<A href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A>&gt; 
  wrote:<BR>&gt;<BR>&gt;<BR>&gt; Edward Hervey, Hello<BR>&gt;<BR>&gt; Thanks for 
  your reply.<BR>&gt; But I think you have misunderstood .<BR>&gt; My problem is 
  my decoder(buy from 3rd party) can not decode the frame<BR>&gt; without 
  sps,pps and nal unit(Bytestream). I must covert the frames to the<BR>&gt; 
  Byte-stream frames, such as add sps pps at first frame , add start code 
  at<BR>&gt; each nal unit.... so your patch can not solve my problem,but 
  anyway, thanks.<BR>&gt;<BR>&gt; jp_liu, <A 
  href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A><BR>&gt; 
  2007-03-28<BR>&gt;<BR>&gt; ----- Receiving the following content -----<BR>&gt; 
  From: Edward Hervey<BR>&gt; Receiver: jp_liu<BR>&gt; Time: 2007-03-27, 
  17:18:32<BR>&gt; Subject:<BR>&gt; 
  Re:_[gst-devel]_Re:_[gst-devel]re£º_Re:_how_to_use_qtdemux_to_demux_h264_stream_from_MP4?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
  Hi,<BR>&gt;<BR>&gt; Could you also try applying the following patch fixing 
  qtdemux so<BR>&gt; that it outputs h264 buffers with pts instead of dts. If 
  you are<BR>&gt; making a software decoder you shouldn't need the dts.<BR>&gt; 
  the patch and explanations are here :<BR>&gt; <A 
  href="http://bugzilla.gnome.org/show_bug.cgi?id=423283">http://bugzilla.gnome.org/show_bug.cgi?id=423283</A><BR>&gt;<BR>&gt; 
  Edward<BR>&gt;<BR>&gt; On 3/26/07, jp_liu &lt;<A 
  href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A>&gt; wrote:<BR>&gt; 
  &gt;<BR>&gt; &gt;<BR>&gt; &gt; zhangfei gao, Hello<BR>&gt; &gt;<BR>&gt; &gt; 
  My h264 decoder support say that:<BR>&gt; &gt; I believe MP4 uses the NAL 
  format (Need to confirm) and hence doesn't have<BR>&gt; &gt; the NAL Start 
  codes. One needs to convert that to bytstream format because<BR>&gt; &gt; our 
  decoders support only byte-stream format. Also one needs to do this<BR>&gt; 
  &gt; while demuxing it from MP4 otherwise the information various 
  slice<BR>&gt; positions<BR>&gt; &gt; would be lost.<BR>&gt; &gt;<BR>&gt; &gt; 
  So, How should I do?<BR>&gt; &gt;<BR>&gt; &gt; jp_liu, <A 
  href="mailto: jp_liu@astrocom.cn">jp_liu@astrocom.cn</A><BR>&gt; &gt; 
  2007-03-26<BR>&gt; &gt;<BR>&gt; &gt; ----- Receiving the following content 
  -----<BR>&gt; &gt; From: zhangfei gao<BR>&gt; &gt; Receiver: 
  gstreamer-devel<BR>&gt; &gt; Time: 2007-03-22, 21:24:01<BR>&gt; &gt; Subject: 
  [gst-devel]re£º Re: how to use qtdemux to demux h264 stream from<BR>&gt; &gt; 
  MP4?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
  &gt;<BR>&gt; &gt; hi, jp_liu<BR>&gt; &gt;<BR>&gt; &gt; "h264.c" in ffmpeg has 
  useful information of how to parse "codec_data"<BR>&gt; which<BR>&gt; &gt; get 
  set_caps.<BR>&gt; &gt; "codec_data" has all the nal_length, sps data and pps 
  data.<BR>&gt; &gt;<BR>&gt; &gt; Thanks<BR>&gt; &gt; Jan Schmidt &lt;<A 
  href="mailto: thaytan@noraisin.net">thaytan@noraisin.net</A>&gt; Ð´µÀ£º<BR>&gt; 
  &gt; jp_liu wrote:<BR>&gt; &gt; &gt; Hello, gstreamer-devel<BR>&gt; &gt; 
  &gt;<BR>&gt; &gt; &gt; How to use qtdemux to demux h264 stream from 
  MP4?<BR>&gt; &gt; &gt; The demuxed h264 stream looks have no startcodes before 
  every NAL<BR>&gt; &gt; &gt; Unit. So, Some key information ( such as: SPS PPS 
  ....) is missed. It<BR>&gt; &gt; &gt; caused my H264 decoder can not decode 
  the frame which demuxed by qtdemux<BR>&gt; .<BR>&gt; &gt; &gt; How can I solve 
  this problem?<BR>&gt; &gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; I think the 
  information your decoder is looking for is the stuff<BR>&gt; &gt; provided by 
  the 'codec_data' in the caps. This is the header information<BR>&gt; &gt; that 
  quicktime stores and provides separately from the actual data stream.<BR>&gt; 
  &gt;<BR>&gt; &gt; Regards,<BR>&gt; &gt; Jan.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
  -------------------------------------------------------------------------<BR>&gt; 
  &gt; Take Surveys. Earn Cash. Influence the Future of IT<BR>&gt; &gt; Join 
  SourceForge.net's Techsay panel and you'll get the chance to share<BR>&gt; 
  your<BR>&gt; &gt; opinions on IT &amp; business topics through brief 
  surveys-and earn cash<BR>&gt; &gt;<BR>&gt; <A 
  href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV_______________________________________________">http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV_______________________________________________</A><BR>&gt; 
  &gt; gstreamer-devel mailing list<BR>&gt; &gt; <A 
  href="mailto: gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
  &gt;<BR>&gt; <A 
  href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
  &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; 
  ________________________________<BR>&gt; &gt; ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡<BR>&gt; 
  &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
  -------------------------------------------------------------------------<BR>&gt; 
  &gt; Take Surveys. Earn Cash. Influence the Future of IT<BR>&gt; &gt; Join 
  SourceForge.net's Techsay panel and you'll get the chance to share<BR>&gt; 
  your<BR>&gt; &gt; opinions on IT &amp; business topics through brief 
  surveys-and earn cash<BR>&gt; &gt;<BR>&gt; <A 
  href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV</A><BR>&gt; 
  &gt; _______________________________________________<BR>&gt; &gt; 
  gstreamer-devel mailing list<BR>&gt; &gt; <A 
  href="mailto: gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
  &gt;<BR>&gt; <A 
  href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
  &gt;<BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; Edward Hervey<BR>&gt; 
  Multimedia editing developer / Fluendo S.A.<BR>&gt; <A 
  href="http://www.pitivi.org/">http://www.pitivi.org/</A><BR>&gt;<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></BODY></HTML>