<br><br><div class="gmail_quote">On Tue, Nov 24, 2009 at 7:19 PM, Yiliang Bao <span dir="ltr">&lt;<a href="mailto:yiliangb@gmail.com">yiliangb@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Florian,<br><br>Thanks for replying to my message. ffmux_mp4 did not work for me either when I posted the original message. All I got are access unit delimiter RBSP&#39;s. An acces unit delimiter RBSP is something like 000000010910 for the I frame, and 000000010030 for the non-I frame.<br>


<br>Since the AU delimiter has the same timestamp as the following NAL, I was wondering whether that was a problem. And indeed it was. In the function compute_pkt_fields2() in file: /gst-ffmpeg-0.10.9/gst-libs/ext/ffmpeg/libavformat/utils.c<br>


<br>I changed the following line to allow two consecutive packets have same time stamp:<br><br>

<p style="margin:0px;text-indent:0px">#if 1</p>
<p style="margin:0px;text-indent:0px">    if(st-&gt;cur_dts &amp;&amp; st-&gt;cur_dts != AV_NOPTS_VALUE &amp;&amp; st-&gt;cur_dts &gt; pkt-&gt;dts){</p>
<p style="margin:0px;text-indent:0px">#else</p>
<p style="margin:0px;text-indent:0px">    if(st-&gt;cur_dts &amp;&amp; st-&gt;cur_dts != AV_NOPTS_VALUE &amp;&amp; st-&gt;cur_dts &gt;= pkt-&gt;dts){</p>
<p style="margin:0px;text-indent:0px">#endif</p>
<p style="margin:0px;text-indent:0px"></p><br>Now I can capture video correctly. I am wondering if anyone working on ffmpeg can verify whether this fix is a valid solution. Maybe I should post a separate message on ffmux_mp4.<br>



<br>However, this does not solve my problem. I still need to make qtmux work since it supports the audio codec which ffmux_mp4 does not support.<br><br>Thanks,<br><font color="#888888">Yiliang</font><div><div></div><div class="h5">

<br><br><div class="gmail_quote">On Tue, Nov 24, 2009 at 12:05 AM, florian iragne <span dir="ltr">&lt;<a href="mailto:florian.iragne@viewsurf.com" target="_blank">florian.iragne@viewsurf.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi,<br>
<br>
Yiliang Bao a écrit :<br>
<div>&gt; I got this error:<br>
&gt;<br>
&gt; gstqtmux.c(1347): gst_qt_mux_add_buffer ():<br>
&gt; /GstPipeline:pipeline0/GstQTMux:qtmux0:<br>
&gt; Failed to determine time to mux.<br>
<br>
</div>i got the same error and have had no success using qtmux or mp4mux.<br></blockquote></div></div></div></blockquote><div><br></div><div>Some fixes were pushed to qtmux/mp4mux for improving timestamps and durations handling yesterday. Could you retry and check if it works now?</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">


<div><br>
&gt; I also tried ffmux_mp4. The pipeline can continue, but it looks like that<br>
&gt; only the access unit delimiter RBSP is captured.<br>
<br>
</div>I use ffmux_mp4 with success in my pipeline. Could you provide yours to<br>
check what&#39;s wrong?<br>
<font color="#888888"><br>
<br>
Florian<br>
</font><div><div></div><div><br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>
</div></div><br>------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Thiago Sousa Santos<br>