h.264 encoding using x264 and file writing to local disk

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

h.264 encoding using x264 and file writing to local disk

Jonathan
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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

x264enc.log (37K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: h.264 encoding using x264 and file writing to local disk

Jan Spurný
Hi,

have you tried to set x264enc property "byte-stream" to "true" ?

regards,
Jan Spurny

>  ------------ Původní zpráva ------------
>  Od: Jonathan Demeyer <[hidden email]>
>  Předmět: h.264 encoding using x264 and file writing to local disk
>  Datum: 15.2.2012 15:31:48
>  ----------------------------------------
>  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
>  
>  
>  
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel