[gst-devel] Question on x264enc + mp4mux

Michael Smith msmith at xiph.org
Mon Aug 24 19:41:08 CEST 2009


On Mon, Aug 24, 2009 at 2: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

This will create an invalid mp4 file since you just terminated the
pipeline without EOSing properly, so it doesn't have a chance to write
the final file headers correctly.


> 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 ...

However, given an invalid file, I'd expect it to error out - does it
do so if you use decodebin or decodebin2?

If not, sounds like a bug, you should file a bug report.

Mike




More information about the gstreamer-devel mailing list