mpegtsmux fails reason not-negotiated (-4)
Stefan de Konink
stefan at konink.de
Sun Apr 5 16:45:36 PDT 2015
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?
Stefan
More information about the gstreamer-devel
mailing list