<br><br><div class="gmail_quote">On Mon, Aug 24, 2009 at 6:29 AM, Chen, Weian <span dir="ltr"><<a href="mailto:weian.chen@intel.com">weian.chen@intel.com</a>></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;">
<div link="blue" vlink="blue" lang="ZH-CN">
<div>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Hi All</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">I have a problem when doing
encode + mux:</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Encode pipeline is as
following: </span></font><i><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; font-style: italic;" lang="EN-US">gst-launch
videotestsrc ! x264enc ! mp4mux ! filesink location=test.mp4</span></font></i><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">, and then I use crtl + c to destroy the
pipeline, then using </span></font><i><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; font-style: italic;" lang="EN-US">gst-launch
filesrc location=1.mp4 ! qtdemux ! ffdec_h264 ! xvimagesink</span></font></i><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> to decoder, but the pipeline is hang up with log:
</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Setting pipeline to
PAUSED ...</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Pipeline is PREROLLING
...</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">But if I use </span></font><i><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; font-style: italic;" lang="EN-US">gst-launch videotestsrc num-buffers=30 ! x264enc ! mp4mux !
filesink location=test.mp4</span></font></i><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">, and do not
use ctrl + c to destroy, the decoder pipeline can work well.</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Could anyone here help to
explain this strange phenomenon to me?</span></font></p></div></div></blockquote><div>When you press ctrl+c the source element does not push an EOS event to the downstream elements, the pipeline is simply shut down. The muxer needs to receive an EOS event to know that the data streaming has ended and properly finish the mp4 file (like seeking back to the start of the file to rewrite some fields that he coudn't write back at the start).<br>
<br>if you use '-e' option in gst-launch it forces an EOS at the pipeline when ctrl+c is pressed and all should work fine.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="ZH-CN"><div><p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"></span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Thanks in advanced.</span></font></p>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US"> </span></font></p>
<div>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">thanks,</span></font><font color="blue"><span style="color: blue;" lang="EN-US"></span></font></p>
</div>
<p><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Weian</span></font><span lang="EN-US"></span></p>
</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'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><br>Embedded Systems and Pervasive Computing Lab (Embedded)<br>Center of Electrical Engineering and Informatics (CEEI)<br>Federal University of Campina Grande (UFCG)<br>