[gst-devel] Question on x264enc + mp4mux

thiagoss thiagossantos at gmail.com
Mon Aug 24 12:51:44 CEST 2009


On Mon, Aug 24, 2009 at 6:29 AM, Chen, Weian <weian.chen at intel.com> wrote:

>  Hi All
>
>
>
> I have a problem when doing encode + mux:
>
>
>
> Encode pipeline is as following:  *gst-launch videotestsrc ! x264enc !
> mp4mux ! filesink location=test.mp4*, and then I use crtl + c to destroy
> the pipeline, then using   *gst-launch filesrc location=1.mp4 ! qtdemux !
> ffdec_h264 ! xvimagesink* to decoder, but the pipeline is hang up with
> log:
>
> Setting pipeline to PAUSED ...
>
> Pipeline is PREROLLING ...
>
>
>
>
>
> But if I use *gst-launch videotestsrc num-buffers=30 ! x264enc ! mp4mux !
> filesink location=test.mp4*, and do not use ctrl + c to destroy, the
> decoder pipeline can work well.
>
>
>
> Could anyone here help to explain this strange phenomenon to me?
>
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).

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.


>
>
> Thanks in advanced.
>
>
>
> thanks,
>
> Weian
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090824/e6b0c0fc/attachment.htm>


More information about the gstreamer-devel mailing list