Problem with storing x264 stream into a mkv file
marcin.kolny at gmail.com
Wed Jun 18 05:12:09 PDT 2014
Thanks for your reply!
2014-06-18 13:36 GMT+02:00 Tim Müller <tim at centricular.com>:
> On Wed, 2014-06-18 at 13:08 +0200, Marcin Kolny wrote:
> > Hello, I've got problem with storing x264 udp stream into a mkv
> > file. My pipeline:
> > gst-launch-1.0 udpsrc caps=application/x-rtp ! rtph264depay !
> > video/x-h264, alignment=nal ! h264parse ! capsfilter caps="video/x\
> > -h264, alignment=au, stream-format=avc" ! matroskamux ! fakesink
> > dump=true
> > ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal
> > data flow error. streaming task paused, reason not-negotiated (-4)
> What version is this with? Have you tried with git master?
I used 1.0.10 version, I will try with git master.
> I suspect what's happening is that rtph264depay/h264parse first output
> incomplete caps (without width/height) and only add them later. Possibly
> matroskamux also wants a framerate in the caps which it won't get here.
Ok, I added capssetter between capsfilter and matroskamux, with width,
height and framerate, and data flows through matroskamux, but
unfortunatelly, I can't read this file:
m.kolny at FLYC090:~ $ gst-launch-1.0 filesrc location="file.mkv" ! decodebin
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element
valid frames found before end of stream
Additional debug info:
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
m.kolny at FLYC090:~ $
What might be the reason of this error?
> Why are you forcing the depayloader to output alignment=nal btw?
> rtph264depay ! h264parse ! matroskamux should negotiate the right
> format automatically. rtph264depay can output AVC.
Unfortunatelly, I have to set nal alignment. It doesn't work without it.
> You might also want an rtpjitterbuffer before the depayloader btw.
> Tim Müller, Centricular Ltd - http://www.centricular.com
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel