h.264 encoding using x264 and file writing to local disk
Jonathan Demeyer
Jonathan.Demeyer at macq.eu
Wed Feb 15 06:28:57 PST 2012
Hello,
I have the same problem.
I try what is in the x264enc documentation :
gst-launch -v videotestsrc num-buffers=1000 ! x264enc qp-min=18 ! \
avimux ! filesink location=videotestsrc.avi
and I get the following :
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1, color-matrix=(string)sdtv, chroma-site=(string)mpeg2
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264, width=(int)320, height=(int)240, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)014d4015ffe10017674d4015eca0a0fd8088000003000bb9aca00078b16cb001000468ebecb2, stream-format=(string)avc, alignment=(string)au
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1, color-matrix=(string)sdtv, chroma-site=(string)mpeg2
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2582): 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/GstX264Enc:x264enc0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = NULL
Freeing pipeline ...
Can someone tell me what am I doing wrong ?
I'm using Ubuntu oneiric with the latest package in the standard repository
(More info attached)
Thanks,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120215/d8370ddf/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x264enc.log
Type: application/octet-stream
Size: 28310 bytes
Desc: x264enc.log
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120215/d8370ddf/attachment-0001.obj>
More information about the gstreamer-devel
mailing list