mpegtsmux fails reason not-negotiated (-4)
Thiago Santos
thiagoss at osg.samsung.com
Sun Apr 5 19:48:08 PDT 2015
On 04/05/2015 08:45 PM, Stefan de Konink wrote:
> Hi,
>
> I am trying a small example to use the mpegtsmux, which fails.
>
> gst-launch-1.0 -v -e videotestsrc ! mpeg2enc ! mpegtsmux name="muxer"
> ! filesink location=single.ts
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps
> = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)320\,\
> height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\
> pixel-aspect-ratio\=\(fraction\)1/1\,\
> interlace-mode\=\(string\)progressive"
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:src: caps =
> "video/mpeg\,\ systemstream\=\(boolean\)false\,\
> mpegversion\=\(int\)1\,\ width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1"
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:sink: caps =
> "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)320\,\
> height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\
> pixel-aspect-ratio\=\(fraction\)1/1\,\
> interlace-mode\=\(string\)progressive"
> ERROR: from element
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data
> flow error.
> Additional debug info:
> /var/tmp/portage/media-libs/gstreamer-1.4.5/work/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933):
> gst_base_src_loop ():
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:src: caps = "NULL"
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:sink: caps = "NULL"
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps
> = "NULL"
> Freeing pipeline ...
>
>
>
> Without the muxer, I get output:
>
> gst-launch-1.0 -v -e videotestsrc ! mpeg2enc ! filesink
> location=single.m2v
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps
> = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)320\,\
> height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\
> pixel-aspect-ratio\=\(fraction\)1/1\,\
> interlace-mode\=\(string\)progressive"
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:src: caps =
> "video/mpeg\,\ systemstream\=\(boolean\)false\,\
> mpegversion\=\(int\)1\,\ width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1"
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps =
> "video/mpeg\,\ systemstream\=\(boolean\)false\,\
> mpegversion\=\(int\)1\,\ width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1"
> /GstPipeline:pipeline0/GstMpeg2enc:mpeg2enc0.GstPad:sink: caps =
> "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)320\,\
> height\=\(int\)240\,\ framerate\=\(fraction\)30/1\,\
> pixel-aspect-ratio\=\(fraction\)1/1\,\
> interlace-mode\=\(string\)progressive"
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ^Chandling interrupt.
> Interrupt: Stopping pipeline ...
> EOS on shutdown enabled -- Forcing EOS on the pipeline
> Waiting for EOS...
> Got EOS from element "pipeline0".
> EOS received - stopping pipeline...
> Execution ended after 0:00:01.383034379
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
> Using mpegpsmux, also results into output. Is there anything I am
> overseeing?
Add mpegvideoparse before mpegtsmux, it needs parsed mpeg video input
and mpeg2enc either doesn't produce parsed output or it doesn't announce
it as being so.
>
> Stefan
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley
More information about the gstreamer-devel
mailing list